@pnp/cli-microsoft365 6.0.0-beta.da9cd2c → 6.0.0-beta.dc71aa3
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/dist/cli/Cli.js +7 -10
- package/dist/m365/aad/commands/app/app-get.js +3 -2
- package/dist/m365/aad/commands/app/app-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-role-add.js +3 -2
- package/dist/m365/aad/commands/app/app-role-list.js +3 -2
- package/dist/m365/aad/commands/app/app-role-remove.js +3 -2
- package/dist/m365/aad/commands/app/app-set.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +5 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -2
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +5 -4
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +3 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +2 -1
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-remove.js +2 -1
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-set.js +2 -1
- package/dist/m365/aad/commands/sp/sp-add.js +3 -2
- package/dist/m365/aad/commands/sp/sp-get.js +3 -2
- package/dist/m365/aad/commands/user/user-get.js +5 -4
- package/dist/m365/aad/commands/user/user-hibp.js +2 -1
- package/dist/m365/aad/commands/user/user-list.js +2 -1
- package/dist/m365/aad/commands/user/user-set.js +2 -1
- package/dist/m365/aad/commands/user/user-signin-list.js +5 -4
- package/dist/m365/base/DateAndPeriodBasedReport.js +3 -2
- package/dist/m365/base/PeriodBasedReport.js +2 -1
- package/dist/m365/booking/commands/business/business-get.js +2 -1
- package/dist/m365/cli/commands/config/config-set.js +1 -0
- package/dist/m365/file/commands/file-list.js +2 -1
- package/dist/m365/flow/commands/environment/environment-get.js +2 -1
- package/dist/m365/flow/commands/flow-disable.js +2 -1
- package/dist/m365/flow/commands/flow-enable.js +2 -1
- package/dist/m365/flow/commands/flow-export.js +5 -4
- package/dist/m365/flow/commands/flow-get.js +2 -1
- package/dist/m365/flow/commands/flow-list.js +2 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -1
- package/dist/m365/flow/commands/run/run-cancel.js +2 -1
- package/dist/m365/flow/commands/run/run-get.js +2 -1
- package/dist/m365/flow/commands/run/run-list.js +2 -1
- package/dist/m365/flow/commands/run/run-resubmit.js +3 -2
- package/dist/m365/outlook/commands/mail/mail-send.js +2 -1
- package/dist/m365/outlook/commands/message/message-list.js +2 -1
- package/dist/m365/outlook/commands/message/message-move.js +2 -1
- package/dist/m365/pa/commands/app/app-get.js +2 -1
- package/dist/m365/pa/commands/app/app-list.js +2 -1
- package/dist/m365/pa/commands/app/app-remove.js +2 -1
- package/dist/m365/pa/commands/connector/connector-export.js +2 -1
- package/dist/m365/pa/commands/connector/connector-list.js +2 -1
- package/dist/m365/pa/commands/environment/environment-get.js +2 -1
- package/dist/m365/planner/commands/task/task-add.js +1 -1
- package/dist/m365/planner/commands/task/task-checklistitem-add.js +3 -2
- package/dist/m365/planner/commands/task/task-checklistitem-list.js +2 -1
- package/dist/m365/planner/commands/task/task-checklistitem-remove.js +2 -1
- package/dist/m365/planner/commands/task/task-get.js +2 -1
- package/dist/m365/planner/commands/task/task-list.js +4 -3
- package/dist/m365/planner/commands/task/task-reference-add.js +2 -2
- package/dist/m365/planner/commands/task/task-reference-list.js +2 -1
- package/dist/m365/planner/commands/task/task-reference-remove.js +1 -1
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/pp/commands/dataverse/dataverse-table-remove.js +95 -0
- package/dist/m365/pp/commands/gateway/gateway-get.js +2 -1
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +3 -2
- package/dist/m365/pp/commands/solution/solution-list.js +5 -11
- package/dist/m365/pp/commands.js +1 -0
- package/dist/m365/search/commands/externalconnection/externalconnection-get.js +3 -2
- package/dist/m365/search/commands/externalconnection/externalconnection-remove.js +3 -2
- package/dist/m365/spo/commands/app/app-get.js +2 -1
- package/dist/m365/spo/commands/app/app-install.js +2 -1
- package/dist/m365/spo/commands/app/app-remove.js +2 -1
- package/dist/m365/spo/commands/app/app-retract.js +2 -1
- package/dist/m365/spo/commands/app/app-teamspackage-download.js +2 -1
- package/dist/m365/spo/commands/app/app-uninstall.js +2 -1
- package/dist/m365/spo/commands/app/app-upgrade.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -2
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-set.js +2 -1
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-list.js +4 -3
- package/dist/m365/spo/commands/eventreceiver/eventreceiver-remove.js +49 -58
- package/dist/m365/spo/commands/file/file-add.js +14 -13
- package/dist/m365/spo/commands/file/file-checkin.js +4 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -2
- package/dist/m365/spo/commands/file/file-copy.js +2 -1
- package/dist/m365/spo/commands/file/file-get.js +3 -2
- package/dist/m365/spo/commands/file/file-move.js +2 -1
- package/dist/m365/spo/commands/file/file-remove.js +3 -2
- package/dist/m365/spo/commands/file/file-rename.js +3 -2
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +114 -0
- package/dist/m365/spo/commands/file/file-version-get.js +104 -0
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +119 -0
- package/dist/m365/spo/commands/file/file-version-restore.js +119 -0
- package/dist/m365/spo/commands/folder/folder-get.js +3 -2
- package/dist/m365/spo/commands/folder/folder-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +2 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-get.js +3 -2
- package/dist/m365/spo/commands/group/{group-user-add.js → group-member-add.js} +17 -16
- package/dist/m365/spo/commands/group/{group-user-list.js → group-member-list.js} +19 -18
- package/dist/m365/spo/commands/group/{group-user-remove.js → group-member-remove.js} +18 -17
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-get.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-add.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-remove.js +1 -1
- package/dist/m365/spo/commands/list/list-view-field-set.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-get.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-list.js +3 -3
- package/dist/m365/spo/commands/page/Page.js +3 -2
- package/dist/m365/spo/commands/page/page-add.js +2 -1
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +4 -3
- package/dist/m365/spo/commands/page/page-control-get.js +2 -1
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -2
- package/dist/m365/spo/commands/page/page-get.js +2 -1
- package/dist/m365/spo/commands/page/page-header-set.js +6 -5
- package/dist/m365/spo/commands/page/page-section-add.js +4 -3
- package/dist/m365/spo/commands/page/page-set.js +2 -1
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -2
- package/dist/m365/spo/commands/site/site-hubsite-connect.js +2 -1
- package/dist/m365/spo/commands/site/site-rename.js +2 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +2 -1
- package/dist/m365/spo/commands/spo-search.js +3 -2
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/user/user-get.js +4 -3
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +2 -1
- package/dist/m365/spo/commands/web/web-add.js +2 -1
- package/dist/m365/spo/commands.js +7 -3
- package/dist/m365/teams/commands/app/app-install.js +3 -2
- package/dist/m365/teams/commands/app/app-list.js +2 -1
- package/dist/m365/teams/commands/app/app-publish.js +14 -15
- package/dist/m365/teams/commands/app/app-update.js +2 -1
- package/dist/m365/teams/commands/channel/channel-get.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-add.js +4 -3
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -1
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -1
- package/dist/m365/teams/commands/channel/channel-remove.js +3 -2
- package/dist/m365/teams/commands/channel/channel-set.js +3 -2
- package/dist/m365/teams/commands/chat/chat-get.js +2 -1
- package/dist/m365/teams/commands/chat/chatUtil.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -1
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -1
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -1
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -1
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +2 -1
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -2
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -2
- package/dist/m365/teams/commands/tab/tab-add.js +2 -1
- package/dist/m365/teams/commands/tab/tab-get.js +4 -3
- package/dist/m365/teams/commands/tab/tab-list.js +2 -1
- package/dist/m365/teams/commands/tab/tab-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-archive.js +2 -1
- package/dist/m365/teams/commands/team/team-clone.js +2 -1
- package/dist/m365/teams/commands/team/team-get.js +2 -1
- package/dist/m365/teams/commands/team/team-remove.js +2 -1
- package/dist/m365/teams/commands/team/team-set.js +2 -1
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -1
- package/dist/m365/teams/commands/user/user-app-list.js +3 -2
- package/dist/m365/tenant/commands/security/security-alerts-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +2 -1
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +2 -1
- package/dist/m365/todo/commands/task/task-set.js +2 -1
- package/dist/m365/yammer/commands/group/group-list.js +12 -27
- package/dist/m365/yammer/commands/user/user-get.js +3 -2
- package/dist/m365/yammer/commands/yammer-search.js +6 -2
- package/dist/utils/aadGroup.js +2 -1
- package/dist/utils/powerPlatform.js +3 -2
- package/dist/utils/spo.js +3 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.md +49 -0
- package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.md +6 -1
- package/docs/docs/cmd/spo/file/file-version-clear.md +55 -0
- package/docs/docs/cmd/spo/file/file-version-get.md +76 -0
- package/docs/docs/cmd/spo/file/file-version-remove.md +58 -0
- package/docs/docs/cmd/spo/file/file-version-restore.md +58 -0
- package/docs/docs/cmd/spo/group/{group-user-add.md → group-member-add.md} +11 -11
- package/docs/docs/cmd/spo/group/{group-user-list.md → group-member-list.md} +5 -5
- package/docs/docs/cmd/spo/group/group-member-remove.md +39 -0
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +0 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +2 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +2 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +2 -5
- package/docs/docs/cmd/spo/site/site-hubsite-connect.md +0 -3
- package/docs/docs/cmd/spo/site/site-hubsite-disconnect.md +0 -5
- package/docs/docs/cmd/spo/site/site-hubsite-theme-sync.md +0 -5
- package/docs/docs/cmd/spo/spo-get.md +23 -0
- package/docs/docs/cmd/spo/spo-search.md +29 -0
- package/docs/docs/cmd/spo/spo-set.md +4 -0
- package/docs/docs/cmd/spo/user/user-get.md +49 -2
- package/docs/docs/cmd/spo/user/user-list.md +41 -0
- package/docs/docs/cmd/spo/user/user-remove.md +4 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-get.md +586 -0
- package/docs/docs/cmd/spo/userprofile/userprofile-set.md +4 -0
- package/docs/docs/cmd/spo/web/web-add.md +43 -0
- package/docs/docs/cmd/spo/web/web-clientsidewebpart-list.md +29 -0
- package/docs/docs/cmd/spo/web/web-get.md +127 -0
- package/docs/docs/cmd/spo/web/web-installedlanguage-list.md +29 -0
- package/docs/docs/cmd/spo/web/web-list.md +81 -0
- package/docs/docs/cmd/spo/web/web-reindex.md +4 -0
- package/docs/docs/cmd/spo/web/web-remove.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-add.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.md +4 -0
- package/docs/docs/cmd/spo/web/web-roleinheritance-reset.md +4 -0
- package/docs/docs/cmd/spo/web/web-set.md +4 -0
- package/docs/docs/cmd/teams/app/app-install.md +4 -0
- package/docs/docs/cmd/teams/app/app-list.md +30 -0
- package/docs/docs/cmd/teams/app/app-publish.md +31 -1
- package/docs/docs/cmd/teams/app/app-remove.md +4 -0
- package/docs/docs/cmd/teams/app/app-uninstall.md +4 -0
- package/docs/docs/cmd/teams/app/app-update.md +4 -0
- package/docs/docs/cmd/teams/cache/cache-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-add.md +37 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +39 -0
- package/docs/docs/cmd/teams/channel/channel-list.md +35 -0
- package/docs/docs/cmd/teams/channel/channel-member-add.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.md +37 -0
- package/docs/docs/cmd/teams/channel/channel-member-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-member-set.md +35 -0
- package/docs/docs/cmd/teams/channel/channel-remove.md +4 -0
- package/docs/docs/cmd/teams/channel/channel-set.md +3 -0
- package/docs/docs/cmd/teams/chat/chat-get.md +42 -0
- package/docs/docs/cmd/teams/chat/chat-list.md +38 -0
- package/docs/docs/cmd/teams/chat/chat-member-list.md +35 -0
- package/docs/docs/cmd/teams/chat/chat-message-list.md +60 -0
- package/docs/docs/cmd/teams/chat/chat-message-send.md +4 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-list.md +29 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-set.md +4 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +25 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-set.md +4 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-list.md +33 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-set.md +4 -0
- package/docs/docs/cmd/yammer/group/group-list.md +65 -0
- package/docs/docs/cmd/yammer/group/group-user-add.md +4 -0
- package/docs/docs/cmd/yammer/group/group-user-remove.md +4 -0
- package/docs/docs/cmd/yammer/message/message-add.md +55 -0
- package/docs/docs/cmd/yammer/message/message-get.md +64 -0
- package/docs/docs/cmd/yammer/message/message-like-set.md +4 -0
- package/docs/docs/cmd/yammer/message/message-list.md +60 -0
- package/docs/docs/cmd/yammer/message/message-remove.md +4 -0
- package/docs/docs/cmd/yammer/network/network-list.md +96 -0
- package/docs/docs/cmd/yammer/report/report-activitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityusercounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.md +36 -0
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.md +33 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.md +34 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.md +38 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.md +31 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.md +37 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.md +30 -0
- package/docs/docs/cmd/yammer/user/user-get.md +99 -0
- package/docs/docs/cmd/yammer/user/user-list.md +97 -0
- package/docs/docs/cmd/yammer/yammer-search.md +77 -0
- package/npm-shrinkwrap.json +235 -257
- package/package.json +15 -15
- package/docs/docs/cmd/spo/group/group-user-remove.md +0 -39
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# spo file version clear
|
|
2
|
+
|
|
3
|
+
Removes all version history of a specified file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file version clear [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-w, --webUrl <webUrl>`
|
|
14
|
+
: The URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`-u, --fileUrl [fileUrl]`
|
|
17
|
+
: The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
18
|
+
|
|
19
|
+
`-i, --fileId [fileId]`
|
|
20
|
+
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`--confirm [confirm]`
|
|
23
|
+
: Don't prompt for confirmation.
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Removes all file version history in a specific site based on fileId and prompts for confirmation
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Removes all file version history in a specific site based on fileUrl and prompts for confirmation
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileUrl '/Shared Documents/Document.docx'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Removes all file version history in a specific site based on fileId without prompting for confirmation
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileId 'b2307a39-e878-458b-bc90-03bc578531d6' --confirm
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Removes all file version history in a specific site based on fileUrl without prompting for confirmation
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 spo file version clear --webUrl https://contoso.sharepoint.com --fileUrl '/Shared Documents/Document.docx' --confirm
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# spo file version get
|
|
2
|
+
|
|
3
|
+
Gets information about a specific version of a specified file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file version get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-w, --webUrl <webUrl>`
|
|
14
|
+
: The URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`--label <label>`
|
|
17
|
+
: Label of version which will be retrieved
|
|
18
|
+
|
|
19
|
+
`-u, --fileUrl [fileUrl]`
|
|
20
|
+
: The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
|
+
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Get file version in a specific site based on fileId
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo file version get --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Get file in a specific site based on fileUrl
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo file version get --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
=== "JSON"
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"CheckInComment": "",
|
|
48
|
+
"Created": "2022-10-30T12:03:06Z",
|
|
49
|
+
"ID": 512,
|
|
50
|
+
"IsCurrentVersion": false,
|
|
51
|
+
"Length": "18898",
|
|
52
|
+
"Size": 18898,
|
|
53
|
+
"Url": "_vti_history/512/Shared Documents/Document.docx",
|
|
54
|
+
"VersionLabel": "1.0"
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
=== "Text"
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
CheckInComment :
|
|
62
|
+
Created : 2022-10-30T12:03:06Z
|
|
63
|
+
ID : 512
|
|
64
|
+
IsCurrentVersion: false
|
|
65
|
+
Length : 18898
|
|
66
|
+
Size : 18898
|
|
67
|
+
Url : _vti_history/512/Shared Documents/Document.docx
|
|
68
|
+
VersionLabel : 1.0
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
=== "CSV"
|
|
72
|
+
|
|
73
|
+
```csv
|
|
74
|
+
CheckInComment,Created,ID,IsCurrentVersion,Length,Size,Url,VersionLabel
|
|
75
|
+
,2022-10-30T12:03:06Z,512,,18898,18898,_vti_history/512/Shared Documents/Document.docx,1.0
|
|
76
|
+
```
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# spo file version remove
|
|
2
|
+
|
|
3
|
+
Removes a specific version of a specified file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file version remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-w, --webUrl <webUrl>`
|
|
14
|
+
: The URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`--label <label>`
|
|
17
|
+
: Label of version which will be removed
|
|
18
|
+
|
|
19
|
+
`-u, --fileUrl [fileUrl]`
|
|
20
|
+
: The server-relative URL of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
|
+
: The UniqueId (GUID) of the file to retrieve. Specify either `fileUrl` or `fileId` but not both
|
|
24
|
+
|
|
25
|
+
`--confirm [confirm]`
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Removes a file version in a specific site based on fileId and prompts for confirmation
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Removes a file version in a specific site based on fileUrl and prompts for confirmation
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Removes a file version in a specific site based on fileId without prompting for confirmation
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6' --confirm
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Removes a file version in a specific site based on fileUrl without prompting for confirmation
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo file version remove --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx' --confirm
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Response
|
|
57
|
+
|
|
58
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# spo file version restore
|
|
2
|
+
|
|
3
|
+
Restores a specific version of a specified file
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo file version restore [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-w, --webUrl <webUrl>`
|
|
14
|
+
: The URL of the site where the file is located
|
|
15
|
+
|
|
16
|
+
`--label <label>`
|
|
17
|
+
: Label of version which will be restored
|
|
18
|
+
|
|
19
|
+
`-u, --fileUrl [fileUrl]`
|
|
20
|
+
: The server-relative URL of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
|
|
21
|
+
|
|
22
|
+
`-i, --fileId [fileId]`
|
|
23
|
+
: The UniqueId (GUID) of the file whose version will be restored. Specify either `fileUrl` or `fileId` but not both
|
|
24
|
+
|
|
25
|
+
`--confirm [confirm]`
|
|
26
|
+
: Don't prompt for confirmation.
|
|
27
|
+
|
|
28
|
+
--8<-- "docs/cmd/_global.md"
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Restores a file version in a specific site based on fileId and prompts for confirmation
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Restores a file version in a specific site based on fileUrl and prompts for confirmation
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Restores a file version in a specific site based on fileId without prompting for confirmation
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileId 'b2307a39-e878-458b-bc90-03bc578531d6' --confirm
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Restores a file version in a specific site based on fileUrl without prompting for confirmation
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spo file version restore --webUrl https://contoso.sharepoint.com --label "1.0" --fileUrl '/Shared Documents/Document.docx' --confirm
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Response
|
|
57
|
+
|
|
58
|
+
The command won't return a response on success.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# spo group
|
|
1
|
+
# spo group member add
|
|
2
2
|
|
|
3
|
-
Add
|
|
3
|
+
Add members to a SharePoint Group
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
m365 spo group
|
|
8
|
+
m365 spo group member add [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -14,16 +14,16 @@ m365 spo group user add [options]
|
|
|
14
14
|
: URL of the site where the SharePoint group is available
|
|
15
15
|
|
|
16
16
|
`--groupId [groupId]`
|
|
17
|
-
: Id of the SharePoint Group to which user needs to be added, specify either `groupId` or `groupName`
|
|
17
|
+
: Id of the SharePoint Group to which the user needs to be added, specify either `groupId` or `groupName`
|
|
18
18
|
|
|
19
19
|
`--groupName [groupName]`
|
|
20
|
-
: Name of the SharePoint Group to which user needs to be added, specify either `groupId` or `groupName`
|
|
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
|
|
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 (ex. megan.bowen@contoso.com,alex.wilber@contoso.com), specify either `userName` or `email`
|
|
24
24
|
|
|
25
25
|
`--email [email]`
|
|
26
|
-
: User's email (eg. megan.bowen@contoso.com). If multiple users
|
|
26
|
+
: User's email (eg. megan.bowen@contoso.com). If multiple users need to be added, they have to be comma separated (ex. megan.bowen@contoso.com,alex.wilber@contoso.com), specify either `userName` or `email`
|
|
27
27
|
|
|
28
28
|
--8<-- "docs/cmd/_global.md"
|
|
29
29
|
|
|
@@ -36,23 +36,23 @@ For the `--userName` or `--email` options you can specify multiple values by sep
|
|
|
36
36
|
Add a user with name _Alex.Wilber@contoso.com_ to the SharePoint group with id _5_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
|
-
m365 spo group
|
|
39
|
+
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com"
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Add multiple users by name to the SharePoint group with id _5_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
m365 spo group
|
|
45
|
+
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com, Adele.Vance@contoso.com"
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
Add a user with email _Alex.Wilber@contoso.com_ to the SharePoint group with name _Contoso Site Owners_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
|
-
m365 spo group
|
|
51
|
+
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --email "Alex.Wilber@contoso.com"
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Add multiple users by email to the SharePoint group with name _Contoso Site Owners_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
|
-
m365 spo group
|
|
57
|
+
m365 spo group member add --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Owners" --email "Alex.Wilber@contoso.com, Adele.Vance@contoso.com"
|
|
58
58
|
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# spo group
|
|
1
|
+
# spo group member list
|
|
2
2
|
|
|
3
|
-
List members of a SharePoint Group
|
|
3
|
+
List the members of a SharePoint Group
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
m365 spo group
|
|
8
|
+
m365 spo group member list [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -26,11 +26,11 @@ m365 spo group user list [options]
|
|
|
26
26
|
List the members of the group with ID _5_ for web _https://contoso.sharepoint.com/sites/SiteA_
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
m365 spo group
|
|
29
|
+
m365 spo group member list --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
List the members of the group with name _Contoso Site Members_ for web _https://contoso.sharepoint.com/sites/SiteA_
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
m365 spo group
|
|
35
|
+
m365 spo group member list --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Contoso Site Members"
|
|
36
36
|
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# spo group member remove
|
|
2
|
+
|
|
3
|
+
Removes the specified member from a SharePoint group
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo group member remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: URL of the site where the SharePoint group is available
|
|
15
|
+
|
|
16
|
+
`--groupId [groupId]`
|
|
17
|
+
: Id of the SharePoint group from which the user has to be removed. Specify either `groupName` or `groupId`, but not both
|
|
18
|
+
|
|
19
|
+
`--groupName [groupName]`
|
|
20
|
+
: Name of the SharePoint group from which user has to be removed. Specify either `groupName` or `groupId`, but not both
|
|
21
|
+
|
|
22
|
+
`--userName <userName>`
|
|
23
|
+
: The UPN of the user that needs to be removed (user principal name, eg. megan.bowen@contoso.com)
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Remove a user from SharePoint group with id _5_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupId 5 --userName "Alex.Wilber@contoso.com"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Remove a user from SharePoint group with Name _Site A Visitors_ available on the web _https://contoso.sharepoint.com/sites/SiteA_
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spo group member remove --webUrl https://contoso.sharepoint.com/sites/SiteA --groupName "Site A Visitors" --userName "Alex.Wilber@contoso.com"
|
|
39
|
+
```
|
|
@@ -20,9 +20,6 @@ m365 spo hubsite data get [options]
|
|
|
20
20
|
|
|
21
21
|
## Remarks
|
|
22
22
|
|
|
23
|
-
!!! attention
|
|
24
|
-
This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
|
|
25
|
-
|
|
26
23
|
By default, the hub site data is returned from the server's cache. To refresh the data with the latest updates, use the `-f, --forceRefresh` option. Use this option, if you just made changes and need to see them right
|
|
27
24
|
away.
|
|
28
25
|
|
|
@@ -21,13 +21,10 @@ m365 spo hubsite rights grant [options]
|
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
24
|
-
!!! important
|
|
25
|
-
To use this command you have to have permissions to access the tenant admin site.
|
|
26
|
-
|
|
27
24
|
## Remarks
|
|
28
25
|
|
|
29
|
-
!!!
|
|
30
|
-
|
|
26
|
+
!!! important
|
|
27
|
+
To use this command you must be a Global or SharePoint administrator.
|
|
31
28
|
|
|
32
29
|
## Examples
|
|
33
30
|
|
|
@@ -21,13 +21,10 @@ m365 spo hubsite rights revoke [options]
|
|
|
21
21
|
|
|
22
22
|
--8<-- "docs/cmd/_global.md"
|
|
23
23
|
|
|
24
|
-
!!! important
|
|
25
|
-
To use this command you have to have permissions to access the tenant admin site.
|
|
26
|
-
|
|
27
24
|
## Remarks
|
|
28
25
|
|
|
29
|
-
!!!
|
|
30
|
-
|
|
26
|
+
!!! important
|
|
27
|
+
To use this command you must be a Global or SharePoint administrator.
|
|
31
28
|
|
|
32
29
|
## Examples
|
|
33
30
|
|
|
@@ -24,13 +24,10 @@ m365 spo hubsite set [options]
|
|
|
24
24
|
|
|
25
25
|
--8<-- "docs/cmd/_global.md"
|
|
26
26
|
|
|
27
|
-
!!! important
|
|
28
|
-
To use this command you have to have permissions to access the tenant admin site.
|
|
29
|
-
|
|
30
27
|
## Remarks
|
|
31
28
|
|
|
32
|
-
!!!
|
|
33
|
-
|
|
29
|
+
!!! important
|
|
30
|
+
To use this command you must be a Global or SharePoint administrator.
|
|
34
31
|
|
|
35
32
|
If the specified `id` doesn't refer to an existing hub site, you will get an `Unknown Error` error.
|
|
36
33
|
|
|
@@ -20,9 +20,6 @@ m365 spo site hubsite connect [options]
|
|
|
20
20
|
|
|
21
21
|
## Remarks
|
|
22
22
|
|
|
23
|
-
!!! attention
|
|
24
|
-
This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
|
|
25
|
-
|
|
26
23
|
If the specified site collection is already connected to a hub site, it will be disconnected and connected to the newly specified hub site.
|
|
27
24
|
|
|
28
25
|
If the specified `id` doesn't point to a valid hub site, you will get a `ResourceNotFoundException` error.
|
|
@@ -18,11 +18,6 @@ m365 spo site hubsite disconnect [options]
|
|
|
18
18
|
|
|
19
19
|
--8<-- "docs/cmd/_global.md"
|
|
20
20
|
|
|
21
|
-
## Remarks
|
|
22
|
-
|
|
23
|
-
!!! attention
|
|
24
|
-
This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
|
|
25
|
-
|
|
26
21
|
## Examples
|
|
27
22
|
|
|
28
23
|
Disconnect a specific site collection from its hub site. Will prompt for confirmation before disconnecting from the hub site.
|
|
@@ -15,11 +15,6 @@ m365 spo site hubsite theme sync [options]
|
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|
|
17
17
|
|
|
18
|
-
## Remarks
|
|
19
|
-
|
|
20
|
-
!!! attention
|
|
21
|
-
This command is based on a SharePoint API that is currently in preview and is subject to change once the API reached general availability.
|
|
22
|
-
|
|
23
18
|
## Examples
|
|
24
19
|
|
|
25
20
|
Applies any theme updates from the hub site to a specific site
|
|
@@ -23,3 +23,26 @@ Get the context URL for the root SharePoint site collection and SharePoint tenan
|
|
|
23
23
|
```sh
|
|
24
24
|
m365 spo get --output json
|
|
25
25
|
```
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
=== "JSON"
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"SpoUrl": "https://contoso.sharepoint.com"
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
=== "Text"
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
SpoUrl: https://contoso.sharepoint.com
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
=== "CSV"
|
|
44
|
+
|
|
45
|
+
```csv
|
|
46
|
+
SpoUrl
|
|
47
|
+
https://contoso.sharepoint.com
|
|
48
|
+
```
|
|
@@ -109,3 +109,32 @@ Return only items from a specific result source (using the source id).
|
|
|
109
109
|
```sh
|
|
110
110
|
m365 spo search --queryText "*" --sourceId "6e71030e-5e16-4406-9bff-9c1829843083"
|
|
111
111
|
```
|
|
112
|
+
|
|
113
|
+
## Response
|
|
114
|
+
|
|
115
|
+
=== "JSON"
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
[
|
|
119
|
+
{
|
|
120
|
+
"Title": "Document",
|
|
121
|
+
"OriginalPath": "https://contoso.sharepoint.com/Shared Documents/Document.docx"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
=== "Text"
|
|
127
|
+
|
|
128
|
+
```text
|
|
129
|
+
Title OriginalPath
|
|
130
|
+
----------------------- --------------------------------------------------------------------------------------------------------
|
|
131
|
+
Document https://contoso.sharepoint.com/Shared Documents/Document.docx
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
=== "CSV"
|
|
135
|
+
|
|
136
|
+
```csv
|
|
137
|
+
Title,OriginalPath
|
|
138
|
+
Document,https://contoso.sharepoint.com/Shared Documents/Document.docx
|
|
139
|
+
```
|
|
140
|
+
|
|
@@ -38,9 +38,56 @@ Get user with ID _6_ for web _https://contoso.sharepoint.com/sites/project-x_
|
|
|
38
38
|
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --id 6
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Get user with login name 'i:0#.f
|
|
42
|
-
: membership|john.doe@mytenant.onmicrosoft.com' for web _https://contoso.sharepoint.com/sites/project-x_
|
|
41
|
+
Get user with login name 'i:0#.f|membership|john.doe@mytenant.onmicrosoft.com' for web _https://contoso.sharepoint.com/sites/project-x_
|
|
43
42
|
|
|
44
43
|
```sh
|
|
45
44
|
m365 spo user get --webUrl https://contoso.sharepoint.com/sites/project-x --loginName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
|
|
46
45
|
```
|
|
46
|
+
|
|
47
|
+
## Response
|
|
48
|
+
|
|
49
|
+
=== "JSON"
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"Id": 10,
|
|
54
|
+
"IsHiddenInUI": false,
|
|
55
|
+
"LoginName": "i:0#.f|membership|johndoe@contoso.onmicrosoft.com",
|
|
56
|
+
"Title": "John Doe",
|
|
57
|
+
"PrincipalType": 1,
|
|
58
|
+
"Email": "johndoe@contoso.onmicrosoft.com",
|
|
59
|
+
"Expiration": "",
|
|
60
|
+
"IsEmailAuthenticationGuestUser": false,
|
|
61
|
+
"IsShareByEmailGuestUser": false,
|
|
62
|
+
"IsSiteAdmin": false,
|
|
63
|
+
"UserId": {
|
|
64
|
+
"NameId": "100320022ec308a7",
|
|
65
|
+
"NameIdIssuer": "urn:federation:microsoftonline"
|
|
66
|
+
},
|
|
67
|
+
"UserPrincipalName": "johndoe@contoso.onmicrosoft.com"
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
=== "Text"
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
Email : johndoe@contoso.onmicrosoft.com
|
|
75
|
+
Expiration :
|
|
76
|
+
Id : 10
|
|
77
|
+
IsEmailAuthenticationGuestUser: false
|
|
78
|
+
IsHiddenInUI : false
|
|
79
|
+
IsShareByEmailGuestUser : false
|
|
80
|
+
IsSiteAdmin : false
|
|
81
|
+
LoginName : i:0#.f|membership|johndoe@contoso.onmicrosoft.com
|
|
82
|
+
PrincipalType : 1
|
|
83
|
+
Title : John Doe
|
|
84
|
+
UserId : {"NameId":"100320022ec308a7","NameIdIssuer":"urn:federation:microsoftonline"}
|
|
85
|
+
UserPrincipalName : johndoe@contoso.onmicrosoft.com
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
=== "CSV"
|
|
89
|
+
|
|
90
|
+
```csv
|
|
91
|
+
Id,IsHiddenInUI,LoginName,Title,PrincipalType,Email,Expiration,IsEmailAuthenticationGuestUser,IsShareByEmailGuestUser,IsSiteAdmin,UserId,UserPrincipalName
|
|
92
|
+
10,,i:0#.f|membership|johndoe@contoso.onmicrosoft.com,John Doe,1,johndoe@contoso.onmicrosoft.com,,,,,"{""NameId"":""100320022ec308a7"",""NameIdIssuer"":""urn:federation:microsoftonline""}",johndoe@contoso.onmicrosoft.com
|
|
93
|
+
```
|
|
@@ -22,3 +22,44 @@ Get list of users in web _https://contoso.sharepoint.com/sites/project-x_
|
|
|
22
22
|
```sh
|
|
23
23
|
m365 spo user list --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
24
24
|
```
|
|
25
|
+
|
|
26
|
+
## Response
|
|
27
|
+
|
|
28
|
+
=== "JSON"
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
[
|
|
32
|
+
{
|
|
33
|
+
"Id": 10,
|
|
34
|
+
"IsHiddenInUI": false,
|
|
35
|
+
"LoginName": "i:0#.f|membership|johndoe@contoso.onmicrosoft.com",
|
|
36
|
+
"Title": "John DOe",
|
|
37
|
+
"PrincipalType": 1,
|
|
38
|
+
"Email": "johndoe@contoso.onmicrosoft.com",
|
|
39
|
+
"Expiration": "",
|
|
40
|
+
"IsEmailAuthenticationGuestUser": false,
|
|
41
|
+
"IsShareByEmailGuestUser": false,
|
|
42
|
+
"IsSiteAdmin": false,
|
|
43
|
+
"UserId": {
|
|
44
|
+
"NameId": "100320022ec308a7",
|
|
45
|
+
"NameIdIssuer": "urn:federation:microsoftonline"
|
|
46
|
+
},
|
|
47
|
+
"UserPrincipalName": "johndoe@contoso.onmicrosoft.com"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
=== "Text"
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
Id Title LoginName
|
|
56
|
+
---------- ------------------------------ --------------------------------------------------------------------------
|
|
57
|
+
10 John Doe i:0#.f|membership|johndoe@contoso.onmicrosoft.com
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
=== "CSV"
|
|
61
|
+
|
|
62
|
+
```csv
|
|
63
|
+
Id,Title,LoginName
|
|
64
|
+
10,John Doe,i:0#.f|membership|johndoe@contoso.onmicrosoft.com
|
|
65
|
+
```
|
|
@@ -42,6 +42,10 @@ Removes user with login name _i:0#.f|membership|john.doe@mytenant.onmicrosoft.co
|
|
|
42
42
|
m365 spo user remove --webUrl "https://contoso.sharepoint.com/sites/HR" --loginName "i:0#.f|membership|john.doe@mytenant.onmicrosoft.com"
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
## Response
|
|
46
|
+
|
|
47
|
+
The command won't return a response on success.
|
|
48
|
+
|
|
45
49
|
## More information
|
|
46
50
|
|
|
47
51
|
- Remove-PnPUser - [https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/remove-pnpuser?view=sharepoint-ps](https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/remove-pnpuser?view=sharepoint-ps)
|