@pnp/cli-microsoft365 9.0.0-beta.d6b190a → 9.0.0-beta.e16d09c
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +1 -1
- package/dist/m365/connection/commands/connection-remove.js +6 -2
- package/dist/m365/connection/commands/connection-set.js +4 -1
- package/dist/m365/connection/commands/connection-use.js +25 -4
- package/dist/m365/entra/commands/multitenant/multitenant-add.js +65 -0
- package/dist/m365/entra/commands/multitenant/multitenant-remove.js +118 -0
- package/dist/m365/entra/commands/multitenant/multitenant-set.js +72 -0
- package/dist/m365/entra/commands.js +3 -0
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +46 -21
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +48 -46
- package/dist/utils/spo.js +37 -6
- package/docs/docs/cmd/connection/connection-use.mdx +8 -2
- package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +107 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +58 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +53 -0
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +24 -53
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +4 -4
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +4 -4
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +15 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +15 -3
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +4 -4
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +9 -9
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +7 -7
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ m365 spo file retentionlabel ensure [options]
|
|
|
33
33
|
|
|
34
34
|
## Remarks
|
|
35
35
|
|
|
36
|
-
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a
|
|
36
|
+
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a list item.
|
|
37
37
|
|
|
38
38
|
The `--assetId` option has to do with event-based retention. Event-based retention is about starting a retention period when a specific event occurs, instead of the moment a document was labeled or created.
|
|
39
39
|
|
|
@@ -19,7 +19,7 @@ m365 spo file roleassignment add [options]
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
23
|
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`--principalId [principalId]`
|
|
@@ -29,7 +29,7 @@ m365 spo file roleassignment add [options]
|
|
|
29
29
|
: The upn/email of user to assign role to. Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--groupName [groupName]`
|
|
32
|
-
: The group name of
|
|
32
|
+
: The group name of the SharePoint group Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
33
33
|
|
|
34
34
|
`--roleDefinitionId [roleDefinitionId]`
|
|
35
35
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
@@ -29,7 +29,7 @@ m365 spo file roleassignment remove [options]
|
|
|
29
29
|
: The upn/email of the user. Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
30
30
|
|
|
31
31
|
`--groupName [groupName]`
|
|
32
|
-
: The group name of
|
|
32
|
+
: The group name of the SharePoint group Specify either `upn`, `groupName`, or `principalId` but not multiple.
|
|
33
33
|
|
|
34
34
|
`-f, --force`
|
|
35
35
|
: Don't prompt for confirmation.
|
|
@@ -19,7 +19,7 @@ m365 spo file roleinheritance break [options]
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
23
|
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-c, --clearExistingPermissions`
|
|
@@ -19,7 +19,7 @@ m365 spo file roleinheritance reset [options]
|
|
|
19
19
|
`--fileUrl [fileUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
23
|
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both.
|
|
24
24
|
|
|
25
25
|
`-f, --force`
|
|
@@ -19,7 +19,7 @@ m365 spo folder retentionlabel ensure [options]
|
|
|
19
19
|
`--folderUrl [folderUrl]`
|
|
20
20
|
: The server- or site-relative decoded URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --folderId [folderId]`
|
|
23
23
|
: The UniqueId (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
24
24
|
|
|
25
25
|
`--name <name>`
|
|
@@ -30,7 +30,7 @@ m365 spo folder retentionlabel ensure [options]
|
|
|
30
30
|
|
|
31
31
|
## Remarks
|
|
32
32
|
|
|
33
|
-
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a
|
|
33
|
+
You can also use [spo listitem retentionlabel remove](./../../../cmd/spo/listitem/listitem-retentionlabel-remove.mdx) for removing the retention label from a list item.
|
|
34
34
|
|
|
35
35
|
## Examples
|
|
36
36
|
|
|
@@ -26,13 +26,19 @@ m365 spo list roleassignment add [options]
|
|
|
26
26
|
: Relative URL of the list. Specify either `listId`, `listTitle`, or `listUrl` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--principalId [principalId]`
|
|
29
|
-
: SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify either `principalId`, `upn`,
|
|
29
|
+
: SharePoint ID of principal it may be either user id or group id we want to add permissions to. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
30
30
|
|
|
31
31
|
`--upn [upn]`
|
|
32
|
-
: The upn/email of user to assign role to. Specify either `principalId`, `upn`,
|
|
32
|
+
: The upn/email of user to assign role to. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
33
|
+
|
|
34
|
+
`--entraGroupId [entraGroupId]`
|
|
35
|
+
: ID of the Microsoft Entra group to assign permissions to. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
36
|
+
|
|
37
|
+
`--entraGroupName [entraGroupName]`
|
|
38
|
+
: Display name of the Microsoft Entra group to assign permissions to. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
33
39
|
|
|
34
40
|
`--groupName [groupName]`
|
|
35
|
-
: The group name of
|
|
41
|
+
: The group name of the SharePoint group. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
36
42
|
|
|
37
43
|
`--roleDefinitionId [roleDefinitionId]`
|
|
38
44
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
@@ -81,6 +87,12 @@ Adds role assignment to list by title located in a specific site for given princ
|
|
|
81
87
|
m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --principalId 11 --roleDefinitionName "Full Control"
|
|
82
88
|
```
|
|
83
89
|
|
|
90
|
+
Adds role assignment to list for a Microsoft Entra group specified by display name.
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
m365 spo list roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --entraGroupName "Marketing" --roleDefinitionName "Full Control"
|
|
94
|
+
```
|
|
95
|
+
|
|
84
96
|
## Response
|
|
85
97
|
|
|
86
98
|
The command won't return a response on success.
|
|
@@ -26,13 +26,19 @@ m365 spo list roleassignment remove [options]
|
|
|
26
26
|
: Relative URL of the list. Specify either `listId`, `listTitle`, or `listUrl` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--principalId [principalId]`
|
|
29
|
-
: SharePoint ID of principal it may be either user id or group id you want to remove permissions. Specify either `principalId`, `upn`,
|
|
29
|
+
: SharePoint ID of principal it may be either user id or group id you want to remove permissions. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
30
30
|
|
|
31
31
|
`--upn [upn]`
|
|
32
|
-
: The upn/email of user. Specify either `principalId`, `upn`,
|
|
32
|
+
: The upn/email of user. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
33
33
|
|
|
34
34
|
`--groupName [groupName]`
|
|
35
|
-
: The group name of
|
|
35
|
+
: The group name of the SharePoint group. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
36
|
+
|
|
37
|
+
`--entraGroupId [entraGroupId]`
|
|
38
|
+
: ID of the Microsoft Entra group. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
39
|
+
|
|
40
|
+
`--entraGroupName [entraGroupName]`
|
|
41
|
+
: Display name of the Microsoft Entra group. Specify either `principalId`, `upn`, `groupName`, `entraGroupId`, or `entraGroupName`.
|
|
36
42
|
|
|
37
43
|
`-f, --force`
|
|
38
44
|
: Don't prompt for confirming removing the role assignment.
|
|
@@ -60,6 +66,12 @@ Remove roleassignment from list by url based on principal Id.
|
|
|
60
66
|
m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --principalId 2
|
|
61
67
|
```
|
|
62
68
|
|
|
69
|
+
Remove roleassignment from Microsoft Entra group specified by display name.
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
m365 spo list roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --entraGroupName "Sales Team"
|
|
73
|
+
```
|
|
74
|
+
|
|
63
75
|
## Response
|
|
64
76
|
|
|
65
77
|
The command won't return a response on success.
|
|
@@ -14,19 +14,19 @@ m365 spo listitem retentionlabel ensure [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the retentionlabel from a
|
|
17
|
+
: URL of the site where the retentionlabel from a list item to apply is located.
|
|
18
18
|
|
|
19
19
|
`--listItemId <listItemId>`
|
|
20
20
|
: The ID of the list item for which the retention label should be applied.
|
|
21
21
|
|
|
22
22
|
`--listId [listId]`
|
|
23
|
-
: ID of the list where the retention label should be applied. Specify either `listTitle`, `listId` or `listUrl
|
|
23
|
+
: ID of the list where the retention label should be applied. Specify either `listTitle`, `listId` or `listUrl`.
|
|
24
24
|
|
|
25
25
|
`--listTitle [listTitle]`
|
|
26
|
-
: Title of the list where the retention label should be applied. Specify either `listTitle`, `listId` or `listUrl
|
|
26
|
+
: Title of the list where the retention label should be applied. Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
27
|
|
|
28
28
|
`--listUrl [listUrl]`
|
|
29
|
-
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl
|
|
29
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
30
30
|
|
|
31
31
|
`-n, --name [name]`
|
|
32
32
|
: The name of the retention label. Specify either `name` or `id`.
|
|
@@ -14,7 +14,7 @@ m365 spo listitem retentionlabel remove [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the retentionlabel from a
|
|
17
|
+
: URL of the site where the retentionlabel from a list item to remove is located
|
|
18
18
|
|
|
19
19
|
`-i, --listItemId <listItemId>`
|
|
20
20
|
: The ID of the list item for which the retention label should be removed.
|
|
@@ -14,7 +14,7 @@ m365 spo listitem roleassignment add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the
|
|
17
|
+
: URL of the site where the list item is located
|
|
18
18
|
|
|
19
19
|
`--listId [listId]`
|
|
20
20
|
: ID of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
|
|
@@ -26,7 +26,7 @@ m365 spo listitem roleassignment add [options]
|
|
|
26
26
|
: Relative URL of the list. Specify either `listId`, `listTitle` or `listUrl` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--listItemId <listItemId>`
|
|
29
|
-
: Id of the
|
|
29
|
+
: Id of the list item to assign the role to.
|
|
30
30
|
|
|
31
31
|
`--principalId [principalId]`
|
|
32
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`.
|
|
@@ -35,7 +35,7 @@ m365 spo listitem roleassignment add [options]
|
|
|
35
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 the SharePoint group Specify either `upn`, `groupName` or `principalId`.
|
|
39
39
|
|
|
40
40
|
`--roleDefinitionId [roleDefinitionId]`
|
|
41
41
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
@@ -48,37 +48,37 @@ m365 spo listitem roleassignment add [options]
|
|
|
48
48
|
|
|
49
49
|
## Examples
|
|
50
50
|
|
|
51
|
-
Add role assignment to specified
|
|
51
|
+
Add role assignment to specified list item in specified list located in specified site for specified principal id and specified role definition id.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
54
|
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Add role assignment to specified
|
|
57
|
+
Add role assignment to specified list item in specified list located in specified site for specified principal id and specified role definition id.
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
60
|
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "0CD891EF-AFCE-4E55-B836-FCE03286CCCF" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
Add role assignment to specified
|
|
63
|
+
Add role assignment to specified list item in specified list located in specified site for specified principal id and specified role definition id.
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
66
|
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listUrl "sites/documents" --listItemId 1 --principalId 11 --roleDefinitionId 1073741829
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Add role assignment to specified
|
|
69
|
+
Add role assignment to specified list item in specified list located in specified site for specified upn and specified role definition id.
|
|
70
70
|
|
|
71
71
|
```sh
|
|
72
72
|
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --upn "someaccount@tenant.onmicrosoft.com" --roleDefinitionId 1073741829
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
Add role assignment to specified
|
|
75
|
+
Add role assignment to specified list item in specified list located in specified site for specified group and specified role definition id.
|
|
76
76
|
|
|
77
77
|
```sh
|
|
78
78
|
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --groupName "someGroup" --roleDefinitionId 1073741829
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
Add role assignment to specified
|
|
81
|
+
Add role assignment to specified list item in specified list located in specified site for specified principal id and specified role definition name.
|
|
82
82
|
|
|
83
83
|
```sh
|
|
84
84
|
m365 spo listitem roleassignment add --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --listItemId 1 --principalId 11 --roleDefinitionName "Full Control"
|
|
@@ -14,7 +14,7 @@ m365 spo listitem roleassignment remove [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: URL of the site where the
|
|
17
|
+
: URL of the site where the list item is located.
|
|
18
18
|
|
|
19
19
|
`-i, --listId [listId]`
|
|
20
20
|
: ID of the list. Specify either `listId`, `listTitle`, or `listUrl` but not multiple.
|
|
@@ -26,7 +26,7 @@ m365 spo listitem roleassignment remove [options]
|
|
|
26
26
|
: Relative URL of the list. Specify either `listId`, `listTitle`, or `listUrl` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--listItemId <listItemId>`
|
|
29
|
-
: Id of the
|
|
29
|
+
: Id of the list item to remove the role from.
|
|
30
30
|
|
|
31
31
|
`--principalId [principalId]`
|
|
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.
|
|
@@ -35,7 +35,7 @@ m365 spo listitem roleassignment remove [options]
|
|
|
35
35
|
: The upn/email of user. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
36
36
|
|
|
37
37
|
`--groupName [groupName]`
|
|
38
|
-
: The group name of
|
|
38
|
+
: The group name of the 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.
|
|
@@ -45,26 +45,26 @@ m365 spo listitem roleassignment remove [options]
|
|
|
45
45
|
|
|
46
46
|
## Examples
|
|
47
47
|
|
|
48
|
-
Remove roleassignment from
|
|
48
|
+
Remove roleassignment from list item getting list by title based on group name
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listTitle "someList" --listItemId 1 --groupName "saleGroup"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Remove roleassignment from
|
|
54
|
+
Remove roleassignment from list item getting list by title based on principal Id
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listTitle "Events" --listItemId 1 --principalId 2
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
Remove roleassignment from
|
|
60
|
+
Remove roleassignment from list item getting list by url based on principal Id
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
63
|
m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --listItemId 1 --principalId 2
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
Remove roleassignment from
|
|
67
|
+
Remove roleassignment from list item getting list by url based on principal Id without prompting for confirmation
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
70
|
m365 spo listitem roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --listUrl '/sites/contoso-sales/lists/Events' --listItemId 1 --principalId 2 --force
|
|
@@ -19,7 +19,7 @@ m365 spo site recyclebinitem list [options]
|
|
|
19
19
|
: URL of the site for which to retrieve the recycle bin items
|
|
20
20
|
|
|
21
21
|
`--type [type]`
|
|
22
|
-
: Type of items which should be retrieved
|
|
22
|
+
: Type of items which should be retrieved. Valid values: `listItems`, `folders`, `files`.
|
|
23
23
|
|
|
24
24
|
`--secondary`
|
|
25
25
|
: Use this switch to retrieve items from secondary recycle bin
|
|
@@ -23,7 +23,7 @@ m365 spo web roleassignment add [options]
|
|
|
23
23
|
: The upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--groupName [groupName]`
|
|
26
|
-
: The group name of
|
|
26
|
+
: The group name of the SharePoint group Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--roleDefinitionId [roleDefinitionId]`
|
|
29
29
|
: ID of role definition. Specify either `roleDefinitionId` or `roleDefinitionName` but not both.
|
|
@@ -23,7 +23,7 @@ m365 spo web roleassignment remove [options]
|
|
|
23
23
|
: The upn/email of user to assign role to. Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--groupName [groupName]`
|
|
26
|
-
: The group name of
|
|
26
|
+
: The group name of the SharePoint group Specify either `principalId`, `upn`, or `groupName` but not multiple.
|
|
27
27
|
|
|
28
28
|
`-f, --force`
|
|
29
29
|
: Don't prompt for confirming removing the roleassignment.
|
package/package.json
CHANGED