@pnp/cli-microsoft365 10.0.0-beta.d54aaac → 10.0.0-beta.da65889
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 +3 -3
- package/dist/AuthServer.js +7 -7
- package/dist/api.js +1 -1
- package/dist/config.js +1 -0
- package/dist/m365/cli/commands/cli-doctor.js +2 -2
- package/dist/m365/cli/commands.js +1 -2
- package/dist/m365/commands/login.js +120 -67
- package/dist/m365/entra/commands/group/{group-user-add.js → group-member-add.js} +18 -18
- package/dist/m365/entra/commands/group/{group-user-list.js → group-member-list.js} +17 -17
- package/dist/m365/entra/commands/group/{group-user-set.js → group-member-set.js} +19 -19
- package/dist/m365/entra/commands/m365group/m365group-set.js +24 -16
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +5 -12
- package/dist/m365/entra/commands/oauth2grant/oauth2grant-list.js +3 -12
- package/dist/m365/entra/commands.js +3 -3
- package/dist/m365/external/commands/item/item-add.js +2 -5
- package/dist/m365/flow/commands/environment/environment-list.js +1 -1
- package/dist/m365/pa/commands/app/app-list.js +1 -6
- package/dist/m365/pa/commands/connector/connector-list.js +1 -6
- package/dist/m365/pa/commands/environment/environment-list.js +1 -1
- package/dist/m365/pp/commands/environment/environment-list.js +1 -1
- package/dist/m365/spfx/commands/project/project-doctor/{doctor-1.20.0-rc.1.js → doctor-1.20.0.js} +4 -2
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN002021_DEVDEP_rushstack_eslint_config.js +10 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/{upgrade-1.20.0-rc.1.js → upgrade-1.20.0.js} +28 -26
- package/dist/m365/spfx/commands/project/project-upgrade.js +13 -15
- package/dist/m365/spfx/commands/spfx-doctor.js +1 -1
- package/dist/m365/spo/commands/app/app-instance-list.js +3 -18
- package/dist/m365/spo/commands/app/app-list.js +1 -8
- package/dist/m365/spo/commands/feature/feature-list.js +1 -8
- package/dist/m365/spo/commands/file/file-copy.js +5 -1
- package/dist/m365/spo/commands/file/file-move.js +55 -33
- package/dist/m365/spo/commands/list/list-webhook-list.js +1 -6
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +1 -8
- package/dist/m365/spo/commands/page/page-list.js +1 -1
- package/dist/m365/spo/commands/page/page-remove.js +37 -16
- package/dist/m365/spo/commands/page/page-template-list.js +1 -3
- package/dist/m365/spo/commands/site/site-admin-list.js +8 -9
- package/dist/m365/spo/commands/site/site-admin-remove.js +5 -4
- package/dist/m365/spo/commands/site/site-sharingpermission-set.js +68 -0
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +3 -2
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +1 -3
- package/dist/m365/spo/commands/{site/site-rename.js → tenant/tenant-site-rename.js} +29 -32
- package/dist/m365/spo/commands/theme/theme-list.js +1 -1
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +1 -6
- package/dist/m365/spo/commands.js +2 -1
- package/dist/m365/teams/commands/tab/tab-list.js +5 -3
- package/dist/m365/viva/commands/engage/Community.js +2 -0
- package/dist/m365/viva/commands/engage/engage-community-list.js +28 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/request.js +46 -61
- package/dist/utils/spo.js +8 -8
- package/dist/utils/timersUtil.js +12 -0
- package/dist/utils/urlUtil.js +8 -0
- package/docs/docs/cmd/cli/cli-doctor.mdx +24 -23
- package/docs/docs/cmd/entra/group/group-member-add.mdx +62 -0
- package/docs/docs/cmd/entra/group/{group-user-list.mdx → group-member-list.mdx} +14 -14
- package/docs/docs/cmd/entra/group/group-member-set.mdx +62 -0
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +9 -6
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +0 -3
- package/docs/docs/cmd/external/item/item-add.mdx +3 -3
- package/docs/docs/cmd/login.mdx +9 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-move.mdx +116 -9
- package/docs/docs/cmd/spo/page/page-remove.mdx +30 -12
- package/docs/docs/cmd/spo/site/site-admin-list.mdx +64 -12
- package/docs/docs/cmd/spo/site/site-sharingpermission-set.mdx +58 -0
- package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +14 -1
- package/docs/docs/cmd/spo/{site/site-rename.mdx → tenant/tenant-site-rename.mdx} +7 -7
- package/docs/docs/cmd/teams/tab/tab-list.mdx +1 -2
- package/docs/docs/cmd/viva/engage/engage-community-list.mdx +81 -0
- package/package.json +1 -1
- package/dist/m365/cli/commands/cli-reconsent.js +0 -29
- package/docs/docs/cmd/cli/cli-reconsent.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-add.mdx +0 -62
- package/docs/docs/cmd/entra/group/group-user-set.mdx +0 -62
package/docs/docs/cmd/login.mdx
CHANGED
|
@@ -47,6 +47,9 @@ m365 login [options]
|
|
|
47
47
|
|
|
48
48
|
`--connectionName [connectionName]`
|
|
49
49
|
: Specify an optional name to make switching between connections easier.
|
|
50
|
+
|
|
51
|
+
`--ensure`
|
|
52
|
+
: Ensures that the user is signed in. if the user isn't signed in, it initiates the login flow
|
|
50
53
|
```
|
|
51
54
|
|
|
52
55
|
<Global />
|
|
@@ -190,6 +193,12 @@ Log in to Microsoft 365 using a client secret.
|
|
|
190
193
|
m365 login --authType secret --secret topSeCr3t@007
|
|
191
194
|
```
|
|
192
195
|
|
|
196
|
+
Ensures that the user is signed in, initiates the login flow if the user isn't signed in
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
m365 login --ensure
|
|
200
|
+
```
|
|
201
|
+
|
|
193
202
|
## Response
|
|
194
203
|
|
|
195
204
|
<Tabs>
|
|
@@ -35,7 +35,7 @@ m365 spfx project upgrade [options]
|
|
|
35
35
|
|
|
36
36
|
## Remarks
|
|
37
37
|
|
|
38
|
-
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.
|
|
38
|
+
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.20.0).
|
|
39
39
|
|
|
40
40
|
This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
|
|
41
41
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# spo file move
|
|
4
6
|
|
|
@@ -31,11 +33,14 @@ m365 spo file move [options]
|
|
|
31
33
|
`--nameConflictBehavior [nameConflictBehavior]`
|
|
32
34
|
: Behavior when a file or folder with the same name is already present at the destination. Allowed values: `fail`, `replace`, `rename`. Defaults to `fail`.
|
|
33
35
|
|
|
34
|
-
`--
|
|
35
|
-
:
|
|
36
|
+
`--includeItemPermissions`
|
|
37
|
+
: Ensure that item-level permissions are preserved during the move.
|
|
36
38
|
|
|
37
39
|
`--bypassSharedLock`
|
|
38
40
|
: This indicates whether a file with a share lock can still be moved. Use this option to move a file that is locked.
|
|
41
|
+
|
|
42
|
+
`--skipWait`
|
|
43
|
+
: Don't wait for the copy operation to complete.
|
|
39
44
|
```
|
|
40
45
|
|
|
41
46
|
<Global />
|
|
@@ -45,7 +50,6 @@ m365 spo file move [options]
|
|
|
45
50
|
All file versions are retained while moving a file.
|
|
46
51
|
|
|
47
52
|
When you specify a value for `nameConflictBehavior`, consider the following:
|
|
48
|
-
|
|
49
53
|
- `fail` will throw an error when the destination file already exists.
|
|
50
54
|
- `replace` will replace the destination file if it already exists.
|
|
51
55
|
- `rename` will add a suffix (e.g. Document1.pdf) when the destination file already exists.
|
|
@@ -70,16 +74,119 @@ Move a file to another document library and replace a file with the same name.
|
|
|
70
74
|
m365 spo file move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/Shared Documents/Report project-x.pdf" --targetUrl "/sites/project-x/My Documents" --newName Report.pdf --nameConflictBehavior replace
|
|
71
75
|
```
|
|
72
76
|
|
|
73
|
-
Move a file referenced by its ID to another document library and retain
|
|
77
|
+
Move a file referenced by its ID to another document library and retain item-level permissions.
|
|
74
78
|
|
|
75
79
|
```sh
|
|
76
|
-
m365 spo file move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/My Documents" --
|
|
80
|
+
m365 spo file move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/My Documents" --includeItemPermissions
|
|
77
81
|
```
|
|
78
82
|
|
|
79
83
|
## Response
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
### Standard Response
|
|
86
|
+
|
|
87
|
+
<Tabs>
|
|
88
|
+
<TabItem value="JSON">
|
|
89
|
+
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"CheckInComment": "",
|
|
93
|
+
"CheckOutType": 2,
|
|
94
|
+
"ContentTag": "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",
|
|
95
|
+
"CustomizedPageStatus": 0,
|
|
96
|
+
"ETag": "\"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1\"",
|
|
97
|
+
"Exists": true,
|
|
98
|
+
"IrmEnabled": false,
|
|
99
|
+
"Length": "5987",
|
|
100
|
+
"Level": 1,
|
|
101
|
+
"LinkingUri": null,
|
|
102
|
+
"LinkingUrl": "",
|
|
103
|
+
"MajorVersion": 1,
|
|
104
|
+
"MinorVersion": 0,
|
|
105
|
+
"Name": "Test1.docx",
|
|
106
|
+
"ServerRelativeUrl": "/sites/project-x/documents/Test1.docx",
|
|
107
|
+
"TimeCreated": "2022-10-30T10:16:18Z",
|
|
108
|
+
"TimeLastModified": "2022-10-30T10:16:18Z",
|
|
109
|
+
"Title": null,
|
|
110
|
+
"UIVersion": 512,
|
|
111
|
+
"UIVersionLabel": "1.0",
|
|
112
|
+
"UniqueId": "b2307a39-e878-458b-bc90-03bc578531d6"
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
</TabItem>
|
|
117
|
+
<TabItem value="Text">
|
|
118
|
+
|
|
119
|
+
```text
|
|
120
|
+
CheckInComment :
|
|
121
|
+
CheckOutType : 2
|
|
122
|
+
ContentTag : {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
123
|
+
CustomizedPageStatus: 0
|
|
124
|
+
ETag : "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
125
|
+
Exists : true
|
|
126
|
+
IrmEnabled : false
|
|
127
|
+
Length : 5987
|
|
128
|
+
Level : 1
|
|
129
|
+
LinkingUri : null
|
|
130
|
+
LinkingUrl :
|
|
131
|
+
MajorVersion : 1
|
|
132
|
+
MinorVersion : 0
|
|
133
|
+
Name : Test1.docx
|
|
134
|
+
ServerRelativeUrl : /sites/project-x/documents/Test1.docx
|
|
135
|
+
TimeCreated : 2022-10-30T10:16:18Z
|
|
136
|
+
TimeLastModified : 2022-10-30T10:16:18Z
|
|
137
|
+
Title : null
|
|
138
|
+
UIVersion : 512
|
|
139
|
+
UIVersionLabel : 1.0
|
|
140
|
+
UniqueId : b2307a39-e878-458b-bc90-03bc578531d6
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
</TabItem>
|
|
144
|
+
<TabItem value="CSV">
|
|
145
|
+
|
|
146
|
+
```csv
|
|
147
|
+
CheckInComment,CheckOutType,ContentTag,CustomizedPageStatus,ETag,Exists,IrmEnabled,Length,Level,LinkingUri,LinkingUrl,MajorVersion,MinorVersion,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId
|
|
148
|
+
,2,"{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1",0,"""{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1""",1,,5987,1,,,1,0,Test1.docx,/sites/project-x/documents/Test1.docx,2022-10-30T10:16:18Z,2022-10-30T10:16:18Z,,512,1.0,b2307a39-e878-458b-bc90-03bc578531d6
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
</TabItem>
|
|
152
|
+
<TabItem value="Markdown">
|
|
153
|
+
|
|
154
|
+
```md
|
|
155
|
+
# spo file move --webUrl "https://contoso.sharepoint.com/sites/IT" --sourceUrl "/Shared Documents/Document.docx" --targetUrl "/sites/project-x/Shared Documents"
|
|
156
|
+
|
|
157
|
+
Date: 10/3/2023
|
|
158
|
+
|
|
159
|
+
## b2307a39-e878-458b-bc90-03bc578531d6
|
|
160
|
+
|
|
161
|
+
Property | Value
|
|
162
|
+
---------|-------
|
|
163
|
+
CheckInComment |
|
|
164
|
+
CheckOutType | 2
|
|
165
|
+
ContentTag | {03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1,1
|
|
166
|
+
CustomizedPageStatus | 0
|
|
167
|
+
ETag | "{03E171B6-9DF2-46D9-A7A1-D5FA0BD23E4B},1"
|
|
168
|
+
Exists | true
|
|
169
|
+
ExistsAllowThrowForPolicyFailures | true
|
|
170
|
+
IrmEnabled | false
|
|
171
|
+
Length | 5987
|
|
172
|
+
Level | 1
|
|
173
|
+
LinkingUri | https://contoso.sharepoint.com/sites/project-x/shared%20documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
174
|
+
LinkingUrl | https://contoso.sharepoint.com/sites/project-x/shared documents/Document.docx?d=w59d4e6fcf6f94ce78bea0273cedb1a19
|
|
175
|
+
MajorVersion | 1
|
|
176
|
+
MinorVersion | 0
|
|
177
|
+
Name | Document.docx
|
|
178
|
+
ServerRelativeUrl | /sites/project-x/shared documents/Document.docx
|
|
179
|
+
TimeCreated | 2023-05-23T09:51:34Z
|
|
180
|
+
TimeLastModified | 2023-05-23T10:13:01Z
|
|
181
|
+
Title |
|
|
182
|
+
UIVersion | 1536
|
|
183
|
+
UIVersionLabel | 1.0
|
|
184
|
+
UniqueId | b2307a39-e878-458b-bc90-03bc578531d6
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
</TabItem>
|
|
188
|
+
</Tabs>
|
|
189
|
+
|
|
190
|
+
### `skipWait` response
|
|
82
191
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
- Move items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
|
|
192
|
+
The command won't return a response on success.
|
|
@@ -13,36 +13,54 @@ m365 spo page remove [options]
|
|
|
13
13
|
## Options
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
|
+
`-u, --webUrl <webUrl>`
|
|
17
|
+
: URL of the site where the page is located.
|
|
18
|
+
|
|
16
19
|
`-n, --name <name>`
|
|
17
|
-
: Name of the page
|
|
20
|
+
: Name of the page.
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
:
|
|
22
|
+
`--recycle`
|
|
23
|
+
: Send the page to the recycle bin instead of permanently deleting it.
|
|
24
|
+
|
|
25
|
+
`--bypassSharedLock`
|
|
26
|
+
: Remove the page even if it is locked for shared use.
|
|
21
27
|
|
|
22
28
|
`-f, --force`
|
|
23
|
-
: Do not prompt for confirmation
|
|
29
|
+
: Do not prompt for confirmation.
|
|
24
30
|
```
|
|
25
31
|
|
|
26
32
|
<Global />
|
|
27
33
|
|
|
28
|
-
## Remarks
|
|
29
|
-
|
|
30
|
-
If you try to remove a page with that does not exist, you will get a `The file does not exist` error.
|
|
31
|
-
|
|
32
|
-
If you set the `-f, --force` flag, you will not be prompted for confirmation before the page is actually removed.
|
|
33
|
-
|
|
34
34
|
## Examples
|
|
35
35
|
|
|
36
36
|
Remove a modern page
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 spo page remove --name
|
|
39
|
+
m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Remove a modern page without a confirmation prompt
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
m365 spo page remove --name
|
|
45
|
+
m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --force
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Send a page to the recycle bin
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --recycle
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Remove a page that is locked
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 spo page remove --name HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing --bypassSharedLock
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Remove a page that is located in a subfolder
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 spo page remove --name /Departments/People/HR.aspx --webUrl https://contoso.sharepoint.com/sites/Marketing
|
|
46
64
|
```
|
|
47
65
|
|
|
48
66
|
## Response
|
|
@@ -28,12 +28,10 @@ m365 spo site admin list [options]
|
|
|
28
28
|
|
|
29
29
|
:::info
|
|
30
30
|
|
|
31
|
-
To use this command with the `--asAdmin` mode, you must
|
|
31
|
+
To use this command with the `--asAdmin` mode, you must be at least SharePoint administrator.
|
|
32
32
|
|
|
33
33
|
Without this parameter, you must have site collection admin permissions for the requested site.
|
|
34
34
|
|
|
35
|
-
In `--asAdmin` mode, the Id, PrincipalType, and PrincipalTypeString properties are not exported.
|
|
36
|
-
|
|
37
35
|
:::
|
|
38
36
|
|
|
39
37
|
## Examples
|
|
@@ -52,6 +50,8 @@ m365 spo site admin list --siteUrl https://contoso.sharepoint.com --asAdmin
|
|
|
52
50
|
|
|
53
51
|
## Response
|
|
54
52
|
|
|
53
|
+
### Standard response
|
|
54
|
+
|
|
55
55
|
<Tabs>
|
|
56
56
|
<TabItem value="JSON">
|
|
57
57
|
|
|
@@ -73,13 +73,9 @@ m365 spo site admin list --siteUrl https://contoso.sharepoint.com --asAdmin
|
|
|
73
73
|
<TabItem value="Text">
|
|
74
74
|
|
|
75
75
|
```text
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
PrincipalType : 1
|
|
80
|
-
PrincipalTypeString : User
|
|
81
|
-
Title : User Example
|
|
82
|
-
IsPrimaryAdmin : true
|
|
76
|
+
Id LoginName Title PrincipalTypeString
|
|
77
|
+
-- --------------------------------------------------------------------------- ------- -------------------
|
|
78
|
+
15 c:0o.c|federateddirectoryclaimprovider|d8430798-5a00-00ba-83b0-dd7a032d549a Members SecurityGroup
|
|
83
79
|
```
|
|
84
80
|
|
|
85
81
|
</TabItem>
|
|
@@ -98,7 +94,7 @@ m365 spo site admin list --siteUrl https://contoso.sharepoint.com --asAdmin
|
|
|
98
94
|
|
|
99
95
|
Date: 20/03/2024
|
|
100
96
|
|
|
101
|
-
## User
|
|
97
|
+
## User Example
|
|
102
98
|
|
|
103
99
|
Property | Value
|
|
104
100
|
---------|-------
|
|
@@ -112,4 +108,60 @@ m365 spo site admin list --siteUrl https://contoso.sharepoint.com --asAdmin
|
|
|
112
108
|
```
|
|
113
109
|
|
|
114
110
|
</TabItem>
|
|
115
|
-
</Tabs>
|
|
111
|
+
</Tabs>
|
|
112
|
+
|
|
113
|
+
### `asAdmin` response
|
|
114
|
+
|
|
115
|
+
When we make use of the option `asAdmin` the response will differ.
|
|
116
|
+
|
|
117
|
+
<Tabs>
|
|
118
|
+
<TabItem value="JSON">
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
[
|
|
122
|
+
{
|
|
123
|
+
"Email": "user@contoso.com",
|
|
124
|
+
"LoginName": "i:0#.f|membership|user@contoso.com",
|
|
125
|
+
"Title": "User Example",
|
|
126
|
+
"IsPrimaryAdmin": true
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
</TabItem>
|
|
132
|
+
<TabItem value="Text">
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
LoginName Title
|
|
136
|
+
--------------------------------------------------------------------------- ---------------
|
|
137
|
+
c:0o.c|federateddirectoryclaimprovider|d8430798-5a00-00ba-83b0-dd7a032d549a Members
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
</TabItem>
|
|
141
|
+
<TabItem value="CSV">
|
|
142
|
+
|
|
143
|
+
```csv
|
|
144
|
+
Email,LoginName,Title,IsPrimaryAdmin
|
|
145
|
+
user@contoso.com,i:0#.f|membership|user@contoso.com,User Example,1
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
</TabItem>
|
|
149
|
+
<TabItem value="Markdown">
|
|
150
|
+
|
|
151
|
+
```md
|
|
152
|
+
# spo site admin list --siteUrl "https://contoso.sharepoint.com/sites/Test" --asAdmin
|
|
153
|
+
|
|
154
|
+
Date: 20/03/2024
|
|
155
|
+
|
|
156
|
+
## User Example
|
|
157
|
+
|
|
158
|
+
Property | Value
|
|
159
|
+
---------|-------
|
|
160
|
+
Email | user@contoso.com
|
|
161
|
+
LoginName | i:0#.f\|membership\|user@contoso.com
|
|
162
|
+
Title | User Example
|
|
163
|
+
IsPrimaryAdmin | true
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
</TabItem>
|
|
167
|
+
</Tabs>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# spo site sharingpermission set
|
|
4
|
+
|
|
5
|
+
Controls how a site and its components can be shared
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 spo site sharingpermission set [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-u, --url <url>`
|
|
17
|
+
: URL of the site.
|
|
18
|
+
|
|
19
|
+
`--capability <capability>`
|
|
20
|
+
: Define how the site is shared. Possible values: `full`, `limited`, `ownersOnly`.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<Global />
|
|
24
|
+
|
|
25
|
+
## Remarks
|
|
26
|
+
|
|
27
|
+
When specifying `capability`, consider the following:
|
|
28
|
+
- `full`: Site owners and members can share files, folders, and the site. People with Edit permissions can share files and folders.
|
|
29
|
+
- `limited`: Site owners and members, and people with Edit permissions can share files and folders, but only site owners can share the site.
|
|
30
|
+
- `ownersOnly`: Only site owners can share files, folders, and the site.
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
Update the sharing permissions for a site so only owners can share files and the site
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability ownersOnly
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Update the sharing permissions for a site where so both owners and members can share files and the site
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability full
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Update the sharing permissions for a site where so owners can share the site, but members can only share files
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
m365 spo site sharingpermission set --siteUrl https://siteaddress.com/sites/sitename --capability full
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Response
|
|
53
|
+
|
|
54
|
+
The command won't return a response on success.
|
|
55
|
+
|
|
56
|
+
## More information
|
|
57
|
+
|
|
58
|
+
- Sharing a SharePoint site: [https://support.microsoft.com/office/share-a-site-958771a8-d041-4eb8-b51c-afea2eae3658](https://support.microsoft.com/office/share-a-site-958771a8-d041-4eb8-b51c-afea2eae3658)
|
|
@@ -51,7 +51,20 @@ m365 spo sitescript get --id 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a --content
|
|
|
51
51
|
|
|
52
52
|
```json
|
|
53
53
|
{
|
|
54
|
-
"Content":
|
|
54
|
+
"Content": {
|
|
55
|
+
"$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
|
|
56
|
+
"actions": [
|
|
57
|
+
{
|
|
58
|
+
"verb":"activateSPFeature",
|
|
59
|
+
"name": "SiteNotebook feature",
|
|
60
|
+
"title": "SiteNotebook feature",
|
|
61
|
+
"featureId": "f151bb39-7c3b-414f-bb36-6bf18872052f",
|
|
62
|
+
"scope": "web"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"bindata":{},
|
|
66
|
+
"version":1
|
|
67
|
+
},
|
|
55
68
|
"ContentByteArray": null,
|
|
56
69
|
"Description": "Contoso site script",
|
|
57
70
|
"Id": "43d4ffa0-c7ee-4a97-91d7-db27e5b62de5",
|
|
@@ -2,14 +2,14 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# spo site rename
|
|
5
|
+
# spo tenant site rename
|
|
6
6
|
|
|
7
7
|
Renames the URL and title of a site collection
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 spo site rename [options]
|
|
12
|
+
m365 spo tenant site rename [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Options
|
|
@@ -38,7 +38,7 @@ m365 spo site rename [options]
|
|
|
38
38
|
|
|
39
39
|
## Remarks
|
|
40
40
|
|
|
41
|
-
Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the `--wait` flag. When using this flag, the `spo site rename` command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.
|
|
41
|
+
Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the `--wait` flag. When using this flag, the `spo tenant site rename` command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.
|
|
42
42
|
|
|
43
43
|
:::info
|
|
44
44
|
|
|
@@ -51,19 +51,19 @@ To use this command you must have permissions to access the tenant admin site.
|
|
|
51
51
|
Starts the rename of the site collection with name "samplesite" to "renamed" without modifying the title
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed
|
|
54
|
+
m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Starts the rename of the site collection with name "samplesite" to "renamed" modifying the title of the site to "New Title"
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title"
|
|
60
|
+
m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title"
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Renames the specified site collection and waits for the operation to complete
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title" --wait
|
|
66
|
+
m365 spo tenant site rename --url http://contoso.sharepoint.com/samplesite --newUrl http://contoso.sharepoint.com/renamed --newTitle "New Title" --wait
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
## Response
|
|
@@ -130,7 +130,7 @@ m365 spo site rename --url http://contoso.sharepoint.com/samplesite --newUrl htt
|
|
|
130
130
|
<TabItem value="Markdown">
|
|
131
131
|
|
|
132
132
|
```md
|
|
133
|
-
# spo site rename --url "https://contoso.sharepoint.com/sites/team1" --newUrl "https://contoso.sharepoint.com/sites/team2"
|
|
133
|
+
# spo tenant site rename --url "https://contoso.sharepoint.com/sites/team1" --newUrl "https://contoso.sharepoint.com/sites/team2"
|
|
134
134
|
|
|
135
135
|
Date: 2023-06-21
|
|
136
136
|
|
|
@@ -67,8 +67,7 @@ m365 teams tab list --teamId 00000000-0000-0000-0000-000000000000 --channelId 19
|
|
|
67
67
|
"externalId": null,
|
|
68
68
|
"displayName": "My Contoso Tab",
|
|
69
69
|
"distributionMethod": "store"
|
|
70
|
-
}
|
|
71
|
-
"teamsAppTabId": "1542629c-01b3-4a6d-8f76-1938b779e48d"
|
|
70
|
+
}
|
|
72
71
|
}
|
|
73
72
|
]
|
|
74
73
|
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# viva engage community list
|
|
6
|
+
|
|
7
|
+
Lists all Viva Engage communities
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 viva engage community list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
<Global />
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
Lists all Viva Engage communities
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
m365 viva engage community list
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
<Tabs>
|
|
30
|
+
<TabItem value="JSON">
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
"id": "eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9",
|
|
36
|
+
"displayName": "All Company",
|
|
37
|
+
"description": "This is the default group for everyone in the network",
|
|
38
|
+
"privacy": "public",
|
|
39
|
+
"groupId": "7c99afd7-9f3a-49e2-b105-4ee36314350c"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
</TabItem>
|
|
45
|
+
<TabItem value="Text">
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
id displayName privacy
|
|
49
|
+
------------------------------------------------ ----------- -------
|
|
50
|
+
eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9 All Company public
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
</TabItem>
|
|
54
|
+
<TabItem value="CSV">
|
|
55
|
+
|
|
56
|
+
```csv
|
|
57
|
+
id,displayName,description,privacy,groupId
|
|
58
|
+
eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9,All Company,This is the default group for everyone in the network,public,7c99afd7-9f3a-49e2-b105-4ee36314350c
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
</TabItem>
|
|
62
|
+
<TabItem value="Markdown">
|
|
63
|
+
|
|
64
|
+
```md
|
|
65
|
+
# viva engage community list
|
|
66
|
+
|
|
67
|
+
Date: 8/29/2024
|
|
68
|
+
|
|
69
|
+
## All Company (eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9)
|
|
70
|
+
|
|
71
|
+
Property | Value
|
|
72
|
+
---------|-------
|
|
73
|
+
id | eyJfdHlwZSI6Ikdyb3VwIiwiaWQiOiI0NzY5MTM1ODIwOSJ9
|
|
74
|
+
displayName | All Company
|
|
75
|
+
description | This is the default group for everyone in the network
|
|
76
|
+
privacy | public
|
|
77
|
+
groupId | 7c99afd7-9f3a-49e2-b105-4ee36314350c
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
</TabItem>
|
|
81
|
+
</Tabs>
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { cli } from '../../../cli/cli.js';
|
|
2
|
-
import { settingsNames } from '../../../settingsNames.js';
|
|
3
|
-
import { browserUtil } from '../../../utils/browserUtil.js';
|
|
4
|
-
import AnonymousCommand from '../../base/AnonymousCommand.js';
|
|
5
|
-
import commands from '../commands.js';
|
|
6
|
-
class CliReconsentCommand extends AnonymousCommand {
|
|
7
|
-
get name() {
|
|
8
|
-
return commands.RECONSENT;
|
|
9
|
-
}
|
|
10
|
-
get description() {
|
|
11
|
-
return 'Returns URL to open in the browser to re-consent CLI for Microsoft 365 Microsoft Entra permissions';
|
|
12
|
-
}
|
|
13
|
-
async commandAction(logger) {
|
|
14
|
-
const url = `https://login.microsoftonline.com/${cli.getTenant()}/oauth2/authorize?client_id=${cli.getClientId()}&response_type=code&prompt=admin_consent`;
|
|
15
|
-
if (cli.getSettingWithDefaultValue(settingsNames.autoOpenLinksInBrowser, false) === false) {
|
|
16
|
-
await logger.log(`To re-consent your Microsoft Entra application, navigate in your web browser to ${url}.`);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
await logger.log(`Opening the following page in your browser: ${url}`);
|
|
20
|
-
try {
|
|
21
|
-
await browserUtil.open(url);
|
|
22
|
-
}
|
|
23
|
-
catch (err) {
|
|
24
|
-
this.handleRejectedODataJsonPromise(err);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export default new CliReconsentCommand();
|
|
29
|
-
//# sourceMappingURL=cli-reconsent.js.map
|