@pnp/cli-microsoft365 6.3.0 → 6.4.0-beta.140530d
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/.devcontainer/Dockerfile +5 -2
- package/.eslintrc.js +4 -0
- package/Dockerfile +6 -3
- package/README.md +12 -1
- package/dist/Auth.js +1 -3
- package/dist/Command.js +1 -0
- package/dist/m365/aad/commands/user/user-get.js +3 -0
- package/dist/m365/aad/commands/user/user-license-remove.js +2 -1
- package/dist/m365/aad/commands/user/user-recyclebinitem-restore.js +2 -9
- package/dist/m365/aad/commands/user/user-set.js +3 -0
- package/dist/m365/aad/commands/user/user-signin-list.js +3 -0
- package/dist/m365/file/commands/file-list.js +5 -1
- package/dist/m365/flow/commands/flow-disable.js +9 -2
- package/dist/m365/flow/commands/flow-enable.js +9 -2
- package/dist/m365/flow/commands/flow-get.js +9 -2
- package/dist/m365/flow/commands/flow-list.js +1 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -2
- package/dist/m365/flow/commands/owner/owner-ensure.js +147 -0
- package/dist/m365/flow/commands/owner/owner-list.js +89 -0
- package/dist/m365/flow/commands/owner/owner-remove.js +147 -0
- package/dist/m365/flow/commands/run/run-cancel.js +9 -2
- package/dist/m365/flow/commands/run/run-list.js +5 -2
- package/dist/m365/flow/commands.js +3 -0
- package/dist/m365/planner/commands/roster/roster-member-add.js +3 -0
- package/dist/m365/planner/commands/roster/roster-member-get.js +98 -0
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/purview/commands/retentionevent/retentionevent-add.js +138 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +48 -14
- package/dist/m365/purview/commands.js +1 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.0-beta.1.js +59 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +43 -29
- package/dist/m365/spo/commands/commandset/commandset-add.js +138 -0
- package/dist/m365/spo/commands/commandset/commandset-get.js +128 -0
- package/dist/m365/spo/commands/commandset/commandset-list.js +77 -0
- package/dist/m365/spo/commands/commandset/commandset-remove.js +146 -0
- package/dist/m365/spo/commands/commandset/commandset-set.js +182 -0
- package/dist/m365/spo/commands/customaction/customaction-get.js +27 -7
- package/dist/m365/spo/commands/file/file-move.js +1 -1
- package/dist/m365/spo/commands/group/group-member-add.js +54 -95
- package/dist/m365/spo/commands/list/list-add.js +11 -8
- package/dist/m365/spo/commands/list/list-set.js +3 -3
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +5 -4
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +5 -1
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +118 -0
- package/dist/m365/spo/commands/term/term-get.js +68 -48
- package/dist/m365/spo/commands/user/user-ensure.js +105 -0
- package/dist/m365/spo/commands.js +7 -0
- package/dist/m365/todo/commands/task/task-add.js +35 -3
- package/dist/utils/aadGroup.js +18 -0
- package/dist/utils/aadUser.js +37 -0
- package/dist/utils/md.js +7 -0
- package/dist/utils/spo.js +32 -0
- package/docs/docs/cmd/aad/app/app-add.md +3 -3
- package/docs/docs/cmd/aad/approleassignment/approleassignment-add.md +5 -5
- package/docs/docs/cmd/aad/approleassignment/approleassignment-remove.md +3 -3
- package/docs/docs/cmd/aad/user/user-remove.md +1 -1
- package/docs/docs/cmd/cli/completion/completion-clink-update.md +4 -4
- package/docs/docs/cmd/flow/owner/owner-ensure.md +61 -0
- package/docs/docs/cmd/flow/owner/owner-list.md +90 -0
- package/docs/docs/cmd/flow/owner/owner-remove.md +67 -0
- package/docs/docs/cmd/flow/run/run-list.md +28 -0
- package/docs/docs/cmd/onenote/page/page-list.md +1 -1
- package/docs/docs/cmd/outlook/mail/mail-send.md +7 -3
- package/docs/docs/cmd/outlook/message/message-get.md +143 -0
- package/docs/docs/cmd/outlook/message/message-list.md +119 -0
- package/docs/docs/cmd/outlook/message/message-move.md +4 -0
- package/docs/docs/cmd/outlook/report/report-mailactivitycounts.md +40 -0
- package/docs/docs/cmd/outlook/report/report-mailactivityusercounts.md +40 -0
- package/docs/docs/cmd/outlook/report/report-mailactivityuserdetail.md +45 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageappsusercounts.md +43 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageusercounts.md +44 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageuserdetail.md +48 -0
- package/docs/docs/cmd/outlook/report/report-mailappusageversionsusercounts.md +41 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagedetail.md +49 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagemailboxcount.md +37 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagequotastatusmailboxcounts.md +40 -0
- package/docs/docs/cmd/outlook/report/report-mailboxusagestorage.md +36 -0
- package/docs/docs/cmd/outlook/room/room-list.md +81 -0
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +58 -0
- package/docs/docs/cmd/planner/plan/plan-add.md +3 -3
- package/docs/docs/cmd/planner/plan/plan-set.md +73 -7
- package/docs/docs/cmd/planner/roster/roster-add.md +16 -1
- package/docs/docs/cmd/planner/roster/roster-member-get.md +87 -0
- package/docs/docs/cmd/planner/task/task-add.md +230 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-add.md +55 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-list.md +55 -0
- package/docs/docs/cmd/planner/task/task-checklistitem-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-get.md +131 -0
- package/docs/docs/cmd/planner/task/task-list.md +92 -0
- package/docs/docs/cmd/planner/task/task-reference-add.md +46 -0
- package/docs/docs/cmd/planner/task/task-reference-list.md +46 -0
- package/docs/docs/cmd/planner/task/task-reference-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-remove.md +4 -0
- package/docs/docs/cmd/planner/task/task-set.md +230 -0
- package/docs/docs/cmd/planner/tenant/tenant-settings-list.md +55 -0
- package/docs/docs/cmd/planner/tenant/tenant-settings-set.md +55 -0
- package/docs/docs/cmd/pp/card/card-get.md +2 -2
- package/docs/docs/cmd/pp/card/card-list.md +2 -2
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.md +149 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.md +7 -7
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.md +12 -0
- package/docs/docs/cmd/skype/report/report-activitycounts.md +38 -0
- package/docs/docs/cmd/skype/report/report-activityusercounts.md +38 -0
- package/docs/docs/cmd/skype/report/report-activityuserdetail.md +67 -0
- package/docs/docs/cmd/spfx/project/project-doctor.md +3 -3
- package/docs/docs/cmd/spfx/project/project-externalize.md +3 -3
- package/docs/docs/cmd/spfx/project/project-permissions-grant.md +21 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.md +3 -3
- package/docs/docs/cmd/spfx/spfx-doctor.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-get.md +6 -6
- package/docs/docs/cmd/spo/cdn/cdn-origin-add.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-origin-remove.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-list.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-policy-set.md +3 -3
- package/docs/docs/cmd/spo/cdn/cdn-set.md +3 -3
- package/docs/docs/cmd/spo/commandset/commandset-add.md +159 -0
- package/docs/docs/cmd/spo/commandset/commandset-get.md +149 -0
- package/docs/docs/cmd/spo/commandset/commandset-list.md +109 -0
- package/docs/docs/cmd/spo/commandset/commandset-remove.md +55 -0
- package/docs/docs/cmd/spo/commandset/commandset-set.md +71 -0
- package/docs/docs/cmd/spo/customaction/customaction-get.md +113 -11
- package/docs/docs/cmd/spo/externaluser/externaluser-list.md +2 -0
- package/docs/docs/cmd/spo/group/group-member-add.md +26 -4
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.md +2 -0
- package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.md +2 -0
- package/docs/docs/cmd/spo/homesite/homesite-remove.md +2 -0
- package/docs/docs/cmd/spo/homesite/homesite-set.md +2 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +2 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +2 -0
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +3 -3
- package/docs/docs/cmd/spo/list/list-add.md +2 -2
- package/docs/docs/cmd/spo/list/list-set.md +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-add.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.md +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.md +1 -1
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +3 -3
- package/docs/docs/cmd/spo/navigation/navigation-node-set.md +2 -2
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-add.md +2 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +2 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +2 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +2 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-remove.md +2 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-set.md +3 -3
- package/docs/docs/cmd/spo/site/site-appcatalog-add.md +2 -0
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.md +3 -3
- package/docs/docs/cmd/spo/site/site-commsite-enable.md +2 -0
- package/docs/docs/cmd/spo/site/site-list.md +3 -3
- package/docs/docs/cmd/spo/site/site-remove.md +3 -3
- package/docs/docs/cmd/spo/site/site-rename.md +3 -3
- package/docs/docs/cmd/spo/site/site-set.md +5 -5
- package/docs/docs/cmd/spo/storageentity/storageentity-remove.md +3 -3
- package/docs/docs/cmd/spo/storageentity/storageentity-set.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-appcatalog-add.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-appcatalogurl-get.md +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.md +142 -0
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-list.md +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-remove.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.md +3 -3
- package/docs/docs/cmd/spo/tenant/tenant-settings-list.md +2 -0
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.md +28 -26
- package/docs/docs/cmd/spo/term/term-add.md +3 -3
- package/docs/docs/cmd/spo/term/term-get.md +3 -3
- package/docs/docs/cmd/spo/term/term-group-add.md +2 -0
- package/docs/docs/cmd/spo/term/term-group-get.md +2 -0
- package/docs/docs/cmd/spo/term/term-group-list.md +2 -0
- package/docs/docs/cmd/spo/term/term-list.md +3 -1
- package/docs/docs/cmd/spo/term/term-set-add.md +3 -3
- package/docs/docs/cmd/spo/term/term-set-get.md +2 -0
- package/docs/docs/cmd/spo/term/term-set-list.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-apply.md +3 -3
- package/docs/docs/cmd/spo/theme/theme-get.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-list.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-remove.md +2 -0
- package/docs/docs/cmd/spo/theme/theme-set.md +3 -3
- package/docs/docs/cmd/spo/user/user-ensure.md +109 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +1 -1
- package/docs/docs/cmd/teams/channel/channel-member-add.md +2 -2
- package/docs/docs/cmd/teams/message/message-get.md +39 -4
- package/docs/docs/cmd/teams/message/message-list.md +41 -6
- package/docs/docs/cmd/teams/message/message-reply-list.md +39 -4
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-list.md +20 -2
- package/docs/docs/cmd/teams/messagingsettings/messagingsettings-set.md +8 -8
- package/docs/docs/cmd/teams/report/report-deviceusagedistributionusercounts.md +12 -5
- package/docs/docs/cmd/teams/report/report-deviceusageusercounts.md +13 -6
- package/docs/docs/cmd/teams/report/report-deviceusageuserdetail.md +14 -7
- package/docs/docs/cmd/teams/report/report-directroutingcalls.md +13 -6
- package/docs/docs/cmd/teams/report/report-pstncalls.md +13 -6
- package/docs/docs/cmd/teams/report/report-useractivitycounts.md +13 -6
- package/docs/docs/cmd/teams/report/report-useractivityusercounts.md +13 -6
- package/docs/docs/cmd/teams/report/report-useractivityuserdetail.md +13 -6
- package/docs/docs/cmd/teams/tab/tab-add.md +16 -0
- package/docs/docs/cmd/teams/tab/tab-get.md +17 -0
- package/docs/docs/cmd/teams/tab/tab-list.md +19 -0
- package/docs/docs/cmd/teams/team/team-add.md +77 -8
- package/docs/docs/cmd/teams/team/team-app-list.md +18 -2
- package/docs/docs/cmd/teams/team/team-archive.md +2 -2
- package/docs/docs/cmd/teams/team/team-clone.md +8 -8
- package/docs/docs/cmd/teams/team/team-get.md +34 -4
- package/docs/docs/cmd/teams/team/team-list.md +34 -3
- package/docs/docs/cmd/teams/team/team-remove.md +3 -3
- package/docs/docs/cmd/teams/team/team-set.md +8 -8
- package/docs/docs/cmd/teams/team/team-unarchive.md +3 -2
- package/docs/docs/cmd/teams/user/user-app-add.md +3 -3
- package/docs/docs/cmd/teams/user/user-app-list.md +18 -2
- package/docs/docs/cmd/teams/user/user-app-remove.md +4 -4
- package/docs/docs/cmd/teams/user/user-list.md +21 -4
- package/docs/docs/cmd/todo/task/task-add.md +47 -2
- package/npm-shrinkwrap.json +279 -194
- package/package.json +15 -14
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# spo commandset get
|
|
2
|
+
|
|
3
|
+
Get a ListView Command Set that is added to a site.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo commandset get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: Url of the site.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: The title of the ListView Command Set. Specify either `title`, `id` or `clientSideComponentId`.
|
|
18
|
+
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The id of the ListView Command Set. Specify either `title`, `id` or `clientSideComponentId`.
|
|
21
|
+
|
|
22
|
+
`-c, --clientSideComponentId [clientSideComponentId]`
|
|
23
|
+
: The id of the ListView Command Set. Specify either `title`, `id` or `clientSideComponentId`.
|
|
24
|
+
|
|
25
|
+
`-s, --scope [scope]`
|
|
26
|
+
: Scope of the ListView Command Set. Allowed values: `Site`, `Web`, `All`. Defaults to `All`.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Remarks
|
|
31
|
+
|
|
32
|
+
If the command finds multiple command sets with the specified title, it will prompt you to disambiguate which command set it should use, listing the discovered IDs.
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
Retrieves a ListView Command Set by title.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
m365 spo commandset get --title "Some customizer" --webUrl https://contoso.sharepoint.com/sites/sales
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Retrieves a ListView Command Set by id with scope 'Web'.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 spo commandset get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales -scope Web
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Retrieves a ListView Command Set by clientSideComponentId with scope 'Site'.
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo commandset get --clientSideComponentId c1cbd896-5140-428d-8b0c-4873be19f5ac --webUrl https://contoso.sharepoint.com/sites/sales --scope Site
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Response
|
|
55
|
+
|
|
56
|
+
=== "JSON"
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"ClientSideComponentId": "c1cbd896-5140-428d-8b0c-4873be19f5ac",
|
|
61
|
+
"ClientSideComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
|
|
62
|
+
"CommandUIExtension": null,
|
|
63
|
+
"Description": null,
|
|
64
|
+
"Group": null,
|
|
65
|
+
"HostProperties": "",
|
|
66
|
+
"Id": "9a0674de-2f3d-4a26-ba79-62b460ddd327",
|
|
67
|
+
"ImageUrl": null,
|
|
68
|
+
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
|
|
69
|
+
"Name": "{9a0674de-2f3d-4a26-ba79-62b460ddd327}",
|
|
70
|
+
"RegistrationId": "100",
|
|
71
|
+
"RegistrationType": 1,
|
|
72
|
+
"Rights": {
|
|
73
|
+
"High": "0",
|
|
74
|
+
"Low": "0"
|
|
75
|
+
},
|
|
76
|
+
"Scope": 3,
|
|
77
|
+
"ScriptBlock": null,
|
|
78
|
+
"ScriptSrc": null,
|
|
79
|
+
"Sequence": 65536,
|
|
80
|
+
"Title": "Notification",
|
|
81
|
+
"Url": null,
|
|
82
|
+
"VersionOfUserCustomAction": "1.0.1.0"
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
=== "Text"
|
|
87
|
+
|
|
88
|
+
```text
|
|
89
|
+
ClientSideComponentId : c1cbd896-5140-428d-8b0c-4873be19f5ac
|
|
90
|
+
ClientSideComponentProperties: {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
91
|
+
CommandUIExtension : null
|
|
92
|
+
Description : null
|
|
93
|
+
Group : null
|
|
94
|
+
HostProperties :
|
|
95
|
+
Id : 9a0674de-2f3d-4a26-ba79-62b460ddd327
|
|
96
|
+
ImageUrl : null
|
|
97
|
+
Location : ClientSideExtension.ListViewCommandSet.CommandBar
|
|
98
|
+
Name : {9a0674de-2f3d-4a26-ba79-62b460ddd327}
|
|
99
|
+
RegistrationId : 100
|
|
100
|
+
RegistrationType : 1
|
|
101
|
+
Rights : {"High":"0","Low":"0"}
|
|
102
|
+
Scope : 3
|
|
103
|
+
ScriptBlock : null
|
|
104
|
+
ScriptSrc : null
|
|
105
|
+
Sequence : 65536
|
|
106
|
+
Title : Notification
|
|
107
|
+
Url : null
|
|
108
|
+
VersionOfUserCustomAction : 1.0.1.0
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
=== "CSV"
|
|
112
|
+
|
|
113
|
+
```csv
|
|
114
|
+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
115
|
+
c1cbd896-5140-428d-8b0c-4873be19f5ac,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",,,,,9a0674de-2f3d-4a26-ba79-62b460ddd327,,ClientSideExtension.ListViewCommandSet.CommandBar,{9a0674de-2f3d-4a26-ba79-62b460ddd327},100,1,"{""High"":""0"",""Low"":""0""}",3,,,65536,Notification,,1.0.1.0
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
=== "Markdown"
|
|
119
|
+
|
|
120
|
+
```md
|
|
121
|
+
# spo commandset get --webUrl "https://contoso.sharepoint.com/sites/sales" --id "9a0674de-2f3d-4a26-ba79-62b460ddd327"
|
|
122
|
+
|
|
123
|
+
Date: 27/02/2023
|
|
124
|
+
|
|
125
|
+
## Notification (9a0674de-2f3d-4a26-ba79-62b460ddd327)
|
|
126
|
+
|
|
127
|
+
Property | Value
|
|
128
|
+
---------|-------
|
|
129
|
+
ClientSideComponentId | c1cbd896-5140-428d-8b0c-4873be19f5ac
|
|
130
|
+
ClientSideComponentProperties | {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
131
|
+
CommandUIExtension | null
|
|
132
|
+
Description | null
|
|
133
|
+
Group | null
|
|
134
|
+
HostProperties |
|
|
135
|
+
Id | 9a0674de-2f3d-4a26-ba79-62b460ddd327
|
|
136
|
+
ImageUrl | null
|
|
137
|
+
Location | ClientSideExtension.ListViewCommandSet.CommandBar
|
|
138
|
+
Name | {9a0674de-2f3d-4a26-ba79-62b460ddd327}
|
|
139
|
+
RegistrationId | 100
|
|
140
|
+
RegistrationType | 1
|
|
141
|
+
Rights | {"High":"0","Low":"0"}
|
|
142
|
+
Scope | 3
|
|
143
|
+
ScriptBlock | null
|
|
144
|
+
ScriptSrc | null
|
|
145
|
+
Sequence | 65536
|
|
146
|
+
Title | Notification
|
|
147
|
+
Url | null
|
|
148
|
+
VersionOfUserCustomAction | 1.0.1.0
|
|
149
|
+
```
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# spo commandset list
|
|
2
|
+
|
|
3
|
+
Get a list of ListView Command Sets that are added to a site.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo commandset list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: The url of the site.
|
|
15
|
+
|
|
16
|
+
`-s, --scope [scope]`
|
|
17
|
+
: Scope of the ListView Command Sets. Allowed values `Site`, `Web`, `All`. Default to `All`
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Examples
|
|
22
|
+
|
|
23
|
+
Retrieves a list of ListView Command Sets.
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Response
|
|
30
|
+
|
|
31
|
+
=== "JSON"
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
"ClientSideComponentId": "b206e130-1a5b-4ae7-86a7-4f91c9924d0a",
|
|
37
|
+
"ClientSideComponentProperties": "",
|
|
38
|
+
"CommandUIExtension": null,
|
|
39
|
+
"Description": null,
|
|
40
|
+
"Group": null,
|
|
41
|
+
"HostProperties": "",
|
|
42
|
+
"Id": "e7000aef-f756-4997-9420-01cc84f9ac9c",
|
|
43
|
+
"ImageUrl": null,
|
|
44
|
+
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
|
|
45
|
+
"Name": "{e7000aef-f756-4997-9420-01cc84f9ac9c}",
|
|
46
|
+
"RegistrationId": "100",
|
|
47
|
+
"RegistrationType": 0,
|
|
48
|
+
"Rights": {
|
|
49
|
+
"High": 0,
|
|
50
|
+
"Low": 0
|
|
51
|
+
},
|
|
52
|
+
"Scope": 2,
|
|
53
|
+
"ScriptBlock": null,
|
|
54
|
+
"ScriptSrc": null,
|
|
55
|
+
"Sequence": 0,
|
|
56
|
+
"Title": "test",
|
|
57
|
+
"Url": null,
|
|
58
|
+
"VersionOfUserCustomAction": "16.0.1.0"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
=== "Text"
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
Name Location Scope Id
|
|
67
|
+
-------------------------------------- ------------------------------------------------- ----- ------------------------------------
|
|
68
|
+
{e7000aef-f756-4997-9420-01cc84f9ac9c} ClientSideExtension.ListViewCommandSet.CommandBar 2 e7000aef-f756-4997-9420-01cc84f9ac9c
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
=== "CSV"
|
|
72
|
+
|
|
73
|
+
```csv
|
|
74
|
+
Name,Location,Scope,Id
|
|
75
|
+
{e7000aef-f756-4997-9420-01cc84f9ac9c},ClientSideExtension.ListViewCommandSet.CommandBar,2,e7000aef-f756-4997-9420-01cc84f9ac9c
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
=== "Markdown"
|
|
79
|
+
|
|
80
|
+
```md
|
|
81
|
+
# spo commandset list --webUrl "https://ordidev.sharepoint.com"
|
|
82
|
+
|
|
83
|
+
Date: 20/2/2023
|
|
84
|
+
|
|
85
|
+
## test (e7000aef-f756-4997-9420-01cc84f9ac9c)
|
|
86
|
+
|
|
87
|
+
Property | Value
|
|
88
|
+
---------|-------
|
|
89
|
+
ClientSideComponentId | b206e130-1a5b-4ae7-86a7-4f91c9924d0a
|
|
90
|
+
ClientSideComponentProperties |
|
|
91
|
+
CommandUIExtension | null
|
|
92
|
+
Description | null
|
|
93
|
+
Group | null
|
|
94
|
+
HostProperties |
|
|
95
|
+
Id | e7000aef-f756-4997-9420-01cc84f9ac9c
|
|
96
|
+
ImageUrl | null
|
|
97
|
+
Location | ClientSideExtension.ListViewCommandSet.CommandBar
|
|
98
|
+
Name | {e7000aef-f756-4997-9420-01cc84f9ac9c}
|
|
99
|
+
RegistrationId | 100
|
|
100
|
+
RegistrationType | 0
|
|
101
|
+
Rights | {"High":0,"Low":0}
|
|
102
|
+
Scope | 2
|
|
103
|
+
ScriptBlock | null
|
|
104
|
+
ScriptSrc | null
|
|
105
|
+
Sequence | 0
|
|
106
|
+
Title | test
|
|
107
|
+
Url | null
|
|
108
|
+
VersionOfUserCustomAction | 16.0.1.0
|
|
109
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# spo commandset remove
|
|
2
|
+
|
|
3
|
+
Remove a ListView Command Set that is added to a site.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo commandset remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: Url of the site.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: The title of the ListView Command Set. Specify either `title`, `id` or `clientSideComponentId`.
|
|
18
|
+
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The id of the ListView Command Set. Specify either `title`, `id` or `clientSideComponentId`.
|
|
21
|
+
|
|
22
|
+
`-c, --clientSideComponentId [clientSideComponentId]`
|
|
23
|
+
: The id of the ListView Command Set. Specify either `title`, `id` or `clientSideComponentId`.
|
|
24
|
+
|
|
25
|
+
`-s, --scope [scope]`
|
|
26
|
+
: Scope of the ListView Command Set. Allowed values: `Site`, `Web`, `All`. Defaults to `All`.
|
|
27
|
+
|
|
28
|
+
`--confirm`
|
|
29
|
+
: Don't prompt for confirming removal of the ListView Command Set
|
|
30
|
+
|
|
31
|
+
--8<-- "docs/cmd/_global.md"
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Remove a ListView Command Set by title.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo commandset remove --title "Some customizer" --webUrl https://contoso.sharepoint.com/sites/sales
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Remove a ListView Command Set by id.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo commandset remove --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Remove a ListView Command Set by clientSideComponentId.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo commandset remove --clientSideComponentId 7096cded-b83d-4eab-96f0-df477ed7c0bc --webUrl https://contoso.sharepoint.com/sites/sales
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# spo commandset set
|
|
2
|
+
|
|
3
|
+
Updates a ListView Command Set on a site.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo commandset set [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: The site to update the ListView Command Set on.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: The title of the ListView Command Set to update. Specify either `title`, `id`or `clientSideComponentId`.
|
|
18
|
+
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The id of the ListView Command Set to update. Specify either `title`, `id`or `clientSideComponentId`.
|
|
21
|
+
|
|
22
|
+
`-c, --clientSideComponentId [clientSideComponentId]`
|
|
23
|
+
: The Client Side Component Id (GUID) of the ListView Command Set to update. Specify either `title`, `id`or `clientSideComponentId`.
|
|
24
|
+
|
|
25
|
+
`--newTitle [newTitle]`
|
|
26
|
+
: The new title of the ListView Command Set.
|
|
27
|
+
|
|
28
|
+
`-l, --listType [listType]`
|
|
29
|
+
: The list or library type to register the Command Set on. Allowed values `List`, `Library` or `SitePages`.
|
|
30
|
+
|
|
31
|
+
`--clientSideComponentProperties [clientSideComponentProperties]`
|
|
32
|
+
: The Client Side Component properties of the ListView Command Set.
|
|
33
|
+
|
|
34
|
+
`-s, --scope [scope]`
|
|
35
|
+
: The scope where to lookup the ListView Command Set: at site level or web level. Allowed values: `Site`, `Web`, `All`. Defaults to `All`.
|
|
36
|
+
|
|
37
|
+
`--location [location]`
|
|
38
|
+
: The location of the ListView Command Set. Allowed values `ContextMenu`, `CommandBar` or `Both`.
|
|
39
|
+
|
|
40
|
+
--8<-- "docs/cmd/_global.md"
|
|
41
|
+
|
|
42
|
+
## Remarks
|
|
43
|
+
|
|
44
|
+
Running this command from the Windows Command Shell (cmd.exe) or PowerShell for Windows OS XP, 7, 8, 8.1 without bash installed might require additional formatting for command options that have JSON, XML or JavaScript values because the command shell treat quotes differently. For example, this is how a ListView Command Set can be created from the Windows cmd.exe:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo commandset set --webUrl https://contoso.sharepoint.com/sites/test --title "CLI Commandset" --location "Both" --listType "List" --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Note, how the clientSideComponentProperties option has escaped double quotes `'{\"testMessage\":\"Test message\"}'` compared to execution from bash `'{"testMessage":"Test message"}'`.
|
|
51
|
+
|
|
52
|
+
!!! warning "Escaping JSON in PowerShell"
|
|
53
|
+
When using the `--clientSideComponentProperties` option it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.md#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.md#passing-complex-content-into-cli-options) instead.
|
|
54
|
+
|
|
55
|
+
## Examples
|
|
56
|
+
|
|
57
|
+
Updates the title and location of a ListView Command Set on the sales site.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
m365 spo commandset set --clientSideComponentId 799883f5-7962-4384-a10a-105adaec6ffc --newTitle "Some new title" --location Both --webUrl https://contoso.sharepoint.com/sites/sales --scope Site
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Updates a ListView Command Set on the sales site with some properties.
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
m365 spo commandset set --title "Some customizer" --clientSideComponentProperties '{ "someProperty": "Some value" }' --webUrl https://contoso.sharepoint.com/sites/sales --scope Site
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Response
|
|
70
|
+
|
|
71
|
+
The command won't return a response on success.
|
|
@@ -11,10 +11,13 @@ m365 spo customaction get [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
|
-
: ID of the user custom action to retrieve information for. Specify either `id` or `
|
|
14
|
+
: ID of the user custom action to retrieve information for. Specify either `id`, `title` or `clientSideComponentId`
|
|
15
15
|
|
|
16
16
|
`-t, --title [title]`
|
|
17
|
-
: Title of the user custom action to retrieve information for. Specify either `id` or `
|
|
17
|
+
: Title of the user custom action to retrieve information for. Specify either `id`, `title` or `clientSideComponentId`
|
|
18
|
+
|
|
19
|
+
`-c, --clientSideComponentId [clientSideComponentId]`
|
|
20
|
+
: clientSideComponentId of the user custom action to retrieve information for. Specify either `id`, `title` or `clientSideComponentId`
|
|
18
21
|
|
|
19
22
|
`-u, --webUrl <webUrl>`
|
|
20
23
|
: Url of the site or site collection to retrieve the custom action from
|
|
@@ -26,34 +29,133 @@ m365 spo customaction get [options]
|
|
|
26
29
|
|
|
27
30
|
## Remarks
|
|
28
31
|
|
|
29
|
-
If the command finds multiple user custom actions with the specified title
|
|
32
|
+
If the command finds multiple user custom actions with the specified `title` or `clientSideComponentId`, it will prompt you to disambiguate which user custom action it should get, listing the discovered IDs.
|
|
30
33
|
|
|
31
34
|
## Examples
|
|
32
35
|
|
|
33
|
-
Return details about the user custom action
|
|
36
|
+
Return details about the user custom action based on the id and a given url
|
|
34
37
|
|
|
35
38
|
```sh
|
|
36
39
|
m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test
|
|
37
40
|
```
|
|
38
41
|
|
|
39
|
-
Return details about the user custom action
|
|
42
|
+
Return details about the user custom action based on the title and a given url
|
|
40
43
|
|
|
41
44
|
```sh
|
|
42
45
|
m365 spo customaction get --title "YourAppCustomizer" --webUrl https://contoso.sharepoint.com/sites/test
|
|
43
46
|
```
|
|
44
47
|
|
|
45
|
-
Return details about the user custom action
|
|
48
|
+
Return details about the user custom action based on the clientSideComponentId and a given url
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo customaction get --clientSideComponentId "34a019f9-6198-4053-a3b6-fbdea9a107fd" --webUrl https://contoso.sharepoint.com/sites/test
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Return details about the user custom action based on the id and a given url and the scope
|
|
46
55
|
|
|
47
56
|
```sh
|
|
48
|
-
m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --scope Site
|
|
57
|
+
m365 spo customaction get --id "058140e3-0e37-44fc-a1d3-79c487d371a3" --webUrl https://contoso.sharepoint.com/sites/test --scope Site
|
|
49
58
|
```
|
|
50
59
|
|
|
51
|
-
Return details about the user custom action
|
|
60
|
+
Return details about the user custom action based on the id and a given url and the scope
|
|
52
61
|
|
|
53
62
|
```sh
|
|
54
|
-
m365 spo customaction get --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --webUrl https://contoso.sharepoint.com/sites/test --scope Web
|
|
63
|
+
m365 spo customaction get --id "058140e3-0e37-44fc-a1d3-79c487d371a3" --webUrl https://contoso.sharepoint.com/sites/test --scope Web
|
|
55
64
|
```
|
|
56
65
|
|
|
57
|
-
|
|
66
|
+
Return details about the user custom action based on the id and a given url and the scope
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
m365 spo customaction get --id "058140e3-0e37-44fc-a1d3-79c487d371a3" --webUrl https://contoso.sharepoint.com/sites/test --scope Web
|
|
70
|
+
```
|
|
58
71
|
|
|
59
|
-
|
|
72
|
+
## Response
|
|
73
|
+
|
|
74
|
+
=== "JSON"
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"ClientSideComponentId": "34a019f9-6198-4053-a3b6-fbdea9a107fd",
|
|
79
|
+
"ClientSideComponentProperties": "{\"sampleTextOne\":\"One item is selected in the list.\", \"sampleTextTwo\":\"This command is always visible.\"}",
|
|
80
|
+
"CommandUIExtension": null,
|
|
81
|
+
"Description": null,
|
|
82
|
+
"Group": null,
|
|
83
|
+
"Id": "158cb0d1-8703-4a36-866d-84aed8233bd3",
|
|
84
|
+
"ImageUrl": null,
|
|
85
|
+
"Location": "ClientSideExtension.ListViewCommandSet.CommandBar",
|
|
86
|
+
"Name": "{158cb0d1-8703-4a36-866d-84aed8233bd3}",
|
|
87
|
+
"RegistrationId": "100",
|
|
88
|
+
"RegistrationType": 1,
|
|
89
|
+
"Rights": "{\"High\":0,\"Low\":0}",
|
|
90
|
+
"Scope": "Web",
|
|
91
|
+
"ScriptBlock": null,
|
|
92
|
+
"ScriptSrc": null,
|
|
93
|
+
"Sequence": 65536,
|
|
94
|
+
"Title": "ExtensionTraining",
|
|
95
|
+
"Url": null,
|
|
96
|
+
"VersionOfUserCustomAction": "1.0.1.0"
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
=== "Text"
|
|
101
|
+
|
|
102
|
+
```text
|
|
103
|
+
ClientSideComponentId : 34a019f9-6198-4053-a3b6-fbdea9a107fd
|
|
104
|
+
ClientSideComponentProperties: {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
105
|
+
CommandUIExtension : null
|
|
106
|
+
Description : null
|
|
107
|
+
Group : null
|
|
108
|
+
Id : 158cb0d1-8703-4a36-866d-84aed8233bd3
|
|
109
|
+
ImageUrl : null
|
|
110
|
+
Location : ClientSideExtension.ListViewCommandSet.CommandBar
|
|
111
|
+
Name : {158cb0d1-8703-4a36-866d-84aed8233bd3}
|
|
112
|
+
RegistrationId : 100
|
|
113
|
+
RegistrationType : 1
|
|
114
|
+
Rights : {"High":0,"Low":0}
|
|
115
|
+
Scope : Web
|
|
116
|
+
ScriptBlock : null
|
|
117
|
+
ScriptSrc : null
|
|
118
|
+
Sequence : 65536
|
|
119
|
+
Title : ExtensionTraining
|
|
120
|
+
Url : null
|
|
121
|
+
VersionOfUserCustomAction : 1.0.1.0
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
=== "CSV"
|
|
125
|
+
|
|
126
|
+
```csv
|
|
127
|
+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
128
|
+
34a019f9-6198-4053-a3b6-fbdea9a107fd,"{""sampleTextOne"":""One item is selected in the list."", ""sampleTextTwo"":""This command is always visible.""}",,,,158cb0d1-8703-4a36-866d-84aed8233bd3,,ClientSideExtension.ListViewCommandSet.CommandBar,{158cb0d1-8703-4a36-866d-84aed8233bd3},100,1,"{""High"":0,""Low"":0}",Web,,,65536,ExtensionTraining,,1.0.1.0
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
=== "Markdown"
|
|
132
|
+
|
|
133
|
+
```md
|
|
134
|
+
# spo customaction get --webUrl "https://contoso.sharepoint.com" --clientSideComponentId "34a019f9-6198-4053-a3b6-fbdea9a107fd" --scope "Web"
|
|
135
|
+
|
|
136
|
+
Date: 27/1/2023
|
|
137
|
+
|
|
138
|
+
## ExtensionTraining (158cb0d1-8703-4a36-866d-84aed8233bd3)
|
|
139
|
+
|
|
140
|
+
Property | Value
|
|
141
|
+
---------|-------
|
|
142
|
+
ClientSideComponentId | 34a019f9-6198-4053-a3b6-fbdea9a107fd
|
|
143
|
+
ClientSideComponentProperties | {"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}
|
|
144
|
+
CommandUIExtension | null
|
|
145
|
+
Description | null
|
|
146
|
+
Group | null
|
|
147
|
+
Id | 158cb0d1-8703-4a36-866d-84aed8233bd3
|
|
148
|
+
ImageUrl | null
|
|
149
|
+
Location | ClientSideExtension.ListViewCommandSet.CommandBar
|
|
150
|
+
Name | {158cb0d1-8703-4a36-866d-84aed8233bd3}
|
|
151
|
+
RegistrationId | 100
|
|
152
|
+
RegistrationType | 1
|
|
153
|
+
Rights | {"High":0,"Low":0}
|
|
154
|
+
Scope | Web
|
|
155
|
+
ScriptBlock | null
|
|
156
|
+
ScriptSrc | null
|
|
157
|
+
Sequence | 65536
|
|
158
|
+
Title | ExtensionTraining
|
|
159
|
+
Url | null
|
|
160
|
+
VersionOfUserCustomAction | 1.0.1.0
|
|
161
|
+
```
|
|
@@ -20,16 +20,16 @@ m365 spo group member add [options]
|
|
|
20
20
|
: Name of the SharePoint Group to which the user needs to be added, specify either `groupId` or `groupName`
|
|
21
21
|
|
|
22
22
|
`--userName [userName]`
|
|
23
|
-
: User's UPN (user principal name, eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma
|
|
23
|
+
: User's UPN (user principal name, eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
|
|
24
24
|
|
|
25
25
|
`--email [email]`
|
|
26
|
-
: User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma
|
|
26
|
+
: User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma-separated (e.g. megan.bowen@contoso.com,alex.wilber@contoso.com). Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
|
|
27
27
|
|
|
28
28
|
`--userId [userId]`
|
|
29
|
-
: The user Id of the user to add as a member. (Id of the site user, for example: 14) If multiple users need to be added, the Ids have to be comma
|
|
29
|
+
: The user Id of the user to add as a member. (Id of the site user, for example: 14) If multiple users need to be added, the Ids have to be comma-separated. Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
|
|
30
30
|
|
|
31
31
|
`--aadGroupId [aadGroupId]`
|
|
32
|
-
: The object Id of the Azure AD group to add as a member. If multiple groups need to be added, the Ids have to be comma
|
|
32
|
+
: The object Id of the Azure AD group to add as a member. If multiple groups need to be added, the Ids have to be comma-separated. Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
|
|
33
33
|
|
|
34
34
|
`--aadGroupName [aadGroupName]`
|
|
35
35
|
: The name of the Azure AD group to add as a member. Specify either `userId`, `userName`, `email`, `aadGroupId` or `aadGroupName`
|
|
@@ -126,3 +126,25 @@ m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --
|
|
|
126
126
|
DisplayName,Email
|
|
127
127
|
John Doe,john.doe@contoso.onmicrosoft.com
|
|
128
128
|
```
|
|
129
|
+
|
|
130
|
+
=== "Markdown"
|
|
131
|
+
|
|
132
|
+
```md
|
|
133
|
+
# spo group member add --webUrl "https://contoso.sharepoint.com" --groupId "5" --aadGroupId "f2fb2f10-cfd2-4054-8ffd-64533657a5ab"
|
|
134
|
+
|
|
135
|
+
Date: 13/2/2023
|
|
136
|
+
|
|
137
|
+
## All Company Members
|
|
138
|
+
|
|
139
|
+
Property | Value
|
|
140
|
+
---------|-------
|
|
141
|
+
AllowedRoles | [0]
|
|
142
|
+
CurrentRole | 0
|
|
143
|
+
DisplayName | All Company Members
|
|
144
|
+
Email | allcompany@contoso.onmicrosoft.com
|
|
145
|
+
InvitationLink | null
|
|
146
|
+
IsUserKnown | true
|
|
147
|
+
Message | null
|
|
148
|
+
Status | true
|
|
149
|
+
User | c:0o.c\|federateddirectoryclaimprovider\|f2fb2f10-cfd2-4054-8ffd-64533657a5ab
|
|
150
|
+
```
|