@pnp/cli-microsoft365 7.7.0-beta.72886a7 → 7.7.0-beta.a12fb3e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,9 @@ m365 entra appregistration set [options]
49
49
 
50
50
  `--certificateDisplayName [certificateDisplayName]`
51
51
  : Display name for the certificate. If not given, the displayName will be set to the certificate subject. When specified, also specify either `certificateFile` or `certificateBase64Encoded`.
52
+
53
+ `--allowPublicClientFlows [allowPublicClientFlows]`
54
+ : Set to `true` or `false` to toggle the allow public client flows feature on the app registration.
52
55
  ```
53
56
 
54
57
  <Global />
@@ -99,6 +102,12 @@ Add a certificate to the app
99
102
  m365 entra app set --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
100
103
  ```
101
104
 
105
+ Enable the allow public client flows feature on the app registration
106
+
107
+ ```sh
108
+ m365 entra app set --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --allowPublicClientFlows true
109
+ ```
110
+
102
111
  ## Response
103
112
 
104
113
  The command won't return a response on success.
@@ -0,0 +1,230 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra pim role assignment add
6
+
7
+ Request activation of an Entra role assignment for a user or group.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra pim role assignment add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --roleDefinitionName [roleDefinitionName]`
19
+ : Name of the role definition that should be assigned. Specify either `roleDefinitionName` or `roleDefinitionId` but not both.
20
+
21
+ `-i, --roleDefinitionId [roleDefinitionId]`
22
+ : Id of the role definition that is being assigned. Specify either `roleDefinitionName` or `roleDefinitionId` but not both.
23
+
24
+ `--userId [userId]`
25
+ : Id of the user that will be granted the assignment. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, the current user will be used.
26
+
27
+ `--userName [userName]`
28
+ : UPN of the user that will be granted the assignment. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, the current user will be used.
29
+
30
+ `--groupId [groupId]`
31
+ : Id of the group that will be granted the assignment. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, the current user will be used.
32
+
33
+ `--groupName [groupName]`
34
+ : Display name of the group that will be granted the assignment. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, the current user will be used.
35
+
36
+ `--administrativeUnitId [administrativeUnitId]`
37
+ : Id of the administrative unit representing the scope of the assignment. Specify either `administrativeUnitId` or `applicationId`. If not specified, default scope will be tenant-wide.
38
+
39
+ `--applicationId [applicationId]`
40
+ : Object Id of the application representing the scope of the assignment. Specify either `administrativeUnitId` or `applicationId`. If not specified, default scope will be tenant-wide.
41
+
42
+ `-j, --justification [justification]`
43
+ : An optional justification message.
44
+
45
+ `-s, --startDateTime [startDateTime]`
46
+ : When the assignment should start. If left out, the assignment will start from the current time.
47
+
48
+ `-e, --endDateTime [endDateTime]`
49
+ : When the assignment should end. Specify either `duration`, `endDateTime` or `noExpiration`.
50
+
51
+ `-d, --duration [duration]`
52
+ : How long the assignment should last. Write in ISO 8601 format for durations: PT3H for 3 hours. Specify either `duration`, `endDateTime` or `noExpiration`.
53
+
54
+ `--noExpiration [noExpiration]`
55
+ : If specified, the role assignment will never expire. Specify either `duration`, `endDateTime` or `noExpiration`.
56
+
57
+ `--ticketNumber [ticketNumber]`
58
+ : Optional ticket number value to communicate with the request.
59
+
60
+ `--ticketSystem [ticketSystem]`
61
+ : Optional ticket system to communicate with the request.
62
+ ```
63
+
64
+ <Global />
65
+
66
+ ## Remarks
67
+
68
+ :::info
69
+
70
+ When activating a role for other users, you must be **Privileged Role Administrator**.
71
+
72
+ :::
73
+
74
+ ## Examples
75
+
76
+ Request activation of the SharePoint Administrator Entra role assignment for the current user.
77
+
78
+ ```sh
79
+ m365 entra pim role assignment add --roleDefinitionName 'SharePoint Administrator'
80
+ ```
81
+
82
+ Request activation of an Entra role assignment for the current user.
83
+
84
+ ```sh
85
+ m365 entra pim role assignment add --roleDefinitionId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690'
86
+ ```
87
+
88
+ Request activation of an Entra role assignment for the current user with a justification and max duration of 4 hours.
89
+
90
+ ```sh
91
+ m365 entra pim role assignment add --roleDefinitionId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --justification 'Need Global Admin to release application xyz to production' --duration 'PT4H'
92
+ ```
93
+
94
+ Request activation of an Entra role assignment for a specified user with tenant scope.
95
+
96
+ ```sh
97
+ m365 entra pim role assignment add --roleDefinitionId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --userId '3488d6b8-6b2e-41c3-9583-1991205323c2'
98
+ ```
99
+
100
+ Request activation of the User Administrator Entra role assignment for a specified group with administrative unit scope.
101
+
102
+ ```sh
103
+ m365 entra pim role assignment add --roleDefinitionName 'User Administrator' --groupId '3488d6b8-6b2e-41c3-9583-1991205323c2' --administrativeUnitId '03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7'
104
+ ```
105
+
106
+ Request activation of the Application Administrator Entra role assignment for a specified group with scope to a specific application.
107
+
108
+ ```sh
109
+ m365 entra pim role assignment add --roleDefinitionName 'Application Administrator' --groupName 'Applications admins' --applicationId '03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7'
110
+ ```
111
+
112
+ Request activation of an Entra role assignment for a specific period of two days.
113
+
114
+ ```sh
115
+ m365 entra pim role assignment add --roleDefinitionName 'Global Administrator' --userName 'admin-john@contoso.com' --startDateTime '2024-01-10T09:00:00Z' --endDateTime '2024-01-11T17:00:00Z'
116
+ ```
117
+
118
+ Request activation of an Entra role assignment with no expiration.
119
+
120
+ ```sh
121
+ m365 entra pim role assignment add --roleDefinitionName 'Global Administrator' --userName 'admin-john@contoso.com' --noExpiration
122
+ ```
123
+
124
+ ## Response
125
+
126
+ <Tabs>
127
+ <TabItem value="JSON">
128
+
129
+ ```json
130
+ {
131
+ "id": "3f7d1bd6-a9a5-45bc-b831-00cfa3e3c649",
132
+ "status": "Provisioned",
133
+ "createdDateTime": "2024-02-12T13:54:21.3110096Z",
134
+ "completedDateTime": "2024-02-12T13:54:21.9847061Z",
135
+ "approvalId": null,
136
+ "customData": null,
137
+ "action": "adminAssign",
138
+ "principalId": "61b0c52f-a902-4769-9a09-c6628335b00a",
139
+ "roleDefinitionId": "f28a1f50-f6e7-4571-818b-6a12f2af6b6c",
140
+ "directoryScopeId": "/",
141
+ "appScopeId": null,
142
+ "isValidationOnly": false,
143
+ "targetScheduleId": "3f7d1bd6-a9a5-45bc-b831-00cfa3e3c649",
144
+ "justification": "Need SharePoint Administrator role",
145
+ "createdBy": {
146
+ "application": null,
147
+ "device": null,
148
+ "user": {
149
+ "displayName": null,
150
+ "id": "893f9116-e024-4bc6-8e98-54c245129485"
151
+ }
152
+ },
153
+ "scheduleInfo": {
154
+ "startDateTime": "2024-02-12T13:54:21.9847061Z",
155
+ "recurrence": null,
156
+ "expiration": {
157
+ "type": "noExpiration",
158
+ "endDateTime": null,
159
+ "duration": null
160
+ }
161
+ },
162
+ "ticketInfo": {
163
+ "ticketNumber": null,
164
+ "ticketSystem": null
165
+ }
166
+ }
167
+ ```
168
+
169
+ </TabItem>
170
+ <TabItem value="Text">
171
+
172
+ ```text
173
+ action : adminAssign
174
+ appScopeId : null
175
+ approvalId : null
176
+ completedDateTime: 2024-02-12T14:02:09.8938321Z
177
+ createdBy : {"application":null,"device":null,"user":{"displayName":null,"id":"893f9116-e024-4bc6-8e98-54c245129485"}}
178
+ createdDateTime : 2024-02-12T14:02:09.4658344Z
179
+ customData : null
180
+ directoryScopeId : /
181
+ id : c221e106-0711-470a-83cf-f8d7cbc51ecd
182
+ isValidationOnly : false
183
+ justification : Need SharePoint Administrator role
184
+ principalId : 61b0c52f-a902-4769-9a09-c6628335b00a
185
+ roleDefinitionId : f28a1f50-f6e7-4571-818b-6a12f2af6b6c
186
+ scheduleInfo : {"startDateTime":"2024-02-12T14:02:09.8938321Z","recurrence":null,"expiration":{"type":"noExpiration","endDateTime":null,"duration":null}}
187
+ status : Provisioned
188
+ targetScheduleId : c221e106-0711-470a-83cf-f8d7cbc51ecd
189
+ ticketInfo : {"ticketNumber":null,"ticketSystem":null}
190
+ ```
191
+
192
+ </TabItem>
193
+ <TabItem value="CSV">
194
+
195
+ ```csv
196
+ id,status,createdDateTime,completedDateTime,approvalId,customData,action,principalId,roleDefinitionId,directoryScopeId,appScopeId,isValidationOnly,targetScheduleId,justification
197
+ 7d727f44-c2dd-459e-8665-99ce003d12a9,Provisioned,2024-02-12T14:08:54.881749Z,2024-02-12T14:08:55.2507639Z,,,adminAssign,61b0c52f-a902-4769-9a09-c6628335b00a,f28a1f50-f6e7-4571-818b-6a12f2af6b6c,/,,,7d727f44-c2dd-459e-8665-99ce003d12a9,Need SharePoint Administrator role
198
+ ```
199
+
200
+ </TabItem>
201
+ <TabItem value="Markdown">
202
+
203
+ ```md
204
+ # entra pim roleassignment add --roleDefinitionId "f28a1f50-f6e7-4571-818b-6a12f2af6b6c" --userId "61b0c52f-a902-4769-9a09-c6628335b00a" --justification "Need SharePoint Administrator role"
205
+
206
+ Date: 2/13/2024
207
+
208
+ ## 7622802f-648b-4dd9-820f-dccaf8bbbab5
209
+
210
+ Property | Value
211
+ ---------|-------
212
+ id | 7622802f-648b-4dd9-820f-dccaf8bbbab5
213
+ status | Provisioned
214
+ createdDateTime | 2024-02-13T18:34:13.5365923Z
215
+ completedDateTime | 2024-02-13T18:34:14.269623Z
216
+ action | adminAssign
217
+ principalId | 61b0c52f-a902-4769-9a09-c6628335b00a
218
+ roleDefinitionId | f28a1f50-f6e7-4571-818b-6a12f2af6b6c
219
+ directoryScopeId | /
220
+ isValidationOnly | false
221
+ targetScheduleId | 7622802f-648b-4dd9-820f-dccaf8bbbab5
222
+ justification | Need SharePoint Administrator role
223
+ ```
224
+
225
+ </TabItem>
226
+ </Tabs>
227
+
228
+ ## More information
229
+
230
+ - Role assignment request: https://learn.microsoft.com/graph/api/rbacapplication-post-roleassignmentschedulerequests
@@ -0,0 +1,224 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra pim role assignment list
6
+
7
+ Retrieves a list of Entra role assignments for a user or group.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra pim role assignment list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--userId [userId]`
19
+ : Id of the user to list role assignments for. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all assigned roles will be listed.
20
+
21
+ `--userName [userName]`
22
+ : UPN of the user to list role assignments for. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all assigned roles will be listed.
23
+
24
+ `--groupId [groupId]`
25
+ : Id of the group to list role assignments for. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all assigned roles will be listed.
26
+
27
+ `--groupName [groupName]`
28
+ : Display name of the group to list role assignments for. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all assigned roles will be listed.
29
+
30
+ `-s, --startDateTime [startDateTime]`
31
+ : An optional ISO 8601 formatted date filter to search from.
32
+
33
+ `--includePrincipalDetails`
34
+ : An optional flag to include details of the principals that were assigned a role
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Examples
40
+
41
+ Get a list of Entra role assignments.
42
+
43
+ ```sh
44
+ m365 entra pim role assignment list
45
+ ```
46
+
47
+ Get a list of Entra role assignments for the current user.
48
+
49
+ ```sh
50
+ m365 entra pim role assignment list --userId '@meID'
51
+ ```
52
+
53
+ Get a list of Entra role assignments since the first of January 2024
54
+
55
+ ```sh
56
+ m365 entra pim role assignment list --startDateTime 2024-01-01T00:00:00Z
57
+ ```
58
+
59
+ Get a list of Entra role assignments with principal details.
60
+
61
+ ```sh
62
+ m365 entra pim role assignment list --includePrincipalDetails
63
+ ```
64
+
65
+ ## Response
66
+
67
+ ### Standard response
68
+
69
+ <Tabs>
70
+ <TabItem value="JSON">
71
+
72
+ ```json
73
+ [
74
+ {
75
+ "id": "5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2",
76
+ "principalId": "61b0c52f-a902-4769-9a09-c6628335b00a",
77
+ "roleDefinitionId": "fe930be7-5e62-47db-91af-98c3a49a38b1",
78
+ "directoryScopeId": "/administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de",
79
+ "appScopeId": null,
80
+ "startDateTime": "2023-11-15T12:24:32.773Z",
81
+ "endDateTime": null,
82
+ "assignmentType": "Assigned",
83
+ "memberType": "Direct",
84
+ "roleAssignmentOriginId": "5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2",
85
+ "roleAssignmentScheduleId": "36bd668f-3a40-455f-a40a-64074fde4a18",
86
+ "roleDefinition": {
87
+ "displayName": "User Administrator"
88
+ }
89
+ }
90
+ ]
91
+ ```
92
+
93
+ </TabItem>
94
+ <TabItem value="Text">
95
+
96
+ ```text
97
+ id principalId roleDefinitionId directoryScopeId appScopeId startDateTime endDateTime assignmentType memberType roleAssignmentOriginId roleAssignmentScheduleId roleDefinition
98
+ ------------------------------------------------------------------ ------------------------------------ ------------------------------------ --------------------------------------------------------- ---------- ------------------------ ----------- -------------- ---------- ------------------------------------------------------------------ ------------------------------------------------------------------ ---------------
99
+ 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2 61b0c52f-a902-4769-9a09-c6628335b00a fe930be7-5e62-47db-91af-98c3a49a38b1 /administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de null 2023-11-15T12:24:32.773Z null Assigned Direct 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2 36bd668f-3a40-455f-a40a-64074fde4a18 [object Object]
100
+ 5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1 d86c9ae0-6d7d-412f-82f4-cd24804210ac fe930be7-5e62-47db-91af-98c3a49a38b1 / null 2024-02-12T08:47:02.91Z null Assigned Direct 5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1 5f2c16a0-4212-4fa2-afae-fc8bfdc527b6 [object Object]
101
+ ```
102
+
103
+ </TabItem>
104
+ <TabItem value="CSV">
105
+
106
+ ```csv
107
+ id,principalId,roleDefinitionId,directoryScopeId,appScopeId,startDateTime,endDateTime,assignmentType,memberType,roleAssignmentOriginId,roleAssignmentScheduleId
108
+ 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2,61b0c52f-a902-4769-9a09-c6628335b00a,fe930be7-5e62-47db-91af-98c3a49a38b1,/administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de,,2023-11-15T12:24:32.773Z,,Assigned,Direct,5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2,36bd668f-3a40-455f-a40a-64074fde4a18
109
+ 5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1,d86c9ae0-6d7d-412f-82f4-cd24804210ac,fe930be7-5e62-47db-91af-98c3a49a38b1,/,,2024-02-12T08:47:02.91Z,,Assigned,Direct,5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1,5f2c16a0-4212-4fa2-afae-fc8bfdc527b6
110
+ ```
111
+
112
+ </TabItem>
113
+ <TabItem value="Markdown">
114
+
115
+ ```md
116
+ # entra pim role assignment list
117
+
118
+ Date: 2/23/2024
119
+
120
+ ## 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2
121
+
122
+ Property | Value
123
+ ---------|-------
124
+ id | 5wuT\_mJe20eRr5jDpJo4sS\_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2
125
+ principalId | 61b0c52f-a902-4769-9a09-c6628335b00a
126
+ roleDefinitionId | fe930be7-5e62-47db-91af-98c3a49a38b1
127
+ directoryScopeId | /administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de
128
+ startDateTime | 2023-11-15T12:24:32.773Z
129
+ assignmentType | Assigned
130
+ memberType | Direct
131
+ roleAssignmentOriginId | 5wuT\_mJe20eRr5jDpJo4sS\_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2
132
+ roleAssignmentScheduleId | 36bd668f-3a40-455f-a40a-64074fde4a18
133
+ ```
134
+
135
+ </TabItem>
136
+ </Tabs>
137
+
138
+ ### `includePrincipalDetails` response
139
+
140
+ When we make use of the option `includePrincipalDetails` the response will differ.
141
+
142
+ <Tabs>
143
+ <TabItem value="JSON">
144
+
145
+ ```json
146
+ [
147
+ {
148
+ "id": "5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2",
149
+ "principalId": "61b0c52f-a902-4769-9a09-c6628335b00a",
150
+ "roleDefinitionId": "fe930be7-5e62-47db-91af-98c3a49a38b1",
151
+ "directoryScopeId": "/administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de",
152
+ "appScopeId": null,
153
+ "startDateTime": "2023-11-15T12:24:32.773Z",
154
+ "endDateTime": null,
155
+ "assignmentType": "Assigned",
156
+ "memberType": "Direct",
157
+ "roleAssignmentOriginId": "5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2",
158
+ "roleAssignmentScheduleId": "36bd668f-3a40-455f-a40a-64074fde4a18",
159
+ "roleDefinition": {
160
+ "displayName": "User Administrator"
161
+ },
162
+ "principal": {
163
+ "id": "61b0c52f-a902-4769-9a09-c6628335b00a",
164
+ "displayName": "Adele Vance",
165
+ "userPrincipalName": "AdeleV@contoso.onmicrosoft.com",
166
+ "mail": "AdeleV@contoso.onmicrosoft.com",
167
+ "businessPhones": [
168
+ "+1 425 555 0109"
169
+ ],
170
+ "givenName": "Adele",
171
+ "jobTitle": "Retail Manager",
172
+ "mobilePhone": null,
173
+ "officeLocation": "18/2111",
174
+ "preferredLanguage": "en-US",
175
+ "surname": "Vance"
176
+ }
177
+ }
178
+ ]
179
+ ```
180
+
181
+ </TabItem>
182
+ <TabItem value="Text">
183
+
184
+ ```text
185
+ id principalId roleDefinitionId directoryScopeId appScopeId startDateTime endDateTime assignmentType memberType roleAssignmentOriginId roleAssignmentScheduleId roleDefinition principal
186
+ ------------------------------------------------------------------ ------------------------------------ ------------------------------------ --------------------------------------------------------- ---------- ------------------------ ----------- -------------- ---------- ------------------------------------------------------------------ ------------------------------------------------------------------ --------------- ---------------
187
+ 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2 61b0c52f-a902-4769-9a09-c6628335b00a fe930be7-5e62-47db-91af-98c3a49a38b1 /administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de null 2023-11-15T12:24:32.773Z null Assigned Direct 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2 36bd668f-3a40-455f-a40a-64074fde4a18 [object Object] [object Object]
188
+ 5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1 d86c9ae0-6d7d-412f-82f4-cd24804210ac fe930be7-5e62-47db-91af-98c3a49a38b1 / null 2024-02-12T08:47:02.91Z null Assigned Direct 5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1 5f2c16a0-4212-4fa2-afae-fc8bfdc527b6 [object Object] [object Object]
189
+ ```
190
+
191
+ </TabItem>
192
+ <TabItem value="CSV">
193
+
194
+ ```csv
195
+ id,principalId,roleDefinitionId,directoryScopeId,appScopeId,startDateTime,endDateTime,assignmentType,memberType,roleAssignmentOriginId,roleAssignmentScheduleId
196
+ 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2,61b0c52f-a902-4769-9a09-c6628335b00a,fe930be7-5e62-47db-91af-98c3a49a38b1,/administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de,,2023-11-15T12:24:32.773Z,,Assigned,Direct,5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2,36bd668f-3a40-455f-a40a-64074fde4a18
197
+ 5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1,d86c9ae0-6d7d-412f-82f4-cd24804210ac,fe930be7-5e62-47db-91af-98c3a49a38b1,/,,2024-02-12T08:47:02.91Z,,Assigned,Direct,5wuT_mJe20eRr5jDpJo4seCabNh9bS9BgvTNJIBCEKw-1,5f2c16a0-4212-4fa2-afae-fc8bfdc527b6
198
+ ```
199
+
200
+ </TabItem>
201
+ <TabItem value="Markdown">
202
+
203
+ ```md
204
+ # entra pim role assignment list --includePrincipalDetails "true"
205
+
206
+ Date: 3/31/2024
207
+
208
+ ## 5wuT_mJe20eRr5jDpJo4sS_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2
209
+
210
+ Property | Value
211
+ ---------|-------
212
+ id | 5wuT\_mJe20eRr5jDpJo4sS\_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2
213
+ principalId | 61b0c52f-a902-4769-9a09-c6628335b00a
214
+ roleDefinitionId | fe930be7-5e62-47db-91af-98c3a49a38b1
215
+ directoryScopeId | /administrativeUnits/1a89e663-efcc-4911-8df7-e954714005de
216
+ startDateTime | 2023-11-15T12:24:32.773Z
217
+ assignmentType | Assigned
218
+ memberType | Direct
219
+ roleAssignmentOriginId | 5wuT\_mJe20eRr5jDpJo4sS\_FsGECqWlHmgnGYoM1sApj5okazO8RSY336VRxQAXe-2
220
+ roleAssignmentScheduleId | 36bd668f-3a40-455f-a40a-64074fde4a18
221
+ ```
222
+
223
+ </TabItem>
224
+ </Tabs>
@@ -0,0 +1,144 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spo contenttype sync
6
+
7
+ Adds a published content type from the content type hub to a site or syncs its latest changes.
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spo contenttype sync [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-u, --webUrl <webUrl>`
19
+ : The site to sync the Content Type to.
20
+
21
+ `-i, --id [id]`
22
+ : The Id of the published Content Type to sync from the Content Type Hub. Specify either `id` or `name`.
23
+
24
+ `-n, --name [name]`
25
+ : The name of the published Content Type to sync from the Content Type Hub. Specify either `id` or `name`.
26
+
27
+ `--listTitle [listTitle]`
28
+ : Title of the list. Specify either `listTitle`, `listId` or `listUrl`. Omit to sync as a site content type.
29
+
30
+ `--listId [listId]`
31
+ : ID of the list. Specify either `listTitle`, `listId` or `listUrl`. Omit to sync as a site content type.
32
+
33
+ `--listUrl [listUrl]`
34
+ : Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`. Omit to sync as a site content type.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Examples
40
+
41
+ Syncs a given published content type from the hub to the specified site.
42
+
43
+ ```sh
44
+ m365 spo contenttype sync —webUrl https://contoso.sharepoint.com/sites/sales --id 0x01007926A45D687BA842B947286090B8F67D
45
+ ```
46
+
47
+ Syncs a given published content type from the hub to the specified site and adds it to the specified list.
48
+
49
+ ```sh
50
+ m365 spo contenttype sync —webUrl https://contoso.sharepoint.com/sites/sales --id 0x01007926A45D687BA842B947286090B8F67D --listTitle Contacts
51
+ ```
52
+
53
+ ## Response
54
+
55
+ :::info
56
+
57
+ This command will only return a response if the content type is added to the site initially. When syncing the content type, no response is returned.
58
+
59
+ :::
60
+
61
+ <Tabs>
62
+ <TabItem value="JSON">
63
+
64
+ ```json
65
+ {
66
+ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#contentType",
67
+ "@odata.type": "#microsoft.graph.contentType",
68
+ "@odata.etag": "\"2\"",
69
+ "id": "0x0101003D510887202C894AB7CD88CCE011519D",
70
+ "isBuiltIn": false,
71
+ "description": "",
72
+ "group": "Custom Content Types",
73
+ "hidden": false,
74
+ "name": "Dummy",
75
+ "parentId": "0x0101",
76
+ "readOnly": true,
77
+ "sealed": false,
78
+ "base": {
79
+ "id": "0x0101",
80
+ "description": "Create a new document.",
81
+ "group": "Document Content Types",
82
+ "hidden": false,
83
+ "name": "Document",
84
+ "readOnly": false,
85
+ "sealed": false
86
+ }
87
+ }
88
+ ```
89
+
90
+ </TabItem>
91
+ <TabItem value="Text">
92
+
93
+ ```text
94
+ @odata.context: https://graph.microsoft.com/v1.0/$metadata#contentType
95
+ @odata.etag : "2"
96
+ @odata.type : #microsoft.graph.contentType
97
+ base : {"id":"0x0101","description":"Create a new document.","group":"Document Content Types","hidden":false,"name":"Document","readOnly":false,"sealed":false}
98
+ description :
99
+ group : Custom Content Types
100
+ hidden : false
101
+ id : 0x01010004448644DB17414A9F1174B4FBFD9AC1
102
+ isBuiltIn : false
103
+ name : Dummy
104
+ parentId : 0x0101
105
+ readOnly : true
106
+ sealed : false
107
+ ```
108
+
109
+ </TabItem>
110
+ <TabItem value="CSV">
111
+
112
+ ```csv
113
+ @odata.context,@odata.type,@odata.etag,id,isBuiltIn,description,group,hidden,name,parentId,readOnly,sealed
114
+ https://graph.microsoft.com/v1.0/$metadata#contentType,#microsoft.graph.contentType,"""2""",0x010100F4ACBE99F2DBDE42B0487A561A40F9EE,,,Custom Content Types,,Dummy,0x0101,1,
115
+ ```
116
+
117
+ </TabItem>
118
+ <TabItem value="Markdown">
119
+
120
+ ```md
121
+ # spo contenttype sync --webUrl "https://contoso.sharepoint.com/sites/project-x" --name "Dummy"
122
+
123
+ Date: 13/03/2024
124
+
125
+ ## Dummy (0x010100F4ACBE99F2DBDE42B0487A561A40F9EE)
126
+
127
+ Property | Value
128
+ ---------|-------
129
+ @odata.context | https://graph.microsoft.com/v1.0/$metadata#contentType
130
+ @odata.type | #microsoft.graph.contentType
131
+ @odata.etag | "2"
132
+ id | 0x010100F4ACBE99F2DBDE42B0487A561A40F9EE
133
+ isBuiltIn | false
134
+ description |
135
+ group | Custom Content Types
136
+ hidden | false
137
+ name | Dummy 5
138
+ parentId | 0x0101
139
+ readOnly | true
140
+ sealed | false
141
+ ```
142
+
143
+ </TabItem>
144
+ </Tabs>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "7.7.0-beta.72886a7",
3
+ "version": "7.7.0-beta.a12fb3e",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",