@pnp/cli-microsoft365 5.9.0-beta.3de06bc → 5.9.0-beta.42a0949
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.js +17 -2
- package/README.md +5 -0
- package/dist/m365/aad/commands/app/app-add.js +37 -13
- package/dist/m365/outlook/commands/mail/mail-send.js +55 -31
- package/dist/m365/planner/commands/bucket/bucket-get.js +1 -1
- package/dist/m365/pp/commands/Environment.js +3 -0
- package/dist/m365/pp/commands/card/card-list.js +68 -0
- package/dist/m365/pp/commands/dataverse/dataverse-table-list.js +69 -0
- package/dist/m365/pp/commands/environment/environment-get.js +75 -0
- package/dist/m365/pp/commands/solution/Solution.js +3 -0
- package/dist/m365/pp/commands/solution/solution-list.js +87 -0
- package/dist/m365/pp/commands.js +4 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +0 -2
- package/dist/m365/spfx/commands/spfx-doctor.js +37 -7
- package/dist/m365/spo/commands/eventreceiver/EventReceiver.js +3 -0
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +182 -0
- package/dist/m365/spo/commands/file/file-copy.js +25 -39
- package/dist/m365/spo/commands/file/file-move.js +24 -37
- package/dist/m365/spo/commands/file/file-rename.js +19 -16
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +231 -0
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +129 -0
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +168 -0
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +94 -0
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/AssociatedGroupPropertiesCollection.js +3 -0
- package/dist/m365/spo/commands/group/group-list.js +49 -10
- package/dist/m365/spo/commands/list/list-contenttype-add.js +21 -18
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +59 -47
- package/dist/m365/spo/commands/list/list-contenttype-list.js +16 -8
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +16 -8
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +10 -10
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +8 -8
- package/dist/m365/spo/commands/list/list-roleinheritance-break.js +14 -6
- package/dist/m365/spo/commands/list/list-roleinheritance-reset.js +15 -7
- package/dist/m365/spo/commands/list/list-webhook-add.js +19 -11
- package/dist/m365/spo/commands/list/list-webhook-get.js +17 -9
- package/dist/m365/spo/commands/list/list-webhook-list.js +23 -24
- package/dist/m365/spo/commands/list/list-webhook-remove.js +19 -11
- package/dist/m365/spo/commands/list/list-webhook-set.js +18 -10
- package/dist/m365/spo/commands/listitem/listitem-roleassignment-remove.js +8 -8
- package/dist/m365/spo/commands/web/web-roleassignment-add.js +10 -10
- package/dist/m365/spo/commands/web/web-roleassignment-remove.js +8 -8
- package/dist/m365/spo/commands.js +5 -0
- package/dist/m365/teams/commands/channel/channel-add.js +9 -9
- package/dist/m365/todo/commands/task/task-set.js +53 -1
- package/dist/utils/powerPlatform.js +42 -0
- package/docs/docs/_clisettings.md +19 -0
- package/docs/docs/cmd/outlook/mail/mail-send.md +13 -0
- package/docs/docs/cmd/pp/card/card-list.md +33 -0
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.md +33 -0
- package/docs/docs/cmd/pp/environment/environment-get.md +38 -0
- package/docs/docs/cmd/pp/environment/environment-list.md +1 -1
- package/docs/docs/cmd/pp/solution/solution-list.md +33 -0
- package/docs/docs/cmd/spfx/spfx-doctor.md +10 -1
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.md +2 -2
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +69 -0
- package/docs/docs/cmd/spo/file/file-roleassignment-add.md +57 -0
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.md +54 -0
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.md +57 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.md +39 -0
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.md +2 -2
- package/docs/docs/cmd/spo/group/group-list.md +10 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +16 -7
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +16 -7
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +15 -6
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +17 -8
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +11 -8
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +14 -5
- package/docs/docs/cmd/spo/list/list-webhook-add.md +15 -16
- package/docs/docs/cmd/spo/list/list-webhook-get.md +15 -6
- package/docs/docs/cmd/spo/list/list-webhook-list.md +16 -7
- package/docs/docs/cmd/spo/list/list-webhook-remove.md +12 -10
- package/docs/docs/cmd/spo/list/list-webhook-set.md +13 -11
- package/docs/docs/cmd/teams/channel/channel-add.md +4 -4
- package/docs/docs/cmd/todo/task/task-set.md +29 -2
- package/package.json +5 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +0 -60
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# spo file roleinheritance break
|
|
2
|
+
|
|
3
|
+
Breaks inheritance of a file. Keeping existing permissions is the default behavior.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file roleinheritance break [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`--fileUrl [fileUrl]`
|
|
17
|
+
: The server-relative URL of the file. Specify either `fileUrl` or `fileId` but not both
|
|
18
|
+
|
|
19
|
+
`i, --fileId [fileId]`
|
|
20
|
+
: The UniqueId (GUID) of the file. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`-c, --clearExistingPermissions`
|
|
23
|
+
: Clear all existing permissions from the file
|
|
24
|
+
|
|
25
|
+
`--confirm`
|
|
26
|
+
: Don't prompt for confirmation
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Break the inheritance of a file with a specific id (UniqueId).
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Break the inheritance of a file with a specific id (UniqueId) and clear all existing permissions.
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileId "b2307a39-e878-458b-bc90-03bc578531d6" --clearExistingPermissions
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Break the inheritance of a file with a specific server-relative URL.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Break the inheritance of a file with a specific server-relative URL and clear all existing permissions.
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo file roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --fileUrl "/sites/project-x/documents/Test1.docx" --clearExistingPermissions
|
|
54
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# spo folder roleassignment remove
|
|
2
|
+
|
|
3
|
+
Removes a role assignment from the specified folder.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo folder roleassignment remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: The URL of the site where the folder is located.
|
|
15
|
+
|
|
16
|
+
`-f, --folderUrl <folderUrl>`
|
|
17
|
+
: The server- or site-relative URL of the folder.
|
|
18
|
+
|
|
19
|
+
`--principalId [principalId]`
|
|
20
|
+
: The SharePoint principal id. It may be either an user id or group id for which the role assignment will be removed. Specify either upn, groupName or principalId but not multiple.
|
|
21
|
+
|
|
22
|
+
`--upn [upn]`
|
|
23
|
+
: The upn/email of the user. Specify either upn, groupName or principalId but not multiple.
|
|
24
|
+
|
|
25
|
+
`--groupName [groupName]`
|
|
26
|
+
: The Azure AD or SharePoint group name. Specify either upn, groupName or principalId but not multiple.
|
|
27
|
+
|
|
28
|
+
`--confirm`
|
|
29
|
+
: Don't prompt for confirmation when removing the role assignment.
|
|
30
|
+
|
|
31
|
+
--8<-- "docs/cmd/_global.md"
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Remove roleassignment from folder based on group name
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --groupName "saleGroup"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Remove the role assignment from the specified folder based on the principal id.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --principalId 2
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Remove the role assignment from the specified folder based on the principal id without prompting for removal confirmation.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --principalId 2 --confirm
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Remove the role assignment from the specified folder based on the upn.
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
m365 spo folder roleassignment remove --webUrl "https://contoso.sharepoint.com/sites/contoso-sales" --folderUrl "/Shared Documents/FolderPermission" --upn "test@contoso.onmicrosoft.com"
|
|
57
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo folder roleinheritance break
|
|
2
|
+
|
|
3
|
+
Breaks the role inheritance of a folder.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo folder roleinheritance break [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the folder is located.
|
|
15
|
+
|
|
16
|
+
`-f, --folderUrl <folderUrl>`
|
|
17
|
+
: The site-relative URL or server-relative URL of the folder.
|
|
18
|
+
|
|
19
|
+
`-c, --clearExistingPermissions`
|
|
20
|
+
: Clear all existing permissions from the folder.
|
|
21
|
+
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation to breaking role inheritance of the folder.
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Break the inheritance of a folder with a specified site-relative URL.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo folder roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Break the inheritance of a folder with a specified server-relative URL. It will clear the existing permissions of the folder. It will **not** prompt for confirmation before breaking the inheritance.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo folder roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "/sites/project-x/Shared Documents/TestFolder" --clearExistingPermissions --confirm
|
|
39
|
+
```
|
|
@@ -29,8 +29,8 @@ Reset inheritance of folder with site-relative url _Shared Documents/TestFolder_
|
|
|
29
29
|
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder"
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Reset inheritance of folder with
|
|
32
|
+
Reset inheritance of folder with server-relative url _/sites/project-x/Shared Documents/TestFolder_ located in site _https://contoso.sharepoint.com/sites/project-x_. It will **not** prompt for confirmation before resetting.
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "Shared Documents/TestFolder" --confirm
|
|
35
|
+
m365 spo folder roleinheritance reset --webUrl "https://contoso.sharepoint.com/sites/project-x" --folderUrl "/sites/project-x/Shared Documents/TestFolder" --confirm
|
|
36
36
|
```
|
|
@@ -13,12 +13,21 @@ m365 spo group list [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: Url of the web to list the group within
|
|
15
15
|
|
|
16
|
+
`--associatedGroupsOnly`
|
|
17
|
+
: Get only the associated visitor, member and owner groups of the site.
|
|
18
|
+
|
|
16
19
|
--8<-- "docs/cmd/_global.md"
|
|
17
20
|
|
|
18
21
|
## Examples
|
|
19
22
|
|
|
20
|
-
Lists all the groups within specific web
|
|
23
|
+
Lists all the groups within a specific web
|
|
21
24
|
|
|
22
25
|
```sh
|
|
23
26
|
m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso"
|
|
24
27
|
```
|
|
28
|
+
|
|
29
|
+
Lists the associated groups within a specific web
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo group list --webUrl "https://contoso.sharepoint.com/sites/contoso" --associatedGroupsOnly
|
|
33
|
+
```
|
|
@@ -11,13 +11,13 @@ m365 spo hubsite get [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
|
-
: ID of the
|
|
14
|
+
: ID of the hub site. Specify either `id`, `title` or `url` but not multiple.
|
|
15
15
|
|
|
16
16
|
`-t, --title [title]`
|
|
17
|
-
: Title of the
|
|
17
|
+
: Title of the hub site. Specify either `id`, `title` or `url` but not multiple.
|
|
18
18
|
|
|
19
19
|
`-u, --url [url]`
|
|
20
|
-
: URL of the
|
|
20
|
+
: URL of the hub site. Specify either `id`, `title` or `url` but not multiple.
|
|
21
21
|
|
|
22
22
|
`--includeAssociatedSites`
|
|
23
23
|
: Include the associated sites in the result (only in JSON output)
|
|
@@ -11,29 +11,38 @@ m365 spo list contenttype add [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list is located
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
|
-
`-
|
|
17
|
-
: ID of the list
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
`-c, --contentTypeId <contentTypeId>`
|
|
23
|
-
: ID of the content type
|
|
26
|
+
: ID of the content type
|
|
24
27
|
|
|
25
28
|
--8<-- "docs/cmd/_global.md"
|
|
26
29
|
|
|
27
30
|
## Examples
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
Adds a specific existing content type to a list retrieved by id in a specific site.
|
|
30
33
|
|
|
31
34
|
```sh
|
|
32
35
|
m365 spo list contenttype add --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x0120
|
|
33
36
|
```
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
Adds a specific existing content type to a list retrieved by title in a specific site.
|
|
36
39
|
|
|
37
40
|
```sh
|
|
38
41
|
m365 spo list contenttype add --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x0120
|
|
39
42
|
```
|
|
43
|
+
|
|
44
|
+
Adds a specific existing content type to a list retrieved by server relative URL in a specific site.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo list contenttype add --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x0120
|
|
48
|
+
```
|
|
@@ -11,29 +11,38 @@ m365 spo list contenttype default set [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list is located
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
|
-
`-
|
|
17
|
-
: ID of the list
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
`-c, --contentTypeId <contentTypeId>`
|
|
23
|
-
: ID of the content type
|
|
26
|
+
: ID of the content type
|
|
24
27
|
|
|
25
28
|
--8<-- "docs/cmd/_global.md"
|
|
26
29
|
|
|
27
30
|
## Examples
|
|
28
31
|
|
|
29
|
-
Set content type with
|
|
32
|
+
Set a content type with a specific id as default a list retrieved by id located in a specific site.
|
|
30
33
|
|
|
31
34
|
```sh
|
|
32
35
|
m365 spo list contenttype default set --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x0120
|
|
33
36
|
```
|
|
34
37
|
|
|
35
|
-
Set content type with
|
|
38
|
+
Set a content type with a specific id as default a list retrieved by title located in a specific site.
|
|
36
39
|
|
|
37
40
|
```sh
|
|
38
41
|
m365 spo list contenttype default set --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x0120
|
|
39
42
|
```
|
|
43
|
+
|
|
44
|
+
Set a content type with a specific id as default a list retrieved by server relative URL located in a specific site.
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo list contenttype default set --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x0120
|
|
48
|
+
```
|
|
@@ -11,26 +11,35 @@ m365 spo list contenttype list [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list is located
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
|
-
`-
|
|
17
|
-
: ID of the list
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
--8<-- "docs/cmd/_global.md"
|
|
23
26
|
|
|
24
27
|
## Examples
|
|
25
28
|
|
|
26
|
-
List all content types configured on
|
|
29
|
+
List all content types configured on a specific list retrieved by id in a specific site.
|
|
27
30
|
|
|
28
31
|
```sh
|
|
29
32
|
m365 spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
|
|
30
33
|
```
|
|
31
34
|
|
|
32
|
-
List all content types configured on
|
|
35
|
+
List all content types configured on a specific list retrieved by title in a specific site.
|
|
33
36
|
|
|
34
37
|
```sh
|
|
35
38
|
m365 spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents
|
|
36
39
|
```
|
|
40
|
+
|
|
41
|
+
List all content types configured on a specific list retrieved by server relative URL in a specific site.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo list contenttype list --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents'
|
|
45
|
+
```
|
|
@@ -11,32 +11,41 @@ m365 spo list contenttype remove [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list is located
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
|
-
`-
|
|
17
|
-
: ID of the list
|
|
16
|
+
`-i, --listId [listId]`
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
`-c, --contentTypeId <contentTypeId>`
|
|
23
|
-
: ID of the content type
|
|
26
|
+
: ID of the content type
|
|
24
27
|
|
|
25
28
|
`--confirm`
|
|
26
|
-
: Don't prompt for
|
|
29
|
+
: Don't prompt for confirmation
|
|
27
30
|
|
|
28
31
|
--8<-- "docs/cmd/_global.md"
|
|
29
32
|
|
|
30
33
|
## Examples
|
|
31
34
|
|
|
32
|
-
Remove content type with
|
|
35
|
+
Remove content type with a specific id from the list retrieved by id in a specific site.
|
|
33
36
|
|
|
34
37
|
```sh
|
|
35
38
|
m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A
|
|
36
39
|
```
|
|
37
40
|
|
|
38
|
-
Remove content type with
|
|
41
|
+
Remove content type with a specific id from the list retrieved by title in a specific site.
|
|
39
42
|
|
|
40
43
|
```sh
|
|
41
44
|
m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A
|
|
42
45
|
```
|
|
46
|
+
|
|
47
|
+
Remove content type with a specific id from the list retrieved by server relative URL in a specific site. This will not prompt for confirmation.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo list contenttype remove --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl 'sites/project-x/Documents' --contentTypeId 0x010109010053EE7AEB1FC54A41B4D9F66ADBDC312A --confirm
|
|
51
|
+
```
|
|
@@ -11,13 +11,16 @@ m365 spo list roleinheritance break [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
16
|
`-i, --listId [listId]`
|
|
17
|
-
: ID of the list
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
`-c, --clearExistingPermissions`
|
|
23
26
|
: Flag if used clears all roles from the list
|
|
@@ -30,26 +33,26 @@ By default, when breaking permissions inheritance, the list will retain existing
|
|
|
30
33
|
|
|
31
34
|
## Examples
|
|
32
35
|
|
|
33
|
-
Break inheritance of list
|
|
36
|
+
Break inheritance of list by title in a specific site
|
|
34
37
|
|
|
35
38
|
```sh
|
|
36
39
|
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList"
|
|
37
40
|
```
|
|
38
41
|
|
|
39
|
-
Break inheritance of list
|
|
42
|
+
Break inheritance of list by id in a specific site
|
|
40
43
|
|
|
41
44
|
```sh
|
|
42
45
|
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listId "202b8199-b9de-43fd-9737-7f213f51c991"
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
Break inheritance of list
|
|
48
|
+
Break inheritance of list by title located in a specific site and clearing the existing permissions
|
|
46
49
|
|
|
47
50
|
```sh
|
|
48
51
|
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "someList" --clearExistingPermissions
|
|
49
52
|
```
|
|
50
53
|
|
|
51
|
-
Break inheritance of list
|
|
54
|
+
Break inheritance of list by url in a specific site and clearing the existing permissions
|
|
52
55
|
|
|
53
56
|
```sh
|
|
54
|
-
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --
|
|
57
|
+
m365 spo list roleinheritance break --webUrl "https://contoso.sharepoint.com/sites/project-x" --listUrl '/sites/project-x/lists/events' --clearExistingPermissions
|
|
55
58
|
```
|
|
@@ -11,26 +11,35 @@ m365 spo list roleinheritance reset [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list is located
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
16
|
`-i, --listId [listId]`
|
|
17
|
-
: ID of the list. Specify either
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list. Specify either
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
--8<-- "docs/cmd/_global.md"
|
|
23
26
|
|
|
24
27
|
## Examples
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
Restores role inheritance of a specific list by id in a specific site
|
|
27
30
|
|
|
28
31
|
```sh
|
|
29
32
|
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf
|
|
30
33
|
```
|
|
31
34
|
|
|
32
|
-
|
|
35
|
+
Restores role inheritance of a specific list by title in a specific site
|
|
33
36
|
|
|
34
37
|
```sh
|
|
35
38
|
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle test
|
|
36
39
|
```
|
|
40
|
+
|
|
41
|
+
Restores role inheritance of a specific list by url in a specific site
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo list roleinheritance reset --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/lists/events'
|
|
45
|
+
```
|
|
@@ -11,46 +11,45 @@ m365 spo list webhook add [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
16
|
`-l, --listId [listId]`
|
|
17
|
-
: ID of the list
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
`-n, --notificationUrl <notificationUrl>`
|
|
23
|
-
: The notification
|
|
26
|
+
: The notification URL.
|
|
24
27
|
|
|
25
28
|
`-e, --expirationDateTime [expirationDateTime]`
|
|
26
|
-
: The expiration date. Will be set to max (6 months from today) if not provided
|
|
29
|
+
: The expiration date. Will be set to max (6 months from today) if not provided.
|
|
27
30
|
|
|
28
31
|
`-c, --clientState [clientState]`
|
|
29
|
-
: A client state information that will be passed through notifications
|
|
32
|
+
: A client state information that will be passed through notifications.
|
|
30
33
|
|
|
31
34
|
--8<-- "docs/cmd/_global.md"
|
|
32
35
|
|
|
33
36
|
## Examples
|
|
34
37
|
|
|
35
|
-
Add a web hook to the list
|
|
36
|
-
_https://contoso-funcions.azurewebsites.net/webhook_ and the default expiration
|
|
37
|
-
date
|
|
38
|
+
Add a web hook to the list retrieved by Title located in a specific site with a specific notification url and the default expiration date
|
|
38
39
|
|
|
39
40
|
```sh
|
|
40
41
|
m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --notificationUrl https://contoso-funcions.azurewebsites.net/webhook
|
|
41
42
|
```
|
|
42
43
|
|
|
43
|
-
Add a web hook to the list
|
|
44
|
-
_https://contoso-funcions.azurewebsites.net/webhook_ and an expiration date of _January 21st, 2019_
|
|
44
|
+
Add a web hook to the list retrieved by URL located in a specific site with a specific notification url and a specific expiration date
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --
|
|
47
|
+
m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --notificationUrl https://contoso-funcions.azurewebsites.net/webhook --expirationDateTime 2019-01-21
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Add a web hook to the list
|
|
51
|
-
|
|
52
|
-
a client state
|
|
50
|
+
Add a web hook to the list retrieved by ID located in a specific site with a specific notification url, a specific expiration date and a client state
|
|
51
|
+
|
|
53
52
|
|
|
54
53
|
```sh
|
|
55
|
-
m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --
|
|
54
|
+
m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --listId '3d6aefa0-f438-4789-b0cd-6e865f5d65b5' --notificationUrl https://contoso-funcions.azurewebsites.net/webhook --expirationDateTime '2019-03-02T18:15' --clientState "Hello State!"
|
|
56
55
|
```
|
|
@@ -11,16 +11,19 @@ m365 spo list webhook get [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
: URL of the site where the list
|
|
14
|
+
: URL of the site where the list is located.
|
|
15
15
|
|
|
16
16
|
`-l, --listId [listId]`
|
|
17
|
-
: ID of the list
|
|
17
|
+
: ID of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
18
18
|
|
|
19
19
|
`-t, --listTitle [listTitle]`
|
|
20
|
-
: Title of the list
|
|
20
|
+
: Title of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
|
+
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
|
+
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`.
|
|
21
24
|
|
|
22
25
|
`-i, --id [id]`
|
|
23
|
-
: ID of the webhook
|
|
26
|
+
: ID of the webhook.
|
|
24
27
|
|
|
25
28
|
--8<-- "docs/cmd/_global.md"
|
|
26
29
|
|
|
@@ -30,14 +33,20 @@ If the specified `id` doesn't refer to an existing webhook, you will get a `404
|
|
|
30
33
|
|
|
31
34
|
## Examples
|
|
32
35
|
|
|
33
|
-
Return information about a webhook
|
|
36
|
+
Return information about a specific webhook which belongs to a list retrieved by ID in a specific site
|
|
34
37
|
|
|
35
38
|
```sh
|
|
36
39
|
m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e85
|
|
37
40
|
```
|
|
38
41
|
|
|
39
|
-
Return information about a webhook
|
|
42
|
+
Return information about a specific webhook which belongs to a list retrieved by Title in a specific site
|
|
40
43
|
|
|
41
44
|
```sh
|
|
42
45
|
m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e85
|
|
43
46
|
```
|
|
47
|
+
|
|
48
|
+
Return information about a specific webhook which belongs to a list retrieved by URL in a specific site
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-x --listUrl '/sites/project-x/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e85
|
|
52
|
+
```
|