@pnp/cli-microsoft365 7.6.0-beta.443bfd8 → 7.6.0-beta.480812d
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/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +2 -2
- package/dist/AuthServer.js +1 -1
- package/dist/config.js +2 -2
- package/dist/m365/app/commands/app-get.js +1 -1
- package/dist/m365/app/commands/app-open.js +1 -1
- package/dist/m365/app/commands/permission/permission-add.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +2 -2
- package/dist/m365/cli/commands/cli-consent.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +3 -3
- package/dist/m365/commands/login.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +1 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +1 -0
- package/dist/m365/entra/commands/app/app-add.js +7 -6
- package/dist/m365/entra/commands/app/app-get.js +4 -3
- package/dist/m365/entra/commands/app/app-list.js +1 -0
- package/dist/m365/entra/commands/app/app-permission-add.js +3 -2
- package/dist/m365/entra/commands/app/app-permission-list.js +1 -1
- package/dist/m365/entra/commands/app/app-remove.js +5 -4
- package/dist/m365/entra/commands/app/app-role-add.js +6 -5
- package/dist/m365/entra/commands/app/app-role-list.js +4 -3
- package/dist/m365/entra/commands/app/app-role-remove.js +6 -5
- package/dist/m365/entra/commands/app/app-set.js +8 -7
- package/dist/m365/entra/commands/approleassignment/approleassignment-add.js +2 -1
- package/dist/m365/entra/commands/approleassignment/approleassignment-list.js +1 -0
- package/dist/m365/entra/commands/approleassignment/approleassignment-remove.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +1 -0
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -0
- package/dist/m365/entra/commands/group/group-get.js +1 -0
- package/dist/m365/entra/commands/group/group-list.js +1 -0
- package/dist/m365/entra/commands/group/group-remove.js +1 -0
- package/dist/m365/entra/commands/group/group-user-list.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-add.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-get.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-list.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-remove.js +1 -0
- package/dist/m365/entra/commands/groupsetting/groupsetting-set.js +1 -0
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-get.js +1 -0
- package/dist/m365/entra/commands/groupsettingtemplate/groupsettingtemplate-list.js +1 -0
- package/dist/m365/entra/commands/license/license-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-add.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-get.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-clear.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-restore.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-renew.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-set.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +1 -0
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-add.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-remove.js +1 -0
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-set.js +1 -0
- package/dist/m365/entra/commands/policy/policy-list.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-disable.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-enable.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-get.js +1 -0
- package/dist/m365/entra/commands/siteclassification/siteclassification-set.js +1 -0
- package/dist/m365/entra/commands/user/user-add.js +1 -0
- package/dist/m365/entra/commands/user/user-get.js +1 -0
- package/dist/m365/entra/commands/user/user-guest-add.js +1 -0
- package/dist/m365/entra/commands/user/user-hibp.js +1 -0
- package/dist/m365/entra/commands/user/user-license-add.js +1 -0
- package/dist/m365/entra/commands/user/user-license-list.js +1 -0
- package/dist/m365/entra/commands/user/user-license-remove.js +1 -0
- package/dist/m365/entra/commands/user/user-list.js +1 -0
- package/dist/m365/entra/commands/user/user-password-validate.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-clear.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-list.js +1 -0
- package/dist/m365/entra/commands/user/user-recyclebinitem-remove.js +2 -1
- package/dist/m365/entra/commands/user/user-recyclebinitem-restore.js +1 -0
- package/dist/m365/entra/commands/user/user-remove.js +1 -0
- package/dist/m365/entra/commands/user/user-set.js +1 -0
- package/dist/m365/entra/commands/user/user-signin-list.js +1 -0
- package/dist/m365/outlook/commands/message/message-remove.js +113 -0
- package/dist/m365/outlook/commands.js +1 -0
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +7 -7
- package/dist/m365/spo/commands/folder/FolderColor.js +19 -0
- package/dist/m365/spo/commands/folder/folder-add.js +46 -17
- package/dist/m365/spo/commands/folder/folder-set.js +118 -0
- package/dist/m365/spo/commands/group/group-member-add.js +2 -2
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +2 -2
- package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -27
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +1 -1
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/tab/tab-get.js +1 -1
- package/dist/utils/spo.js +1 -1
- package/docs/docs/cmd/app/app-get.mdx +10 -10
- package/docs/docs/cmd/app/app-open.mdx +6 -6
- package/docs/docs/cmd/app/permission/permission-add.mdx +2 -2
- package/docs/docs/cmd/app/permission/permission-list.mdx +5 -5
- package/docs/docs/cmd/cli/cli-consent.mdx +2 -2
- package/docs/docs/cmd/cli/cli-reconsent.mdx +6 -6
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +6 -6
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +1 -1
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +4 -4
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +1 -1
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-user-add.mdx +7 -7
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +1 -1
- package/docs/docs/cmd/external/connection/connection-add.mdx +2 -2
- package/docs/docs/cmd/file/file-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +2 -2
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/login.mdx +18 -18
- package/docs/docs/cmd/outlook/message/message-remove.mdx +67 -0
- package/docs/docs/cmd/pa/app/app-owner-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +3 -3
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +3 -3
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-add.mdx +5 -5
- package/docs/docs/cmd/planner/roster/roster-get.mdx +7 -7
- package/docs/docs/cmd/planner/roster/roster-member-add.mdx +4 -4
- package/docs/docs/cmd/planner/roster/roster-member-get.mdx +4 -4
- package/docs/docs/cmd/planner/roster/roster-member-list.mdx +2 -2
- package/docs/docs/cmd/planner/roster/roster-member-remove.mdx +5 -5
- package/docs/docs/cmd/planner/roster/roster-plan-list.mdx +1 -1
- package/docs/docs/cmd/planner/roster/roster-remove.mdx +2 -2
- package/docs/docs/cmd/planner/task/task-add.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-get.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-list.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-remove.mdx +1 -1
- package/docs/docs/cmd/planner/task/task-set.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-get.mdx +1 -1
- package/docs/docs/cmd/pp/environment/environment-list.mdx +1 -1
- package/docs/docs/cmd/pp/managementapp/managementapp-add.mdx +9 -9
- package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +1 -1
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +1 -1
- package/docs/docs/cmd/request.mdx +1 -1
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-add.mdx +38 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-set.mdx +88 -0
- package/docs/docs/cmd/spo/group/group-member-add.mdx +2 -2
- package/docs/docs/cmd/spo/group/group-member-remove.mdx +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +8 -8
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-add.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-apppermission-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.mdx +29 -5
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +89 -89
- package/docs/docs/cmd/spo/user/user-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +3 -3
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +2 -2
- package/docs/docs/cmd/teams/channel/channel-member-remove.mdx +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-set.mdx +1 -1
- package/docs/docs/cmd/teams/chat/chat-member-remove.mdx +3 -3
- package/docs/docs/cmd/teams/report/report-directroutingcalls.mdx +1 -1
- package/docs/docs/cmd/teams/report/report-pstncalls.mdx +1 -1
- package/docs/docs/cmd/teams/tab/tab-get.mdx +19 -12
- package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-user-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-group-user-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-add.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-like-set.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-message-remove.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-network-list.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-search.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-get.mdx +1 -1
- package/docs/docs/cmd/viva/engage/engage-user-list.mdx +1 -1
- package/npm-shrinkwrap.json +62 -58
- package/package.json +11 -11
- package/dist/m365/spo/commands/folder/folder-rename.js +0 -72
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +0 -44
|
@@ -23,10 +23,36 @@ m365 spo folder add [options]
|
|
|
23
23
|
|
|
24
24
|
`-n, --name <name>`
|
|
25
25
|
: Name of the new folder to be created.
|
|
26
|
+
|
|
27
|
+
`--color [color]`
|
|
28
|
+
: Visual color of the folder. Valid values are a color name or a number. Check remarks for more info.
|
|
26
29
|
```
|
|
27
30
|
|
|
28
31
|
<Global />
|
|
29
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
When you specify a value for `color`, consider the following:
|
|
36
|
+
|
|
37
|
+
| Color | Number value | String value |
|
|
38
|
+
|--------------|--------------|--------------|
|
|
39
|
+
| Yellow | 0 | yellow |
|
|
40
|
+
| Dark red | 1 | darkRed |
|
|
41
|
+
| Dark orange | 2 | darkOrange |
|
|
42
|
+
| Dark green | 3 | darkGreen |
|
|
43
|
+
| Dark teal | 4 | darkTeal |
|
|
44
|
+
| Dark blue | 5 | darkBlue |
|
|
45
|
+
| Dark purple | 6 | darkPurple |
|
|
46
|
+
| Dark pink | 7 | darkPink |
|
|
47
|
+
| Grey | 8 | grey |
|
|
48
|
+
| Light red | 9 | lightRed |
|
|
49
|
+
| Light orange | 10 | lightOrange |
|
|
50
|
+
| Light green | 11 | lightGreen |
|
|
51
|
+
| Light teal | 12 | lightTeal |
|
|
52
|
+
| Light blue | 13 | lightBlue |
|
|
53
|
+
| Light purple | 14 | lightPurple |
|
|
54
|
+
| Light pink | 15 | lightPink |
|
|
55
|
+
|
|
30
56
|
## Examples
|
|
31
57
|
|
|
32
58
|
Creates folder in a specific library within the site.
|
|
@@ -41,6 +67,18 @@ Creates folder in a specific folder within the site.
|
|
|
41
67
|
m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/sites/project-x/Shared Documents/Reports' --name 'Financial reports'
|
|
42
68
|
```
|
|
43
69
|
|
|
70
|
+
Create a folder with a dark blue look
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
m365 spo folder add --webUrl https://contoso.sharepoint.com --parentFolder '/ProjectFiles' --name 'Project-x' --color 5
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Create a folder with a light teal look
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
m365 spo folder add --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color lightTeal
|
|
80
|
+
```
|
|
81
|
+
|
|
44
82
|
## Response
|
|
45
83
|
|
|
46
84
|
<Tabs>
|
|
@@ -26,7 +26,7 @@ m365 spo folder roleassignment add [options]
|
|
|
26
26
|
: The upn/email of the user. Specify either `upn`, `groupName` or `principalId` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--groupName [groupName]`
|
|
29
|
-
: The
|
|
29
|
+
: The Microsoft Entra or SharePoint group name. Specify either `upn`, `groupName` or `principalId` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--roleDefinitionId [roleDefinitionId]`
|
|
32
32
|
: ID of the role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
@@ -26,7 +26,7 @@ m365 spo folder roleassignment remove [options]
|
|
|
26
26
|
: The upn/email of the user. Specify either `upn`, `groupName` or `principalId` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--groupName [groupName]`
|
|
29
|
-
: The
|
|
29
|
+
: The Microsoft Entra or SharePoint group name. Specify either `upn`, `groupName` or `principalId` but not multiple.
|
|
30
30
|
|
|
31
31
|
`-f, --force`
|
|
32
32
|
: Don't prompt for confirmation when removing the role assignment.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# spo folder set
|
|
4
|
+
|
|
5
|
+
Updates a folder
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 spo folder set [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
m365 spo folder rename [options]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```md definition-list
|
|
22
|
+
`-u, --webUrl <webUrl>`
|
|
23
|
+
: The URL of the site where the folder is located.
|
|
24
|
+
|
|
25
|
+
`--url <url>`
|
|
26
|
+
: The server- or site-relative decoded URL of the folder.
|
|
27
|
+
|
|
28
|
+
`-n, --name [name]`
|
|
29
|
+
: New name for the folder.
|
|
30
|
+
|
|
31
|
+
`--color [color]`
|
|
32
|
+
: Visual color of the folder. Valid values are a color name or a number. Check remarks for more info.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<Global />
|
|
36
|
+
|
|
37
|
+
## Remarks
|
|
38
|
+
|
|
39
|
+
When you specify a value for `color`, consider the following:
|
|
40
|
+
|
|
41
|
+
| Color | Number value | String value |
|
|
42
|
+
|--------------|--------------|--------------|
|
|
43
|
+
| Yellow | 0 | yellow |
|
|
44
|
+
| Dark red | 1 | darkRed |
|
|
45
|
+
| Dark orange | 2 | darkOrange |
|
|
46
|
+
| Dark green | 3 | darkGreen |
|
|
47
|
+
| Dark teal | 4 | darkTeal |
|
|
48
|
+
| Dark blue | 5 | darkBlue |
|
|
49
|
+
| Dark purple | 6 | darkPurple |
|
|
50
|
+
| Dark pink | 7 | darkPink |
|
|
51
|
+
| Grey | 8 | grey |
|
|
52
|
+
| Light red | 9 | lightRed |
|
|
53
|
+
| Light orange | 10 | lightOrange |
|
|
54
|
+
| Light green | 11 | lightGreen |
|
|
55
|
+
| Light teal | 12 | lightTeal |
|
|
56
|
+
| Light blue | 13 | lightBlue |
|
|
57
|
+
| Light purple | 14 | lightPurple |
|
|
58
|
+
| Light pink | 15 | lightPink |
|
|
59
|
+
|
|
60
|
+
## Examples
|
|
61
|
+
|
|
62
|
+
Set the folder name to 'My Folder 2'
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
m365 spo folder set --webUrl https://contoso.sharepoint.com/sites/project-x --url '/Shared Documents/My Folder 1' --name 'My Folder 2'
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Set the folder name to 'My folder 2'
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
m365 spo folder set --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/Shared Documents/My Folder 1' --name 'My Folder 2'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Set the folder color to dark blue
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
m365 spo folder set --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color 5
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Set the folder color to light teal
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
m365 spo folder set --webUrl https://contoso.sharepoint.com --url '/ProjectFiles/Project-x' --color lightTeal
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Response
|
|
87
|
+
|
|
88
|
+
The command won't return a response on success.
|
|
@@ -37,13 +37,13 @@ m365 spo group member add [options]
|
|
|
37
37
|
: The object Id of the Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
|
|
38
38
|
|
|
39
39
|
`--aadGroupIds [aadGroupIds]`
|
|
40
|
-
: (deprecated. Use `entraGroupIds` instead) The object
|
|
40
|
+
: (deprecated. Use `entraGroupIds` instead) The object ID of the Microsoft Entra group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
|
|
41
41
|
|
|
42
42
|
`--entraGroupNames [entraGroupNames]`
|
|
43
43
|
: The name of the Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
|
|
44
44
|
|
|
45
45
|
`--aadGroupNames [aadGroupNames]`
|
|
46
|
-
: (deprecated. Use `entraGroupNames` instead) The name of the
|
|
46
|
+
: (deprecated. Use `entraGroupNames` instead) The name of the Microsoft Entra group to add as a member. If multiple groups need to be added, they have to be comma-separated. Specify either `userIds`, `userNames`, `emails`, `aadGroupIds`, `entraGroupIds`, `aadGroupNames`, or `entraGroupNames`.
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
<Global />
|
|
@@ -35,13 +35,13 @@ m365 spo group member remove [options]
|
|
|
35
35
|
: The object Id of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
|
|
36
36
|
|
|
37
37
|
`--aadGroupId [aadGroupId]`
|
|
38
|
-
: (deprecated. Use `entraGroupId` instead) The object
|
|
38
|
+
: (deprecated. Use `entraGroupId` instead) The object ID of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
|
|
39
39
|
|
|
40
40
|
`--entraGroupName [entraGroupName]`
|
|
41
41
|
: The name of the Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
|
|
42
42
|
|
|
43
43
|
`--aadGroupName [aadGroupName]`
|
|
44
|
-
: (deprecated. Use `entraGroupName` instead) The name of the
|
|
44
|
+
: (deprecated. Use `entraGroupName` instead) The name of the Microsoft Entra group to remove as a member. Specify either `userName`, `email`, `userId`, `aadGroupId`, `entraGroupId`, `aadGroupName`, or `entraGroupName`.
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
<Global />
|
|
@@ -69,7 +69,7 @@ m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA
|
|
|
69
69
|
Remove an Entra group from a SharePoint group based on the Entra group name on a given web.
|
|
70
70
|
|
|
71
71
|
```sh
|
|
72
|
-
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --entraGroupName "
|
|
72
|
+
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --entraGroupName "Microsoft Entra ID Security Group"
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
Remove an Entra group from a SharePoint group based on the Entra group ID on a given web.
|
|
@@ -29,16 +29,16 @@ m365 spo list roleassignment add [options]
|
|
|
29
29
|
: SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--upn [upn]`
|
|
32
|
-
:
|
|
32
|
+
: The upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
33
33
|
|
|
34
34
|
`--groupName [groupName]`
|
|
35
|
-
:
|
|
35
|
+
: The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
36
36
|
|
|
37
37
|
`--roleDefinitionId [roleDefinitionId]`
|
|
38
38
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
39
39
|
|
|
40
40
|
`--roleDefinitionName [roleDefinitionName]`
|
|
41
|
-
:
|
|
41
|
+
: The name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
<Global />
|
|
@@ -29,10 +29,10 @@ m365 spo list roleassignment remove [options]
|
|
|
29
29
|
: SharePoint ID of principal it may be either user id or group id you want to remove permissions. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--upn [upn]`
|
|
32
|
-
: upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
32
|
+
: The upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
33
33
|
|
|
34
34
|
`--groupName [groupName]`
|
|
35
|
-
:
|
|
35
|
+
: The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
36
36
|
|
|
37
37
|
`-f, --force`
|
|
38
38
|
: Don't prompt for confirming removing the role assignment.
|
|
@@ -17,31 +17,31 @@ m365 spo listitem roleassignment add [options]
|
|
|
17
17
|
: URL of the site where the listitem is located
|
|
18
18
|
|
|
19
19
|
`--listId [listId]`
|
|
20
|
-
: ID of the list. Specify either listId
|
|
20
|
+
: ID of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
|
|
21
21
|
|
|
22
22
|
`--listTitle [listTitle]`
|
|
23
|
-
: Title of the list. Specify either listId
|
|
23
|
+
: Title of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--listUrl [listUrl]`
|
|
26
|
-
: Relative URL of the list. Specify either listId
|
|
26
|
+
: Relative URL of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--listItemId <listItemId>`
|
|
29
29
|
: Id of the listitem to assign the role to.
|
|
30
30
|
|
|
31
31
|
`--principalId [principalId]`
|
|
32
|
-
: The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either upn
|
|
32
|
+
: The SharePoint Id of the principal. It may be either a user id or group id to add a role assignment for. Specify either `upn`, `groupName` or `principalId`.
|
|
33
33
|
|
|
34
34
|
`--upn [upn]`
|
|
35
|
-
: upn/email of user to assign role to. Specify either upn
|
|
35
|
+
: The upn/email of user to assign role to. Specify either `upn`, `groupName` or `principalId`.
|
|
36
36
|
|
|
37
37
|
`--groupName [groupName]`
|
|
38
|
-
: The group name of
|
|
38
|
+
: The group name of Microsoft Entra or SharePoint group. Specify either `upn`, `groupName` or `principalId`.
|
|
39
39
|
|
|
40
40
|
`--roleDefinitionId [roleDefinitionId]`
|
|
41
|
-
: ID of role definition. Specify either roleDefinitionId or roleDefinitionName but not both
|
|
41
|
+
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
42
42
|
|
|
43
43
|
`--roleDefinitionName [roleDefinitionName]`
|
|
44
|
-
:
|
|
44
|
+
: The name of a role definition, like 'Contribute', 'Read', etc. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
<Global />
|
|
@@ -32,10 +32,10 @@ m365 spo listitem roleassignment remove [options]
|
|
|
32
32
|
: SharePoint ID of principal it may be either user id or group id we want to remove permissions. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
33
33
|
|
|
34
34
|
`--upn [upn]`
|
|
35
|
-
: upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
35
|
+
: The upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
36
36
|
|
|
37
37
|
`--groupName [groupName]`
|
|
38
|
-
:
|
|
38
|
+
: The group name of Microsoft Entra or SharePoint group. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
39
39
|
|
|
40
40
|
`-f, --force`
|
|
41
41
|
: Don't prompt for confirming removing the role assignment.
|
|
@@ -22,10 +22,10 @@ m365 spo site apppermission add [options]
|
|
|
22
22
|
: Permission to site (`read`, `write`, `manage` or `fullcontrol`)
|
|
23
23
|
|
|
24
24
|
`-i, --appId [appId]`
|
|
25
|
-
: Client ID of the
|
|
25
|
+
: Client ID of the Microsoft Entra app for which to grant permissions
|
|
26
26
|
|
|
27
27
|
`-n, --appDisplayName [appDisplayName]`
|
|
28
|
-
: Display name of the
|
|
28
|
+
: Display name of the Microsoft Entra app for which to grant permissions
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
@@ -22,10 +22,10 @@ m365 spo site apppermission set [options]
|
|
|
22
22
|
: ID of the permission to update. Specify `id`, `appId` or `appDisplayName`
|
|
23
23
|
|
|
24
24
|
`--appId [appId]`
|
|
25
|
-
: Client ID of the
|
|
25
|
+
: Client ID of the Microsoft Entra app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
|
|
26
26
|
|
|
27
27
|
`-n, --appDisplayName [appDisplayName]`
|
|
28
|
-
: Display name of the
|
|
28
|
+
: Display name of the Microsoft Entra app for which to update permissions. Specify `id`, `appId` or `appDisplayName`
|
|
29
29
|
|
|
30
30
|
`-p, --permission <permission>`
|
|
31
31
|
: Permission to site (`read`, `write`, `manage` or `fullcontrol`)
|
|
@@ -14,20 +14,44 @@ m365 spo site recyclebinitem restore [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --siteUrl <siteUrl>`
|
|
17
|
-
: URL of the site
|
|
17
|
+
: URL of the site.
|
|
18
18
|
|
|
19
|
-
`-i, --ids
|
|
20
|
-
: List of ids of items which will be restored from the site recycle bin
|
|
19
|
+
`-i, --ids [ids]`
|
|
20
|
+
: List of ids of items which will be restored from the site recycle bin. Specify `ids` or `allPrimary` and/or `allSecondary`.
|
|
21
|
+
|
|
22
|
+
`--allPrimary`
|
|
23
|
+
: Restore all items from the first-stage recycle bin. Specify `ids` or `allPrimary` and/or `allSecondary`.
|
|
24
|
+
|
|
25
|
+
`--allSecondary`
|
|
26
|
+
: Restore all items from the second-stage recycle bin. Specify `ids` or `allPrimary` and/or `allSecondary`.
|
|
21
27
|
```
|
|
22
28
|
|
|
23
29
|
<Global />
|
|
24
30
|
|
|
25
31
|
## Examples
|
|
26
32
|
|
|
27
|
-
Restore specific items by given ids from recycle bin
|
|
33
|
+
Restore specific items by given ids from recycle bin of given site.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/project --ids "ae6f97a7-280e-48d6-b481-0ea986c323da,aadbf916-1f71-42ee-abf2-8ee4802ae291"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Restore all items from the first-stage recycle bin of a given site.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/sites/project --allPrimary
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Restore all items from the second-stage recycle bin of a given site.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com --allSecondary
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Restore all items from both the first-stage and second-stage recycle bins of a given site.
|
|
28
52
|
|
|
29
53
|
```sh
|
|
30
|
-
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com
|
|
54
|
+
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com --allPrimary --allSecondary
|
|
31
55
|
```
|
|
32
56
|
|
|
33
57
|
## Response
|