@pnp/cli-microsoft365 10.0.0-beta.48e9f7d → 10.0.0-beta.a4e89de
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 +11 -12
- package/dist/cli/cli.js +14 -0
- package/dist/config.js +60 -5
- package/dist/m365/base/PowerAutomateCommand.js +1 -1
- package/dist/m365/base/SpoCommand.js +1 -1
- package/dist/m365/cli/commands/cli-consent.js +2 -2
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands/cli-reconsent.js +2 -3
- package/dist/m365/cli/commands/config/config-set.js +12 -4
- package/dist/m365/commands/login.js +28 -9
- package/dist/m365/commands/setup.js +256 -33
- package/dist/m365/commands/setupPresets.js +2 -4
- package/dist/m365/connection/commands/connection-list.js +4 -4
- package/dist/m365/entra/commands/app/app-add.js +52 -288
- package/dist/m365/flow/commands/environment/environment-get.js +1 -1
- package/dist/m365/flow/commands/environment/environment-list.js +1 -1
- package/dist/m365/flow/commands/flow-disable.js +1 -1
- package/dist/m365/flow/commands/flow-enable.js +1 -1
- package/dist/m365/flow/commands/flow-export.js +17 -16
- package/dist/m365/flow/commands/flow-get.js +1 -1
- package/dist/m365/flow/commands/flow-list.js +1 -1
- package/dist/m365/flow/commands/flow-remove.js +1 -1
- package/dist/m365/flow/commands/owner/owner-ensure.js +1 -1
- package/dist/m365/flow/commands/owner/owner-list.js +1 -1
- package/dist/m365/flow/commands/owner/owner-remove.js +1 -1
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-list.js +47 -0
- package/dist/m365/flow/commands/recyclebinitem/recyclebinitem-restore.js +48 -0
- package/dist/m365/flow/commands/run/run-cancel.js +1 -1
- package/dist/m365/flow/commands/run/run-get.js +1 -1
- package/dist/m365/flow/commands/run/run-list.js +1 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +2 -2
- package/dist/m365/flow/commands.js +2 -0
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +8 -8
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +17 -54
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +13 -40
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +5 -13
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +5 -13
- package/dist/m365/spo/commands/folder/folder-sharinglink-add.js +143 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-clear.js +111 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-remove.js +95 -0
- package/dist/m365/spo/commands/list/list-get.js +17 -4
- package/dist/m365/spo/commands/page/page-section-add.js +185 -34
- package/dist/m365/spo/commands/site/SiteAdmin.js +2 -0
- package/dist/m365/spo/commands/site/site-admin-add.js +252 -0
- package/dist/m365/spo/commands/site/site-admin-list.js +2 -27
- package/dist/m365/spo/commands/user/user-get.js +67 -9
- package/dist/m365/spo/commands.js +4 -0
- package/dist/m365/spp/commands/contentcenter/contentcenter-list.js +56 -0
- package/dist/m365/spp/commands.js +5 -0
- package/dist/settingsNames.js +6 -1
- package/dist/utils/entraApp.js +283 -0
- package/dist/utils/spo.js +75 -7
- package/docs/docs/_clisettings.mdx +6 -1
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-list.mdx +132 -0
- package/docs/docs/cmd/flow/recyclebinitem/recyclebinitem-restore.mdx +55 -0
- package/docs/docs/cmd/setup.mdx +17 -6
- package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +7 -7
- package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx +125 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx +50 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx +50 -0
- package/docs/docs/cmd/spo/page/page-section-add.mdx +57 -2
- package/docs/docs/cmd/spo/site/site-admin-add.mdx +67 -0
- package/docs/docs/cmd/spo/user/user-get.mdx +35 -9
- package/docs/docs/cmd/spp/contentcenter/contentcenter-list.mdx +289 -0
- package/package.json +1 -1
|
@@ -25,10 +25,10 @@ m365 spo contenttype field remove [options]
|
|
|
25
25
|
`--listUrl [listUrl]`
|
|
26
26
|
: Server- or site-relative URL of the list (if it is a list content type). Specify either `listTitle`, `listId` or `listUrl`.
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
`--contentTypeId <contentTypeId>`
|
|
29
29
|
: The ID of the content type to remove the column from.
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
`-i, --id <id>`
|
|
32
32
|
: The ID of the column to remove.
|
|
33
33
|
|
|
34
34
|
`-c, --updateChildContentTypes`
|
|
@@ -45,31 +45,31 @@ m365 spo contenttype field remove [options]
|
|
|
45
45
|
Remove column with a specific ID from a content type with a specific ID from a specific site.
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --
|
|
48
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --force
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
Remove column with a specific ID from a content type with a specific ID from a specific site and updating the child content types.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --
|
|
54
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A6" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --updateChildContentTypes
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Remove fieldLink with a specific ID from a list (obtained by Title) content type with a specific ID on a specific site.
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --
|
|
60
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listTitle "Documents"
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Remove fieldLink with a specific ID from a list (obtained by ID) content type with a specific ID on a specific site.
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --
|
|
66
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listId "8c7a0fcd-9d64-4634-85ea-ce2b37b2ec0c"
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
Remove fieldLink with a specific ID from a list (obtained by URL) content type with a specific ID on a specific site.
|
|
70
70
|
|
|
71
71
|
```sh
|
|
72
|
-
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --
|
|
72
|
+
m365 spo contenttype field remove --contentTypeId "0x0100CA0FA0F5DAEF784494B9C6020C3020A60062F089A38C867747942DB2C3FC50FF6A" --id "880d2f46-fccb-43ca-9def-f88e722cef80" --webUrl https://contoso.sharepoint.com --listUrl "/shared documents"
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
## Response
|
|
@@ -16,10 +16,10 @@ m365 spo contenttype field set [options]
|
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
17
|
: Absolute URL of the site where the content type is located.
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
`--contentTypeId <contentTypeId>`
|
|
20
20
|
: ID of the content type on which the field reference should be set.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`-i, --id <id>`
|
|
23
23
|
: ID of the field to which the reference should be set.
|
|
24
24
|
|
|
25
25
|
`-r, --required [required]`
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo folder sharinglink add
|
|
6
|
+
|
|
7
|
+
Creates a new sharing link to a folder
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo folder sharinglink add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --webUrl <webUrl>`
|
|
19
|
+
: The URL of the site where the folder is located.
|
|
20
|
+
|
|
21
|
+
`--folderUrl [folderUrl]`
|
|
22
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
23
|
+
|
|
24
|
+
`--folderId [folderId]`
|
|
25
|
+
: The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
26
|
+
|
|
27
|
+
`--type <type>`
|
|
28
|
+
: The type of sharing link to create. Either `view` or `edit`.
|
|
29
|
+
|
|
30
|
+
`--expirationDateTime [expirationDateTime]`
|
|
31
|
+
: The date and time to set the expiration. This should be defined as a valid ISO 8601 string.
|
|
32
|
+
|
|
33
|
+
`--scope [scope]`
|
|
34
|
+
: The scope of link to create. Either `anonymous`, `organization` or `users`. If not specified, the default of the organization will be used.
|
|
35
|
+
|
|
36
|
+
`--retainInheritedPermissions [retainInheritedPermissions]`
|
|
37
|
+
: If `true`, any existing inherited permissions are retained on the shared item when sharing this item for the first time. If `false`, all existing permissions are removed when sharing for the first time.
|
|
38
|
+
|
|
39
|
+
`--recipients [recipients]`
|
|
40
|
+
: Comma separated list of users with whom we wish to share the item with. Required when using scope `users`.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
<Global />
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
Creates a view-only anonymous sharing link of a folder by id.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo folder sharinglink add --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234 --type view --scope anonymous
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Creates an edit organization sharing link of a folder by url with a specific expiration date.
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
m365 spo folder sharinglink add --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl /sites/demo/shared%20documents/Folder --type edit --scope organization --expirationDateTime '2022-11-30T00:00:00Z'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Creates a user sharing link of a folder by id.
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
m365 spo folder sharinglink add --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234 --type view --scope users --recipients john@contoso.com,doe@contoso.com
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Response
|
|
66
|
+
|
|
67
|
+
<Tabs>
|
|
68
|
+
<TabItem value="JSON">
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"id": "4fe11ccb-6c83-4927-8072-95642422b8ae",
|
|
73
|
+
"roles": [
|
|
74
|
+
"read"
|
|
75
|
+
],
|
|
76
|
+
"shareId": "u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQjNHWkRRNlVhQ3VwNEhWeFpiR25mRkE",
|
|
77
|
+
"hasPassword": false,
|
|
78
|
+
"link": {
|
|
79
|
+
"scope": "anonymous",
|
|
80
|
+
"type": "view",
|
|
81
|
+
"webUrl": "https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcB3GZDQ6UaCup4HVxZbGnfFA",
|
|
82
|
+
"preventsDownload": false
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</TabItem>
|
|
88
|
+
<TabItem value="Text">
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
hasPassword: false
|
|
92
|
+
id : 4fe11ccb-6c83-4927-8072-95642422b8ae
|
|
93
|
+
link : {"scope":"anonymous","type":"view","webUrl":"https://contoso.sharepoint.com/:f:/g/EvAQivzKWfhOvI8rb6mTTHcB3GZDQ6UaCup4HVxZbGnfFA","preventsDownload":false}
|
|
94
|
+
roles : ["read"]
|
|
95
|
+
shareId : u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQjNHWkRRNlVhQ3VwNEhWeFpiR25mRkE
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
</TabItem>
|
|
99
|
+
<TabItem value="CSV">
|
|
100
|
+
|
|
101
|
+
```csv
|
|
102
|
+
id,shareId,hasPassword
|
|
103
|
+
4fe11ccb-6c83-4927-8072-95642422b8ae,u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQjNHWkRRNlVhQ3VwNEhWeFpiR25mRkE,
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
</TabItem>
|
|
107
|
+
<TabItem value="Markdown">
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
# spo folder sharinglink add --webUrl "https://contoso.sharepoint.com" --folderUrl "/shared documents/folder1" --type "view" --scope "anonymous"
|
|
111
|
+
|
|
112
|
+
Date: 29/04/2024
|
|
113
|
+
|
|
114
|
+
## 4fe11ccb-6c83-4927-8072-95642422b8ae
|
|
115
|
+
|
|
116
|
+
Property | Value
|
|
117
|
+
---------|-------
|
|
118
|
+
id | 4fe11ccb-6c83-4927-8072-95642422b8ae
|
|
119
|
+
shareId | u!aHR0cHM6Ly83NTY2YXZhLnNoYXJlcG9pbnQuY29tLzpmOi9nL0V2QVFpdnpLV2ZoT3ZJOHJiNm1UVEhjQjNHWkRRNlVhQ3VwNEhWeFpiR25mRkE
|
|
120
|
+
hasPassword | false
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
</TabItem>
|
|
124
|
+
</Tabs>
|
|
125
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# spo folder sharinglink clear
|
|
4
|
+
|
|
5
|
+
Removes sharing links of a folder
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 spo folder sharinglink clear [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-u, --webUrl <webUrl>`
|
|
17
|
+
: The URL of the site where the folder is located.
|
|
18
|
+
|
|
19
|
+
`--folderUrl [folderUrl]`
|
|
20
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
21
|
+
|
|
22
|
+
`--folderId [folderId]`
|
|
23
|
+
: The Unique ID (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
24
|
+
|
|
25
|
+
`-s, --scope [scope]`
|
|
26
|
+
: Scope of the sharing link. Possible options are: `anonymous`, `users` or `organization`. If not specified, all links will be removed.
|
|
27
|
+
|
|
28
|
+
`-f, --force`
|
|
29
|
+
: Don't prompt for confirmation.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
<Global />
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
Removes all sharing links from a folder specified by id without prompting for confirmation.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
m365 spo folder sharinglink clear --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234 --force
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Removes sharing links of type anonymous from a folder specified by url with prompting for confirmation.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 spo folder sharinglink clear --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl '/sites/demo/Shared Documents/folder1' --scope anonymous
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Response
|
|
49
|
+
|
|
50
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# spo folder sharinglink remove
|
|
4
|
+
|
|
5
|
+
Removes a specific sharing link of a folder
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 spo folder sharinglink remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-u, --webUrl <webUrl>`
|
|
17
|
+
: The URL of the site where the folder is located.
|
|
18
|
+
|
|
19
|
+
`--folderUrl [folderUrl]`
|
|
20
|
+
: The server- or site-relative decoded URL of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
21
|
+
|
|
22
|
+
`--folderId [folderId]`
|
|
23
|
+
: The UniqueId (GUID) of the folder. Specify either `folderUrl` or `folderId` but not both.
|
|
24
|
+
|
|
25
|
+
`-i, --id <id>`
|
|
26
|
+
: The ID of the sharing link.
|
|
27
|
+
|
|
28
|
+
`-f, --force`
|
|
29
|
+
: Don't prompt for confirmation.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
<Global />
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
Removes a specific sharing link from a folder by id without prompting for confirmation.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
m365 spo folder sharinglink remove --webUrl https://contoso.sharepoint.com/sites/demo --folderId daebb04b-a773-4baa-b1d1-3625418e3234 --id c391b57d-5783-4c53-9236-cefb5c6ef323 --force
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Removes a specific sharing link from a folder by url with prompting for confirmation.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 spo folder sharinglink remove --webUrl https://contoso.sharepoint.com/sites/demo --folderUrl /sites/demo/shared%20documents/Folder --id c391b57d-5783-4c53-9236-cefb5c6ef323
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Response
|
|
49
|
+
|
|
50
|
+
The command won't return a response on success.
|
|
@@ -26,10 +26,46 @@ m365 spo page section add [options]
|
|
|
26
26
|
: Order of the section to add.
|
|
27
27
|
|
|
28
28
|
`--zoneEmphasis [zoneEmphasis]`
|
|
29
|
-
: Section background shading. Allowed values `None`, `Neutral`, `Soft`, `Strong`
|
|
29
|
+
: Section background shading. Allowed values `None`, `Neutral`, `Soft`, `Strong`, `Image`,`Gradient`
|
|
30
30
|
|
|
31
31
|
`--isLayoutReflowOnTop`
|
|
32
|
-
: The position of the Vertical section for smaller screens. Applied only for Vertical section.
|
|
32
|
+
: The position of the Vertical section for smaller screens. Applied only for `Vertical` section.
|
|
33
|
+
|
|
34
|
+
`--isCollapsibleSection`
|
|
35
|
+
: Set section to be collapsible.
|
|
36
|
+
|
|
37
|
+
`--showDivider`
|
|
38
|
+
: Shows a divider line between sections.
|
|
39
|
+
|
|
40
|
+
`--iconAlignment [iconAlignment]`
|
|
41
|
+
: Specifies the alignment of the expand/collapse icon. Sets `Left` alignment if not specified.
|
|
42
|
+
|
|
43
|
+
`--isExpanded`
|
|
44
|
+
: Sets the default display state of the collapsible section. Sets `false` if not specified.
|
|
45
|
+
|
|
46
|
+
`--gradientText [gradientText]`
|
|
47
|
+
: Sets the gradient setting of the background of a section. Required when `zoneEmphasis` is `Gradient`.
|
|
48
|
+
|
|
49
|
+
`--imageUrl [imageUrl]`
|
|
50
|
+
: The background image URL. Required when `zoneEmphasis` is `Image`.
|
|
51
|
+
|
|
52
|
+
`--imageHeight [imageHeight]`
|
|
53
|
+
: The height of the background image. Applied only when when `zoneEmphasis` is `Image`. Sets `955` value if not specified.
|
|
54
|
+
|
|
55
|
+
`--imageWidth [imageWidth]`
|
|
56
|
+
: The width of the background image. Applied only when `zoneEmphasis` is `Image`. Sets `555` value if not specified.
|
|
57
|
+
|
|
58
|
+
`--fillMode [fillMode]`
|
|
59
|
+
: The fill mode of the background image. Applied only when `zoneEmphasis` is `Image`. Possible values are `ScaleToFill`, `ScaleToFit`, `Tile`, `OriginalSize`. Sets `ScaleToFill` value if not specified.
|
|
60
|
+
|
|
61
|
+
`--useLightText`
|
|
62
|
+
: Specifies whether to use light text for the background. Applied only when `zoneEmphasis` is `Image`.
|
|
63
|
+
|
|
64
|
+
`--overlayColor [overlayColor]`
|
|
65
|
+
: The overlay color for the background in #RRGGBB format. Applied only when `zoneEmphasis` is `Image` or `Gradient`. Sets `#ffffff` value if not specified.
|
|
66
|
+
|
|
67
|
+
`--overlayOpacity [overlayOpacity]`
|
|
68
|
+
: The overlay opacity for the background. Applied only when `zoneEmphasis` is `Image` or `Gradient`. Sets `60` value if not specified.
|
|
33
69
|
```
|
|
34
70
|
|
|
35
71
|
<Global />
|
|
@@ -64,6 +100,25 @@ Add Vertical section with background shading to the modern page with adjusting t
|
|
|
64
100
|
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate Vertical --zoneEmphasis Neutral --isLayoutReflowOnTop
|
|
65
101
|
```
|
|
66
102
|
|
|
103
|
+
Add OneColumn section as a collapsible section as expanded with icon alligned to the left
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate OneColumn --isCollapsibleSection --isExpanded --iconAlignment Left
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Add TwoColumn section with Image background
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate TwoColumn --imageUrl "https://contoso.com/image.jpg" --zoneEmphasis Image --fillMode Tile
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Add OneColumn section with Gradient background
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
m365 spo page section add --pageName home.aspx --webUrl https://contoso.sharepoint.com/sites/newsletter --sectionTemplate TwoColumn --zoneEmphasis Gradient --gradientText "linear-gradient(72.44deg, #E6FBFE 0%, #EDDDFB 100%)"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
|
|
67
122
|
## Response
|
|
68
123
|
|
|
69
124
|
The command won't return a response on success.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spo site admin add
|
|
6
|
+
|
|
7
|
+
Adds a user or group as a site collection administrator
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spo site admin add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-u, --siteUrl <siteUrl>`
|
|
19
|
+
: The URL of the SharePoint site
|
|
20
|
+
|
|
21
|
+
`--userId [userId]`
|
|
22
|
+
: The ID of the user to add as a site collection admin
|
|
23
|
+
|
|
24
|
+
`--userName [userName]`
|
|
25
|
+
: The user principal name of the user to add as a site collection admin
|
|
26
|
+
|
|
27
|
+
`--groupId [groupId]`
|
|
28
|
+
: The ID of the Microsoft Entra ID group to add as a site collection admin
|
|
29
|
+
|
|
30
|
+
`--groupName [groupName]`
|
|
31
|
+
: The name of the Microsoft Entra ID group to add as a site collection admin
|
|
32
|
+
|
|
33
|
+
`--primary`
|
|
34
|
+
: If set, will add the user as primary site collection admin. The old primary site collection admin will be replaced and set as secondary site collection admin
|
|
35
|
+
|
|
36
|
+
`--asAdmin`
|
|
37
|
+
: If specified, we will use the SharePoint admin center to execute the command
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Remarks
|
|
43
|
+
|
|
44
|
+
:::info
|
|
45
|
+
|
|
46
|
+
To use this command with the `--asAdmin` mode, you have to have permissions to access the tenant admin site.
|
|
47
|
+
|
|
48
|
+
Without this parameter, you have to have site collection admin permissions for the requested site.
|
|
49
|
+
|
|
50
|
+
:::
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
Add user as primary site collection administrator
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 spo site admin add --siteUrl https://contoso.sharepoint.com --userId 600713c5-53c6-4f24-b454-3c35e22b2639 --primary
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Adds group as secondary site collection administrator as SharePoint admin
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 spo site admin add --siteUrl https://contoso.sharepoint.com --groupName SP_Administrators --asAdmin
|
|
64
|
+
```
|
|
65
|
+
## Response
|
|
66
|
+
|
|
67
|
+
The command won't return a response on success.
|
|
@@ -16,41 +16,68 @@ m365 spo user get [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-u, --webUrl <webUrl>`
|
|
19
|
-
: URL of the web to get the user within
|
|
19
|
+
: URL of the web to get the user within.
|
|
20
20
|
|
|
21
21
|
`-i, --id [id]`
|
|
22
|
-
: ID of the user to retrieve information for.
|
|
22
|
+
: ID of the user to retrieve information for. Specify either `id`, `loginName`, `email`, `userName`, `entraGroupId`, or `entraGroupName`.
|
|
23
23
|
|
|
24
24
|
`--email [email]`
|
|
25
|
-
: Email of the user to retrieve information for.
|
|
25
|
+
: Email of the user to retrieve information for. Specify either `id`, `loginName`, `email`, `userName`, `entraGroupId`, or `entraGroupName`.
|
|
26
26
|
|
|
27
27
|
`--loginName [loginName]`
|
|
28
|
-
: Login name of the user to retrieve information for.
|
|
28
|
+
: Login name of the user to retrieve information for. Specify either `id`, `loginName`, `email`, `userName`, `entraGroupId`, or `entraGroupName`.
|
|
29
|
+
|
|
30
|
+
`--userName [userName]`
|
|
31
|
+
: User's UPN (user principal name, eg. megan.bowen@contoso.com). Specify either `id`, `loginName`, `email`, `userName`, `entraGroupId`, or `entraGroupName`.
|
|
32
|
+
|
|
33
|
+
`--entraGroupId [entraGroupId]`
|
|
34
|
+
: The object ID of the Microsoft Entra group. Specify either `id`, `loginName`, `email`, `userName`, `entraGroupId`, or `entraGroupName`.
|
|
35
|
+
|
|
36
|
+
`--entraGroupName [entraGroupName]`
|
|
37
|
+
: The name of the Microsoft Entra group. Specify either `id`, `loginName`, `email`, `userName`, `entraGroupId`, or `entraGroupName`.
|
|
29
38
|
```
|
|
30
39
|
|
|
31
40
|
<Global />
|
|
32
41
|
|
|
33
42
|
## Examples
|
|
34
43
|
|
|
35
|
-
Get user by email for a web
|
|
44
|
+
Get user by email for a web.
|
|
36
45
|
|
|
37
46
|
```sh
|
|
38
47
|
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --email john.doe@mytenant.onmicrosoft.com
|
|
39
48
|
```
|
|
40
49
|
|
|
41
|
-
Get user by ID for a web
|
|
50
|
+
Get user by ID for a web.
|
|
42
51
|
|
|
43
52
|
```sh
|
|
44
53
|
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --id 6
|
|
45
54
|
```
|
|
46
55
|
|
|
47
|
-
Get user by login name for a web
|
|
56
|
+
Get user by login name for a web.
|
|
48
57
|
|
|
49
58
|
```sh
|
|
50
59
|
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --loginName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
|
|
51
60
|
```
|
|
52
61
|
|
|
53
|
-
Get
|
|
62
|
+
Get user by user's UPN for a web.
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --userName "john.doe@mytenant.onmicrosoft.com"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Get user by entraGroupId for a web.
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --entraGroupId f832a493-de73-4fef-87ed-8c6fffd91be6
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Get user by entraGroupName for a web.
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --entraGroupName "Test Members"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Get the currently logged-in user.
|
|
54
81
|
|
|
55
82
|
```sh
|
|
56
83
|
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
@@ -134,4 +161,3 @@ m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
|
134
161
|
|
|
135
162
|
</TabItem>
|
|
136
163
|
</Tabs>
|
|
137
|
-
|