@pnp/cli-microsoft365 7.7.0-beta.72886a7 → 7.7.0-beta.7d3ef49
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.
- package/.eslintrc.cjs +1 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Command.js +1 -1
- package/dist/cli/cli.js +9 -4
- package/dist/m365/commands/setup.js +1 -7
- package/dist/m365/entra/commands/app/app-add.js +7 -1
- package/dist/m365/entra/commands/app/app-set.js +32 -3
- package/dist/m365/entra/commands/pim/pim-role-assignment-add.js +233 -0
- package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +122 -0
- package/dist/m365/entra/commands/user/user-list.js +20 -7
- package/dist/m365/entra/commands.js +2 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.2.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.3.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.10.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.11.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.14.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.15.2.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.16.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.2.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.3.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.4.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.2.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.19.0-beta.0.js +25 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.2.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.2.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.4.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.6.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.0.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.2.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.9.1.js +3 -1
- package/dist/m365/spfx/commands/project/project-doctor/generic-rules.js +0 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN021001_PKG_spfx_deps_versions_match_project_version.js +3 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN021013_PKG_spfx_devdeps_match_version.js +58 -0
- package/dist/m365/spfx/commands/project/project-doctor/spfx-deps.js +2 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.19.0-beta.0.js +53 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/contenttype/contenttype-sync.js +139 -0
- package/dist/m365/spo/commands/listitem/listitem-set.js +9 -156
- package/dist/m365/spo/commands/page/page-add.js +6 -24
- package/dist/m365/spo/commands/page/page-set.js +19 -43
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +8 -9
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +3 -3
- package/dist/m365/spo/commands/site/site-hubsite-disconnect.js +2 -5
- package/dist/m365/spo/commands.js +1 -0
- package/dist/utils/prompt.js +2 -0
- package/dist/utils/spo.js +188 -0
- package/dist/utils/validation.js +4 -0
- package/docs/docs/cmd/entra/app/app-add.mdx +9 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +9 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-add.mdx +230 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +224 -0
- package/docs/docs/cmd/entra/user/user-list.mdx +36 -15
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-sync.mdx +144 -0
- package/docs/docs/cmd/spo/page/page-set.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +1 -1
- package/npm-shrinkwrap.json +138 -214
- package/package.json +14 -14
|
@@ -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>
|
|
@@ -21,6 +21,9 @@ m365 aad user list [options]
|
|
|
21
21
|
## Options
|
|
22
22
|
|
|
23
23
|
```md definition-list
|
|
24
|
+
`--type [type]`
|
|
25
|
+
: Filter the results to only users of a given type: `Member` or `Guest`. By default, all users are listed.
|
|
26
|
+
|
|
24
27
|
`-p, --properties [properties]`
|
|
25
28
|
: Comma-separated list of properties to retrieve
|
|
26
29
|
```
|
|
@@ -29,7 +32,9 @@ m365 aad user list [options]
|
|
|
29
32
|
|
|
30
33
|
## Remarks
|
|
31
34
|
|
|
32
|
-
Using the `--properties` option, you can specify a comma-separated list of user properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will retrieve user's display name
|
|
35
|
+
Using the `--properties` option, you can specify a comma-separated list of user properties to retrieve from the Microsoft Graph. If you don't specify any properties, the command will retrieve user's display name, account name, id, and mail.
|
|
36
|
+
|
|
37
|
+
When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on `manager`.
|
|
33
38
|
|
|
34
39
|
To filter the list of users, include additional options that match the user property that you want to filter with. For example `--displayName Patt` will return all users whose `displayName` starts with `Patt`. Multiple filters will be combined using the `and` operator.
|
|
35
40
|
|
|
@@ -37,30 +42,42 @@ Certain properties cannot be returned within a user collection. The following pr
|
|
|
37
42
|
|
|
38
43
|
## Examples
|
|
39
44
|
|
|
40
|
-
List all users in the tenant
|
|
45
|
+
List all users in the tenant.
|
|
41
46
|
|
|
42
47
|
```sh
|
|
43
48
|
m365 entra user list
|
|
44
49
|
```
|
|
45
50
|
|
|
46
|
-
List all users in the tenant.
|
|
51
|
+
List all guest users in the tenant.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 entra user list --type Guest
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
List all users in the tenant. For each one return the display name and e-mail address.
|
|
47
58
|
|
|
48
59
|
```sh
|
|
49
60
|
m365 entra user list --properties "displayName,mail"
|
|
50
61
|
```
|
|
51
62
|
|
|
52
|
-
Show users whose display name starts with _Patt_
|
|
63
|
+
Show users whose display name starts with _Patt_.
|
|
53
64
|
|
|
54
65
|
```sh
|
|
55
66
|
m365 entra user list --displayName Patt
|
|
56
67
|
```
|
|
57
68
|
|
|
58
|
-
Show all account managers whose display name starts with _Patt_
|
|
69
|
+
Show all account managers whose display name starts with _Patt_.
|
|
59
70
|
|
|
60
71
|
```sh
|
|
61
72
|
m365 entra user list --displayName Patt --jobTitle 'Account manager'
|
|
62
73
|
```
|
|
63
74
|
|
|
75
|
+
List users from the tenant. For each one return the display name, e-mail address, and manager information.
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
m365 entra user list --properties "displayName,mail,manager/*"
|
|
79
|
+
```
|
|
80
|
+
|
|
64
81
|
## Response
|
|
65
82
|
|
|
66
83
|
<Tabs>
|
|
@@ -69,8 +86,10 @@ m365 entra user list --displayName Patt --jobTitle 'Account manager'
|
|
|
69
86
|
```json
|
|
70
87
|
[
|
|
71
88
|
{
|
|
72
|
-
"
|
|
73
|
-
"displayName": "John Doe"
|
|
89
|
+
"id": "1f5595b2-aa07-445d-9801-a45ea18160b2",
|
|
90
|
+
"displayName": "John Doe",
|
|
91
|
+
"mail": "John@contoso.onmicrosoft.com",
|
|
92
|
+
"userPrincipalName": "John@contoso.onmicrosoft.com"
|
|
74
93
|
}
|
|
75
94
|
]
|
|
76
95
|
```
|
|
@@ -79,17 +98,17 @@ m365 entra user list --displayName Patt --jobTitle 'Account manager'
|
|
|
79
98
|
<TabItem value="Text">
|
|
80
99
|
|
|
81
100
|
```text
|
|
82
|
-
userPrincipalName
|
|
83
|
-
|
|
84
|
-
John@contoso.onmicrosoft.com
|
|
101
|
+
id displayName mail userPrincipalName
|
|
102
|
+
------------------------------------ ------------------ ----------------------------------- ------------------------------------------
|
|
103
|
+
1f5595b2-aa07-445d-9801-a45ea18160b2 John Doe John@contoso.onmicrosoft.com John@contoso.onmicrosoft.com
|
|
85
104
|
```
|
|
86
105
|
|
|
87
106
|
</TabItem>
|
|
88
107
|
<TabItem value="CSV">
|
|
89
108
|
|
|
90
109
|
```csv
|
|
91
|
-
|
|
92
|
-
John@contoso.onmicrosoft.com,John
|
|
110
|
+
id,displayName,mail,userPrincipalName
|
|
111
|
+
1f5595b2-aa07-445d-9801-a45ea18160b2,John Doe,John@contoso.onmicrosoft.com,John@contoso.onmicrosoft.com
|
|
93
112
|
```
|
|
94
113
|
|
|
95
114
|
</TabItem>
|
|
@@ -100,12 +119,14 @@ m365 entra user list --displayName Patt --jobTitle 'Account manager'
|
|
|
100
119
|
|
|
101
120
|
Date: 2023-06-02
|
|
102
121
|
|
|
103
|
-
## John Doe
|
|
122
|
+
## John Doe (1f5595b2-aa07-445d-9801-a45ea18160b2)
|
|
104
123
|
|
|
105
124
|
Property | Value
|
|
106
125
|
---------|-------
|
|
107
|
-
|
|
126
|
+
id | 1f5595b2-aa07-445d-9801-a45ea18160b2
|
|
108
127
|
displayName | John Doe
|
|
128
|
+
mail | John@contoso.onmicrosoft.com
|
|
129
|
+
userPrincipalName | John@contoso.onmicrosoft.com
|
|
109
130
|
```
|
|
110
131
|
|
|
111
132
|
</TabItem>
|
|
@@ -113,4 +134,4 @@ m365 entra user list --displayName Patt --jobTitle 'Account manager'
|
|
|
113
134
|
|
|
114
135
|
## More information
|
|
115
136
|
|
|
116
|
-
- Microsoft Graph User properties: [https://
|
|
137
|
+
- Microsoft Graph User properties: [https://learn.microsoft.com/graph/api/resources/user?view=graph-rest-1.0#properties](https://learn.microsoft.com/graph/api/resources/user?view=graph-rest-1.0#properties)
|
|
@@ -35,7 +35,7 @@ m365 spfx project upgrade [options]
|
|
|
35
35
|
|
|
36
36
|
## Remarks
|
|
37
37
|
|
|
38
|
-
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.
|
|
38
|
+
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.19.0-beta.0).
|
|
39
39
|
|
|
40
40
|
This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
|
|
41
41
|
|
|
@@ -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>
|
|
@@ -32,7 +32,7 @@ m365 spo site apppermission add [options]
|
|
|
32
32
|
|
|
33
33
|
## Remarks
|
|
34
34
|
|
|
35
|
-
To set permissions, specify at minimum either `appId` or `
|
|
35
|
+
To set permissions, specify at minimum either `appId` or `appDisplayName`. For best performance specify both values to avoid extra lookup.
|
|
36
36
|
|
|
37
37
|
## Example
|
|
38
38
|
|