@pnp/cli-microsoft365 7.10.0-beta.0d80e6e → 7.10.0-beta.172f827
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 +2 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +1 -1
- package/dist/chili/chili.js +9 -77
- package/dist/m365/entra/commands/app/app-permission-remove.js +287 -0
- package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +124 -0
- package/dist/m365/entra/commands/pim/pim-role-request-list.js +149 -0
- package/dist/m365/entra/commands.js +3 -0
- package/dist/m365/spo/commands/file/file-add.js +41 -38
- package/dist/m365/spo/commands/folder/folder-add.js +65 -21
- package/dist/m365/teams/commands/user/user-app-add.js +17 -17
- package/dist/m365/teams/commands/user/user-app-upgrade.js +106 -0
- package/dist/m365/teams/commands.js +2 -1
- package/dist/utils/md.js +2 -2
- package/docs/docs/cmd/entra/app/app-permission-remove.mdx +60 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +205 -0
- package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +261 -0
- package/docs/docs/cmd/spo/folder/folder-add.mdx +9 -0
- package/docs/docs/cmd/status.mdx +10 -9
- package/docs/docs/cmd/teams/user/user-app-upgrade.mdx +59 -0
- package/package.json +1 -1
|
@@ -67,6 +67,7 @@ export default {
|
|
|
67
67
|
USER_SET: `${prefix} user set`,
|
|
68
68
|
USER_APP_ADD: `${prefix} user app add`,
|
|
69
69
|
USER_APP_LIST: `${prefix} user app list`,
|
|
70
|
-
USER_APP_REMOVE: `${prefix} user app remove
|
|
70
|
+
USER_APP_REMOVE: `${prefix} user app remove`,
|
|
71
|
+
USER_APP_UPGRADE: `${prefix} user app upgrade`
|
|
71
72
|
};
|
|
72
73
|
//# sourceMappingURL=commands.js.map
|
package/dist/utils/md.js
CHANGED
|
@@ -22,7 +22,7 @@ function includeContent(md, rootFolder) {
|
|
|
22
22
|
{ tag: "<CLISettings />", location: "docs/_clisettings.mdx" }
|
|
23
23
|
];
|
|
24
24
|
mdxImports.forEach(mdxImport => {
|
|
25
|
-
md = md.replace(mdxImport.tag, () => fs.readFileSync(path.join(rootFolder, mdxImport.location), 'utf8')).replace(/(```\r
|
|
25
|
+
md = md.replace(mdxImport.tag, () => fs.readFileSync(path.join(rootFolder, mdxImport.location), 'utf8')).replace(/(```\r?\n)\r?\n(```md definition-list\r?\n)/g, "$1$2");
|
|
26
26
|
});
|
|
27
27
|
return md;
|
|
28
28
|
}
|
|
@@ -54,7 +54,7 @@ function convertContentTabs(md) {
|
|
|
54
54
|
.trim();
|
|
55
55
|
}
|
|
56
56
|
function convertCodeFences(md) {
|
|
57
|
-
const regex = new RegExp('^```.*?(?:\r
|
|
57
|
+
const regex = new RegExp('^```.*?(?:\r?\n)(.*?)```(?:\r?\n)', 'gms');
|
|
58
58
|
return md.replace(regex, (match, code) => {
|
|
59
59
|
return `${code.replace(/^(.+)$/gm, ' $1')}${EOL}`;
|
|
60
60
|
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# entra app permission remove
|
|
4
|
+
|
|
5
|
+
Removes the specified application and/or delegated permissions from a specified Entra app.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra app permission remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --appId [appId]`
|
|
17
|
+
: Client ID of the Microsoft Entra app to add the API permissions to. Specify either `appId`, `appName` or `appObjectId`.
|
|
18
|
+
|
|
19
|
+
`--appObjectId [appObjectId]`
|
|
20
|
+
: Object ID of the Microsoft Entra app to add the API permissions to. Specify either `appId`, `appName` or `appObjectId`.
|
|
21
|
+
|
|
22
|
+
`-n, --appName [appName]`
|
|
23
|
+
: Display name of the Entra app to remove the API permissions from. Specify either `appId`, `appName` or `appObjectId`.
|
|
24
|
+
|
|
25
|
+
`-a, --applicationPermissions [applicationPermissions]`
|
|
26
|
+
: Space-separated list of application permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
27
|
+
|
|
28
|
+
`-d, --delegatedPermissions [delegatedPermissions]`
|
|
29
|
+
: Space-separated list of delegated permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
30
|
+
|
|
31
|
+
`--revokeAdminConsent`
|
|
32
|
+
: When specified, revokes the admin consent for the specified permissions as well.
|
|
33
|
+
|
|
34
|
+
`-f, --force`
|
|
35
|
+
: Don't prompt for confirmation to remove the permissions.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
<Global />
|
|
39
|
+
|
|
40
|
+
## Remarks
|
|
41
|
+
|
|
42
|
+
Removing permissions on App Registrations does not immediately remove consent given by an administrator. Explicitly instruct the CLI to revoke consent by using the `--revokeAdminConsent` flag.
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
Remove multiple delegated API permissions from an Entra app registration
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
m365 entra app permission remove --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --delegatedPermissions 'https://management.azure.com/user_impersonation https://service.flow.microsoft.com/Flows.Read.All https://graph.microsoft.com/Agreement.Read.All'
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Remove multiple app-only permissions from an Entra app registration and revoke admin consent
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
m365 entra app permission remove --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --applicationPermissions 'https://graph.microsoft.com/Sites.FullControl.All https://microsoft.sharepoint-df.com/Sites.FullControl.All' --revokeAdminConsent
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Response
|
|
59
|
+
|
|
60
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,205 @@
|
|
|
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 eligibility list
|
|
6
|
+
|
|
7
|
+
Retrieves a list of eligible roles a user or group can be assigned to
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra pim role assignment eligibility list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--userId [userId]`
|
|
19
|
+
: Id of the user for which to list eligible roles. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all eligible roles will be listed.
|
|
20
|
+
|
|
21
|
+
`--userName [userName]`
|
|
22
|
+
: UPN of the user for which to list eligible roles. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all eligible roles will be listed.
|
|
23
|
+
|
|
24
|
+
`--groupId [groupId]`
|
|
25
|
+
: Id of the group for which to list eligible roles. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all eligible roles will be listed.
|
|
26
|
+
|
|
27
|
+
`--groupName [groupName]`
|
|
28
|
+
: Display name of the group for which to list eligible roles. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all eligible roles will be listed.
|
|
29
|
+
|
|
30
|
+
`--includePrincipalDetails`
|
|
31
|
+
: An optional flag to include details of the principals that were eligible for a role.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
<Global />
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
Get a list of eligible roles for any user.
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 entra pim role assignment eligibility list
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Get a list of eligible roles for the current user.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 entra pim role assignment eligibility list --userId '@meID'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Get a list of eligible roles for any user with principal details.
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 entra pim role assignment eligibility list --includePrincipalDetails
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Response
|
|
57
|
+
|
|
58
|
+
### Standard response
|
|
59
|
+
|
|
60
|
+
<Tabs>
|
|
61
|
+
<TabItem value="JSON">
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
[
|
|
65
|
+
{
|
|
66
|
+
"id": "XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e",
|
|
67
|
+
"principalId": "52f26d18-d151-434f-ae14-a4a83122b2b2",
|
|
68
|
+
"roleDefinitionId": "0964bb5e-9bdb-4d7b-ac29-58e794862a40",
|
|
69
|
+
"directoryScopeId": "/",
|
|
70
|
+
"appScopeId": null,
|
|
71
|
+
"startDateTime": "2024-04-08T10:14:01.153Z",
|
|
72
|
+
"endDateTime": null,
|
|
73
|
+
"memberType": "Direct",
|
|
74
|
+
"roleEligibilityScheduleId": "7a135e3d-5be5-403c-bdad-47ccbac434e3",
|
|
75
|
+
"roleDefinitionName": "displayName": "Search Administrator"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
</TabItem>
|
|
81
|
+
<TabItem value="Text">
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
roleDefinitionId roleDefinitionName principalId
|
|
85
|
+
------------------------------------ -------------------- ------------------------------------
|
|
86
|
+
0964bb5e-9bdb-4d7b-ac29-58e794862a40 Search Administrator 52f26d18-d151-434f-ae14-a4a83122b2b2
|
|
87
|
+
744ec460-397e-42ad-a462-8b3f9747a02c Knowledge Manager 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
</TabItem>
|
|
91
|
+
<TabItem value="CSV">
|
|
92
|
+
|
|
93
|
+
```csv
|
|
94
|
+
id,principalId,roleDefinitionId,directoryScopeId,appScopeId,startDateTime,endDateTime,memberType,roleEligibilityScheduleId,roleDefinitionName
|
|
95
|
+
XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e,52f26d18-d151-434f-ae14-a4a83122b2b2,0964bb5e-9bdb-4d7b-ac29-58e794862a40,/,,2024-04-08T10:14:01.153Z,,Direct,7a135e3d-5be5-403c-bdad-47ccbac434e3,Search Administrator
|
|
96
|
+
YMROdH45rUKkYos_l0egLC_FsGECqWlHmgnGYoM1sAo-1-e,61b0c52f-a902-4769-9a09-c6628335b00a,744ec460-397e-42ad-a462-8b3f9747a02c,/,,2024-04-08T10:13:04.913Z,2025-04-08T10:12:36.9Z,Direct,0606b8a1-ba92-42b7-804c-8e32dfdec2b8,Knowledge Manager
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
</TabItem>
|
|
100
|
+
<TabItem value="Markdown">
|
|
101
|
+
|
|
102
|
+
```md
|
|
103
|
+
# entra pim role assignment eligibility list
|
|
104
|
+
|
|
105
|
+
Date: 4/8/2024
|
|
106
|
+
|
|
107
|
+
## XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e
|
|
108
|
+
|
|
109
|
+
Property | Value
|
|
110
|
+
---------|-------
|
|
111
|
+
id | XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e
|
|
112
|
+
principalId | 52f26d18-d151-434f-ae14-a4a83122b2b2
|
|
113
|
+
roleDefinitionId | 0964bb5e-9bdb-4d7b-ac29-58e794862a40
|
|
114
|
+
directoryScopeId | /
|
|
115
|
+
startDateTime | 2024-04-08T10:14:01.153Z
|
|
116
|
+
memberType | Direct
|
|
117
|
+
roleEligibilityScheduleId | 7a135e3d-5be5-403c-bdad-47ccbac434e3
|
|
118
|
+
roleDefinitionName | Search Administrator
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
</TabItem>
|
|
122
|
+
</Tabs>
|
|
123
|
+
|
|
124
|
+
### `includePrincipalDetails` response
|
|
125
|
+
|
|
126
|
+
When we make use of the option `includePrincipalDetails` the response will differ.
|
|
127
|
+
|
|
128
|
+
<Tabs>
|
|
129
|
+
<TabItem value="JSON">
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
[
|
|
133
|
+
{
|
|
134
|
+
"id": "XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e",
|
|
135
|
+
"principalId": "52f26d18-d151-434f-ae14-a4a83122b2b2",
|
|
136
|
+
"roleDefinitionId": "0964bb5e-9bdb-4d7b-ac29-58e794862a40",
|
|
137
|
+
"directoryScopeId": "/",
|
|
138
|
+
"appScopeId": null,
|
|
139
|
+
"startDateTime": "2024-04-08T10:14:01.153Z",
|
|
140
|
+
"endDateTime": null,
|
|
141
|
+
"memberType": "Direct",
|
|
142
|
+
"roleEligibilityScheduleId": "7a135e3d-5be5-403c-bdad-47ccbac434e3",
|
|
143
|
+
"roleDefinitionName": "Search Administrator",
|
|
144
|
+
"principal": {
|
|
145
|
+
"id": "52f26d18-d151-434f-ae14-a4a83122b2b2",
|
|
146
|
+
"displayName": "Alex Wilber",
|
|
147
|
+
"userPrincipalName": "AlexW@contoso.onmicrosoft.com",
|
|
148
|
+
"mail": "AlexW@contoso.onmicrosoft.com",
|
|
149
|
+
"businessPhones": [
|
|
150
|
+
"+1 858 555 0110"
|
|
151
|
+
],
|
|
152
|
+
"givenName": "Alex",
|
|
153
|
+
"jobTitle": "Marketing Assistant",
|
|
154
|
+
"mobilePhone": null,
|
|
155
|
+
"officeLocation": "131/1104",
|
|
156
|
+
"preferredLanguage": "en-US",
|
|
157
|
+
"surname": "Wilber"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
</TabItem>
|
|
164
|
+
<TabItem value="Text">
|
|
165
|
+
|
|
166
|
+
```text
|
|
167
|
+
roleDefinitionId roleDefinitionName principalId
|
|
168
|
+
------------------------------------ -------------------- ------------------------------------
|
|
169
|
+
0964bb5e-9bdb-4d7b-ac29-58e794862a40 Search Administrator 52f26d18-d151-434f-ae14-a4a83122b2b2
|
|
170
|
+
744ec460-397e-42ad-a462-8b3f9747a02c Knowledge Manager 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
</TabItem>
|
|
174
|
+
<TabItem value="CSV">
|
|
175
|
+
|
|
176
|
+
```csv
|
|
177
|
+
id,principalId,roleDefinitionId,directoryScopeId,appScopeId,startDateTime,endDateTime,memberType,roleEligibilityScheduleId,roleDefinitionName
|
|
178
|
+
XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e,52f26d18-d151-434f-ae14-a4a83122b2b2,0964bb5e-9bdb-4d7b-ac29-58e794862a40,/,,2024-04-08T10:14:01.153Z,,Direct,7a135e3d-5be5-403c-bdad-47ccbac434e3,Search Administrator
|
|
179
|
+
YMROdH45rUKkYos_l0egLC_FsGECqWlHmgnGYoM1sAo-1-e,61b0c52f-a902-4769-9a09-c6628335b00a,744ec460-397e-42ad-a462-8b3f9747a02c,/,,2024-04-08T10:13:04.913Z,2025-04-08T10:12:36.9Z,Direct,0606b8a1-ba92-42b7-804c-8e32dfdec2b8,Knowledge Manager
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
</TabItem>
|
|
183
|
+
<TabItem value="Markdown">
|
|
184
|
+
|
|
185
|
+
```md
|
|
186
|
+
# entra pim role assignment eligibility list --includePrincipalDetails "true"
|
|
187
|
+
|
|
188
|
+
Date: 4/8/2024
|
|
189
|
+
|
|
190
|
+
## XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e
|
|
191
|
+
|
|
192
|
+
Property | Value
|
|
193
|
+
---------|-------
|
|
194
|
+
id | XrtkCdube02sKVjnlIYqQBht8lJR0U9DrhSkqDEisrI-1-e
|
|
195
|
+
principalId | 52f26d18-d151-434f-ae14-a4a83122b2b2
|
|
196
|
+
roleDefinitionId | 0964bb5e-9bdb-4d7b-ac29-58e794862a40
|
|
197
|
+
directoryScopeId | /
|
|
198
|
+
startDateTime | 2024-04-08T10:14:01.153Z
|
|
199
|
+
memberType | Direct
|
|
200
|
+
roleEligibilityScheduleId | 7a135e3d-5be5-403c-bdad-47ccbac434e3
|
|
201
|
+
roleDefinitionName | Search Administrator
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
</TabItem>
|
|
205
|
+
</Tabs>
|
|
@@ -0,0 +1,261 @@
|
|
|
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 request list
|
|
6
|
+
|
|
7
|
+
Retrieves a list of PIM requests for roles
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra pim role request list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--userId [userId]`
|
|
19
|
+
: Id of the user for which to list requests. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all requests will be listed.
|
|
20
|
+
|
|
21
|
+
`--userName [userName]`
|
|
22
|
+
: UPN of the user for which to list requests. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all requests will be listed.
|
|
23
|
+
|
|
24
|
+
`--groupId [groupId]`
|
|
25
|
+
: Id of the group for which to list requests. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all requests will be listed.
|
|
26
|
+
|
|
27
|
+
`--groupName [groupName]`
|
|
28
|
+
: Display name of the group for which to list requests. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all requests will be listed.
|
|
29
|
+
|
|
30
|
+
`-c, --createdDateTime [createdDateTime]`
|
|
31
|
+
: An optional ISO 8601 formatted date filter to search from.
|
|
32
|
+
|
|
33
|
+
`-s, --status [status]`
|
|
34
|
+
: An optional value to filter the list of requests. Allowed values are: `Canceled`, `Denied`, `Failed`, `Granted`, `PendingAdminDecision`, `PendingApproval`, `PendingProvisioning`, `PendingScheduleCreation`, `Provisioned`, `Revoked`, and `ScheduleCreated`.
|
|
35
|
+
|
|
36
|
+
`--includePrincipalDetails`
|
|
37
|
+
: An optional flag to include details of the principals that were assigned a role.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
Get a list of PIM requests for roles.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 entra pim role request list
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Get a list of PIM requests for the current user.
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 entra pim role request list --userId '@meID'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Get a list of PIM requests for a specified user since the first of January 2024.
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
m365 entra pim role request list --createdDateTime 2024-01-01T00:00:00Z
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Get a list of PIM requests with principal details.
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
m365 entra pim role request list --includePrincipalDetails
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Get a list of PIM requests with pending approvals.
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
m365 entra pim role request list --status PendingApproval
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Response
|
|
75
|
+
|
|
76
|
+
### Standard response
|
|
77
|
+
|
|
78
|
+
<Tabs>
|
|
79
|
+
<TabItem value="JSON">
|
|
80
|
+
|
|
81
|
+
```json
|
|
82
|
+
[
|
|
83
|
+
{
|
|
84
|
+
"id": "80231d2f-95a1-47a5-8339-acf3d71efec7",
|
|
85
|
+
"status": "Revoked",
|
|
86
|
+
"createdDateTime": "2024-02-12T14:08:38.82Z",
|
|
87
|
+
"completedDateTime": null,
|
|
88
|
+
"approvalId": null,
|
|
89
|
+
"customData": null,
|
|
90
|
+
"action": "adminRemove",
|
|
91
|
+
"principalId": "61b0c52f-a902-4769-9a09-c6628335b00a",
|
|
92
|
+
"roleDefinitionId": "f28a1f50-f6e7-4571-818b-6a12f2af6b6c",
|
|
93
|
+
"directoryScopeId": "/",
|
|
94
|
+
"appScopeId": null,
|
|
95
|
+
"isValidationOnly": false,
|
|
96
|
+
"targetScheduleId": null,
|
|
97
|
+
"justification": null,
|
|
98
|
+
"scheduleInfo": null,
|
|
99
|
+
"createdBy": {
|
|
100
|
+
"application": null,
|
|
101
|
+
"device": null,
|
|
102
|
+
"user": {
|
|
103
|
+
"displayName": null,
|
|
104
|
+
"id": "893f9116-e024-4bc6-8e98-54c245129485"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"ticketInfo": {
|
|
108
|
+
"ticketNumber": null,
|
|
109
|
+
"ticketSystem": null
|
|
110
|
+
},
|
|
111
|
+
"roleDefinitionName": "SharePoint Administrator"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
</TabItem>
|
|
117
|
+
<TabItem value="Text">
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
id roleDefinitionName principalId
|
|
121
|
+
------------------------------------ ------------------------ ------------------------------------
|
|
122
|
+
48eed833-155f-46ce-87f2-e02e94667dd8 SharePoint Administrator 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
123
|
+
da1cb564-78ba-4198-b94a-613d892ed73e User Administrator 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
</TabItem>
|
|
127
|
+
<TabItem value="CSV">
|
|
128
|
+
|
|
129
|
+
```csv
|
|
130
|
+
id,status,createdDateTime,completedDateTime,approvalId,customData,action,principalId,roleDefinitionId,directoryScopeId,appScopeId,isValidationOnly,targetScheduleId,justification,scheduleInfo,roleDefinitionName
|
|
131
|
+
da1cb564-78ba-4198-b94a-613d892ed73e,Revoked,2023-10-15T12:35:08.167Z,,,,adminRemove,61b0c52f-a902-4769-9a09-c6628335b00a,fe930be7-5e62-47db-91af-98c3a49a38b1,/administrativeUnits/0a22c83d-c4ac-43e2-bb5e-87af3015d49f,,,,,,User Administrator
|
|
132
|
+
38d6295f-19e9-4945-90f4-75a2284676ea,Revoked,2024-02-12T08:19:25.037Z,,,,adminRemove,61b0c52f-a902-4769-9a09-c6628335b00a,f28a1f50-f6e7-4571-818b-6a12f2af6b6c,/administrativeUnits/81bb36e4-f4c6-4984-8e56-d4f8feae9e09,,,,,,SharePoint Administrator
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
</TabItem>
|
|
136
|
+
<TabItem value="Markdown">
|
|
137
|
+
|
|
138
|
+
```md
|
|
139
|
+
# entra pim role request list
|
|
140
|
+
|
|
141
|
+
Date: 5/30/2024
|
|
142
|
+
|
|
143
|
+
## da1cb564-78ba-4198-b94a-613d892ed73e
|
|
144
|
+
|
|
145
|
+
Property | Value
|
|
146
|
+
---------|-------
|
|
147
|
+
id | da1cb564-78ba-4198-b94a-613d892ed73e
|
|
148
|
+
status | Revoked
|
|
149
|
+
createdDateTime | 2023-10-15T12:35:08.167Z
|
|
150
|
+
action | adminRemove
|
|
151
|
+
principalId | 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
152
|
+
roleDefinitionId | fe930be7-5e62-47db-91af-98c3a49a38b1
|
|
153
|
+
directoryScopeId | /administrativeUnits/0a22c83d-c4ac-43e2-bb5e-87af3015d49f
|
|
154
|
+
isValidationOnly | false
|
|
155
|
+
roleDefinitionName | User Administrator
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
</TabItem>
|
|
159
|
+
</Tabs>
|
|
160
|
+
|
|
161
|
+
### `includePrincipalDetails` response
|
|
162
|
+
|
|
163
|
+
When we make use of the option `includePrincipalDetails` the response will differ.
|
|
164
|
+
|
|
165
|
+
<Tabs>
|
|
166
|
+
<TabItem value="JSON">
|
|
167
|
+
|
|
168
|
+
```json
|
|
169
|
+
[
|
|
170
|
+
{
|
|
171
|
+
"id": "80231d2f-95a1-47a5-8339-acf3d71efec7",
|
|
172
|
+
"status": "Revoked",
|
|
173
|
+
"createdDateTime": "2024-02-12T14:08:38.82Z",
|
|
174
|
+
"completedDateTime": null,
|
|
175
|
+
"approvalId": null,
|
|
176
|
+
"customData": null,
|
|
177
|
+
"action": "adminRemove",
|
|
178
|
+
"principalId": "61b0c52f-a902-4769-9a09-c6628335b00a",
|
|
179
|
+
"roleDefinitionId": "f28a1f50-f6e7-4571-818b-6a12f2af6b6c",
|
|
180
|
+
"directoryScopeId": "/",
|
|
181
|
+
"appScopeId": null,
|
|
182
|
+
"isValidationOnly": false,
|
|
183
|
+
"targetScheduleId": null,
|
|
184
|
+
"justification": null,
|
|
185
|
+
"scheduleInfo": null,
|
|
186
|
+
"createdBy": {
|
|
187
|
+
"application": null,
|
|
188
|
+
"device": null,
|
|
189
|
+
"user": {
|
|
190
|
+
"displayName": null,
|
|
191
|
+
"id": "893f9116-e024-4bc6-8e98-54c245129485"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"ticketInfo": {
|
|
195
|
+
"ticketNumber": null,
|
|
196
|
+
"ticketSystem": null
|
|
197
|
+
},
|
|
198
|
+
"roleDefinitionName": "SharePoint Administrator",
|
|
199
|
+
"principal": {
|
|
200
|
+
"id": "61b0c52f-a902-4769-9a09-c6628335b00a",
|
|
201
|
+
"displayName": "John Doe",
|
|
202
|
+
"userPrincipalName": "JohnDoe@contoso.onmicrosoft.com",
|
|
203
|
+
"mail": "JohnDoe@contoso.onmicrosoft.com",
|
|
204
|
+
"businessPhones": [
|
|
205
|
+
"+1 425 555 0109"
|
|
206
|
+
],
|
|
207
|
+
"givenName": "John",
|
|
208
|
+
"jobTitle": "Retail Manager",
|
|
209
|
+
"mobilePhone": null,
|
|
210
|
+
"officeLocation": "18/2111",
|
|
211
|
+
"preferredLanguage": "en-US",
|
|
212
|
+
"surname": "Doe"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
</TabItem>
|
|
219
|
+
<TabItem value="Text">
|
|
220
|
+
|
|
221
|
+
```text
|
|
222
|
+
id roleDefinitionName principalId
|
|
223
|
+
------------------------------------ ------------------------ ------------------------------------
|
|
224
|
+
48eed833-155f-46ce-87f2-e02e94667dd8 SharePoint Administrator 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
225
|
+
da1cb564-78ba-4198-b94a-613d892ed73e User Administrator 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
</TabItem>
|
|
229
|
+
<TabItem value="CSV">
|
|
230
|
+
|
|
231
|
+
```csv
|
|
232
|
+
id,status,createdDateTime,completedDateTime,approvalId,customData,action,principalId,roleDefinitionId,directoryScopeId,appScopeId,isValidationOnly,targetScheduleId,justification,scheduleInfo,roleDefinitionName
|
|
233
|
+
da1cb564-78ba-4198-b94a-613d892ed73e,Revoked,2023-10-15T12:35:08.167Z,,,,adminRemove,61b0c52f-a902-4769-9a09-c6628335b00a,fe930be7-5e62-47db-91af-98c3a49a38b1,/administrativeUnits/0a22c83d-c4ac-43e2-bb5e-87af3015d49f,,,,,,User Administrator
|
|
234
|
+
38d6295f-19e9-4945-90f4-75a2284676ea,Revoked,2024-02-12T08:19:25.037Z,,,,adminRemove,61b0c52f-a902-4769-9a09-c6628335b00a,f28a1f50-f6e7-4571-818b-6a12f2af6b6c,/administrativeUnits/81bb36e4-f4c6-4984-8e56-d4f8feae9e09,,,,,,SharePoint Administrator
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
</TabItem>
|
|
238
|
+
<TabItem value="Markdown">
|
|
239
|
+
|
|
240
|
+
```md
|
|
241
|
+
# entra pim role request list --includePrincipalDetails "true"
|
|
242
|
+
|
|
243
|
+
Date: 5/30/2024
|
|
244
|
+
|
|
245
|
+
## da1cb564-78ba-4198-b94a-613d892ed73e
|
|
246
|
+
|
|
247
|
+
Property | Value
|
|
248
|
+
---------|-------
|
|
249
|
+
id | da1cb564-78ba-4198-b94a-613d892ed73e
|
|
250
|
+
status | Revoked
|
|
251
|
+
createdDateTime | 2023-10-15T12:35:08.167Z
|
|
252
|
+
action | adminRemove
|
|
253
|
+
principalId | 61b0c52f-a902-4769-9a09-c6628335b00a
|
|
254
|
+
roleDefinitionId | fe930be7-5e62-47db-91af-98c3a49a38b1
|
|
255
|
+
directoryScopeId | /administrativeUnits/0a22c83d-c4ac-43e2-bb5e-87af3015d49f
|
|
256
|
+
isValidationOnly | false
|
|
257
|
+
roleDefinitionName | User Administrator
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
</TabItem>
|
|
261
|
+
</Tabs>
|
|
@@ -26,6 +26,9 @@ m365 spo folder add [options]
|
|
|
26
26
|
|
|
27
27
|
`--color [color]`
|
|
28
28
|
: Visual color of the folder. Valid values are a color name or a number. Check remarks for more info.
|
|
29
|
+
|
|
30
|
+
`--ensureParentFolders [ensureParentFolders]`
|
|
31
|
+
: Ensure that the parent folder path is available. Any missing folders will be created recursively.
|
|
29
32
|
```
|
|
30
33
|
|
|
31
34
|
<Global />
|
|
@@ -79,6 +82,12 @@ Create a folder with a light teal look
|
|
|
79
82
|
m365 spo folder add --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color lightTeal
|
|
80
83
|
```
|
|
81
84
|
|
|
85
|
+
Create a folder and make sure that any missing folders specified as parent folders are created.
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/Projects/2024/Q1/Reports' --name Financial --ensureParentFolders
|
|
89
|
+
```
|
|
90
|
+
|
|
82
91
|
## Response
|
|
83
92
|
|
|
84
93
|
<Tabs>
|
package/docs/docs/cmd/status.mdx
CHANGED
|
@@ -35,6 +35,7 @@ m365 status
|
|
|
35
35
|
|
|
36
36
|
```json
|
|
37
37
|
{
|
|
38
|
+
"connectionName": "dd8b99a7-77c6-4238-a609-396d27844921",
|
|
38
39
|
"connectedAs": "john.doe@contoso.onmicrosoft.com",
|
|
39
40
|
"authType": "DeviceCode",
|
|
40
41
|
"appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
|
|
@@ -47,19 +48,20 @@ m365 status
|
|
|
47
48
|
<TabItem value="Text">
|
|
48
49
|
|
|
49
50
|
```text
|
|
50
|
-
appId
|
|
51
|
-
appTenant
|
|
52
|
-
authType
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
appId : 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
52
|
+
appTenant : common
|
|
53
|
+
authType : DeviceCode
|
|
54
|
+
cloudType : Public
|
|
55
|
+
connectedAs : john.doe@contoso.onmicrosoft.com
|
|
56
|
+
connectionName: dd8b99a7-77c6-4238-a609-396d27844921
|
|
55
57
|
```
|
|
56
58
|
|
|
57
59
|
</TabItem>
|
|
58
60
|
<TabItem value="CSV">
|
|
59
61
|
|
|
60
62
|
```csv
|
|
61
|
-
connectedAs,authType,appId,appTenant,cloudType
|
|
62
|
-
john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
|
|
63
|
+
connectionName,connectedAs,authType,appId,appTenant,cloudType
|
|
64
|
+
dd8b99a7-77c6-4238-a609-396d27844921,john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common,Public
|
|
63
65
|
```
|
|
64
66
|
|
|
65
67
|
</TabItem>
|
|
@@ -70,10 +72,9 @@ m365 status
|
|
|
70
72
|
|
|
71
73
|
Date: 7/2/2023
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
|
|
75
75
|
Property | Value
|
|
76
76
|
---------|-------
|
|
77
|
+
connectionName | dd8b99a7-77c6-4238-a609-396d27844921
|
|
77
78
|
connectedAs | john.doe@contoso.onmicrosoft.com
|
|
78
79
|
authType | DeviceCode
|
|
79
80
|
appId | 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# teams user app upgrade
|
|
4
|
+
|
|
5
|
+
Upgrade an app in the personal scope of the specified user
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 teams user app upgrade [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`--id [id]`
|
|
17
|
+
: The unique id of the app instance installed for the user. Specify either `id` or `name`.
|
|
18
|
+
|
|
19
|
+
`--name [name]`
|
|
20
|
+
: Name of the app instance installed for the user. Specify either `id` or `name`.
|
|
21
|
+
|
|
22
|
+
`--userId [userId]`
|
|
23
|
+
: The ID of the user to upgrade the app for. Specify either `userId` or `userName` but not both.
|
|
24
|
+
|
|
25
|
+
`--userName [userName]`
|
|
26
|
+
: The UPN of the user to upgrade the app for. Specify either `userId` or `userName` but not both.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
<Global />
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Upgrade an app by name for the specified user using its UPN.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 teams user app upgrade --name HelloWorld --userName admin@contoso.com
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Upgrade an app by name for the specified user using its id.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 teams user app upgrade --name HelloWorld --userId 2609af39-7775-4f94-a3dc-0dd67657e900
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Upgrade an app by id for the specified user using its UPN.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 teams user app upgrade --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userName admin@contoso.com
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Upgrade an app by id for the specified user using its id.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 teams user app upgrade --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userId 2609af39-7775-4f94-a3dc-0dd67657e900
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Response
|
|
58
|
+
|
|
59
|
+
The command won't return a response on success.
|
package/package.json
CHANGED