@pnp/cli-microsoft365 6.8.0-beta.f473be5 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -0
- package/README.md +6 -1
- package/dist/Command.js +6 -0
- package/dist/chili/chili.js +298 -0
- package/dist/chili/index.js +20 -0
- package/dist/cli/Cli.js +2 -2
- package/dist/m365/aad/commands/user/user-add.js +30 -21
- package/dist/m365/app/commands/permission/permission-add.js +279 -0
- package/dist/m365/app/commands.js +1 -0
- package/dist/m365/commands/commands.js +2 -0
- package/dist/m365/commands/docs.js +42 -0
- package/dist/m365/commands/login.js +1 -1
- package/dist/m365/commands/setup.js +180 -0
- package/dist/m365/commands/setupPresets.js +25 -0
- package/dist/m365/pa/commands/app/app-consent-set.js +101 -0
- package/dist/m365/pa/commands.js +1 -0
- package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-get.js +97 -0
- package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-list.js +85 -0
- package/dist/m365/purview/commands/sensitivitylabel/sensitivitylabel-policysettings-list.js +89 -0
- package/dist/m365/purview/commands.js +3 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.17.2.js +25 -0
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN001035_DEP_fluentui_react.js +18 -0
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN021009_PKG_no_duplicate_oui_deps.js +11 -4
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001035_DEP_fluentui_react.js +18 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +2 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.17.2.js +61 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +29 -30
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-remove.js +146 -0
- package/dist/m365/spo/commands/file/file-list.js +15 -4
- package/dist/m365/spo/commands/file/file-remove.js +3 -0
- package/dist/m365/spo/commands/list/list-get.js +30 -3
- package/dist/m365/spo/commands/list/list-list.js +39 -2
- package/dist/m365/spo/commands/listitem/listitem-batch-set.js +308 -0
- package/dist/m365/spo/commands/page/page-section-add.js +2 -3
- package/dist/m365/spo/commands/site/site-recyclebinitem-move.js +119 -0
- package/dist/m365/spo/commands/site/site-recyclebinitem-remove.js +106 -0
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +30 -39
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-list.js +47 -0
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-remove.js +151 -0
- package/dist/m365/spo/commands/tenant/tenant-commandset-remove.js +152 -0
- package/dist/m365/spo/commands/tenant/tenant-commandset-set.js +203 -0
- package/dist/m365/spo/commands/term/term-add.js +13 -4
- package/dist/m365/spo/commands/term/term-get.js +14 -5
- package/dist/m365/spo/commands/term/term-group-get.js +12 -3
- package/dist/m365/spo/commands/term/term-group-list.js +39 -4
- package/dist/m365/spo/commands/term/term-list.js +18 -9
- package/dist/m365/spo/commands/term/term-set-add.js +13 -4
- package/dist/m365/spo/commands/term/term-set-get.js +12 -3
- package/dist/m365/spo/commands/term/term-set-list.js +12 -3
- package/dist/m365/spo/commands.js +9 -0
- package/dist/m365/teams/commands/chat/chat-member-remove.js +137 -0
- package/dist/m365/teams/commands.js +1 -0
- package/dist/utils/formatting.js +35 -11
- package/dist/utils/pid.js +5 -0
- package/docs/docs/cmd/aad/o365group/o365group-get.md +0 -12
- package/docs/docs/cmd/aad/user/user-add.md +4 -0
- package/docs/docs/cmd/aad/user/user-set.md +2 -2
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.md +13 -13
- package/docs/docs/cmd/app/app-get.md +25 -6
- package/docs/docs/cmd/app/app-open.md +8 -2
- package/docs/docs/cmd/app/permission/permission-add.md +53 -0
- package/docs/docs/cmd/app/permission/permission-list.md +19 -19
- package/docs/docs/cmd/booking/business/business-get.md +30 -8
- package/docs/docs/cmd/booking/business/business-list.md +17 -8
- package/docs/docs/cmd/cli/cli-consent.md +6 -0
- package/docs/docs/cmd/cli/cli-doctor.md +17 -0
- package/docs/docs/cmd/cli/cli-issue.md +6 -0
- package/docs/docs/cmd/cli/cli-reconsent.md +6 -0
- package/docs/docs/cmd/cli/completion/completion-sh-setup.md +6 -0
- package/docs/docs/cmd/cli/config/config-get.md +6 -0
- package/docs/docs/cmd/docs.md +51 -0
- package/docs/docs/cmd/flow/environment/environment-list.md +18 -0
- package/docs/docs/cmd/flow/flow-get.md +20 -0
- package/docs/docs/cmd/flow/flow-list.md +17 -0
- package/docs/docs/cmd/graph/changelog/changelog-list.md +52 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.md +61 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-get.md +61 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.md +61 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.md +4 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.md +4 -0
- package/docs/docs/cmd/graph/subscription/subscription-add.md +73 -0
- package/docs/docs/cmd/login.md +1 -1
- package/docs/docs/cmd/onedrive/onedrive-list.md +225 -0
- package/docs/docs/cmd/onedrive/report/report-activityfilecounts.md +39 -0
- package/docs/docs/cmd/onedrive/report/report-activityusercounts.md +39 -0
- package/docs/docs/cmd/onedrive/report/report-activityuserdetail.md +43 -0
- package/docs/docs/cmd/onedrive/report/report-usageaccountcounts.md +38 -0
- package/docs/docs/cmd/onedrive/report/report-usageaccountdetail.md +43 -0
- package/docs/docs/cmd/onedrive/report/report-usagefilecounts.md +38 -0
- package/docs/docs/cmd/onedrive/report/report-usagestorage.md +37 -0
- package/docs/docs/cmd/onenote/notebook/notebook-list.md +79 -0
- package/docs/docs/cmd/pa/app/app-consent-set.md +47 -0
- package/docs/docs/cmd/planner/plan/plan-get.md +1 -1
- package/docs/docs/cmd/planner/plan/plan-list.md +1 -1
- package/docs/docs/cmd/planner/roster/roster-add.md +2 -1
- package/docs/docs/cmd/planner/roster/roster-get.md +1 -1
- package/docs/docs/cmd/planner/roster/roster-remove.md +2 -1
- package/docs/docs/cmd/planner/task/task-get.md +0 -6
- package/docs/docs/cmd/planner/task/task-set.md +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.md +6 -7
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.md +6 -7
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.md +4 -4
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.md +4 -4
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.md +10 -10
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.md +11 -11
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.md +10 -10
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.md +10 -10
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.md +10 -10
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.md +12 -12
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.md +8 -9
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.md +8 -9
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.md +8 -8
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.md +8 -8
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.md +118 -0
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.md +111 -0
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.md +97 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-get.md +17 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-list.md +17 -0
- package/docs/docs/cmd/setup.md +86 -0
- package/docs/docs/cmd/spfx/project/project-doctor.md +1 -1
- package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.md +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.md +77 -0
- package/docs/docs/cmd/spo/commandset/commandset-set.md +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.md +2 -2
- package/docs/docs/cmd/spo/customaction/customaction-add.md +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.md +1 -1
- package/docs/docs/cmd/spo/file/file-list.md +9 -6
- package/docs/docs/cmd/spo/file/file-remove.md +12 -0
- package/docs/docs/cmd/spo/folder/folder-copy.md +1 -1
- package/docs/docs/cmd/spo/list/list-get.md +10 -0
- package/docs/docs/cmd/spo/list/list-list.md +28 -0
- package/docs/docs/cmd/spo/listitem/listitem-batch-set.md +67 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +1 -1
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-list.md +19 -0
- package/docs/docs/cmd/spo/orgassetslibrary/orgassetslibrary-remove.md +12 -0
- package/docs/docs/cmd/spo/orgnewssite/orgnewssite-list.md +6 -0
- package/docs/docs/cmd/spo/page/page-column-get.md +15 -0
- package/docs/docs/cmd/spo/page/page-column-list.md +16 -0
- package/docs/docs/cmd/spo/page/page-control-get.md +18 -0
- package/docs/docs/cmd/spo/page/page-control-list.md +18 -0
- package/docs/docs/cmd/spo/page/page-copy.md +35 -0
- package/docs/docs/cmd/spo/page/page-get.md +39 -0
- package/docs/docs/cmd/spo/page/page-list.md +53 -0
- package/docs/docs/cmd/spo/page/page-section-get.md +12 -0
- package/docs/docs/cmd/spo/page/page-section-list.md +13 -0
- package/docs/docs/cmd/spo/page/page-template-list.md +31 -0
- package/docs/docs/cmd/spo/propertybag/propertybag-get.md +6 -0
- package/docs/docs/cmd/spo/propertybag/propertybag-list.md +13 -0
- package/docs/docs/cmd/spo/report/report-activityfilecounts.md +7 -0
- package/docs/docs/cmd/spo/report/report-activitypages.md +7 -0
- package/docs/docs/cmd/spo/report/report-activityusercounts.md +7 -0
- package/docs/docs/cmd/spo/report/report-activityuserdetail.md +7 -0
- package/docs/docs/cmd/spo/report/report-siteusagedetail.md +7 -0
- package/docs/docs/cmd/spo/report/report-siteusagefilecounts.md +7 -0
- package/docs/docs/cmd/spo/report/report-siteusagepages.md +7 -0
- package/docs/docs/cmd/spo/report/report-siteusagesitecounts.md +7 -0
- package/docs/docs/cmd/spo/report/report-siteusagestorage.md +7 -0
- package/docs/docs/cmd/spo/roledefinition/roledefinition-get.md +20 -0
- package/docs/docs/cmd/spo/roledefinition/roledefinition-list.md +20 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-add.md +20 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.md +18 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-approve.md +20 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-permissionrequest-list.md +17 -0
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-set.md +13 -0
- package/docs/docs/cmd/spo/site/site-recyclebinitem-move.md +43 -0
- package/docs/docs/cmd/spo/site/site-recyclebinitem-remove.md +45 -0
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.md +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.md +103 -0
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.md +49 -0
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.md +49 -0
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.md +57 -0
- package/docs/docs/cmd/spo/term/term-add.md +107 -6
- package/docs/docs/cmd/spo/term/term-get.md +111 -10
- package/docs/docs/cmd/spo/term/term-group-get.md +71 -5
- package/docs/docs/cmd/spo/term/term-group-list.md +70 -2
- package/docs/docs/cmd/spo/term/term-list.md +80 -8
- package/docs/docs/cmd/spo/term/term-set-add.md +95 -11
- package/docs/docs/cmd/spo/term/term-set-get.md +92 -8
- package/docs/docs/cmd/spo/term/term-set-list.md +85 -5
- package/docs/docs/cmd/teams/app/app-list.md +17 -0
- package/docs/docs/cmd/teams/app/app-publish.md +18 -1
- package/docs/docs/cmd/teams/channel/channel-add.md +20 -0
- package/docs/docs/cmd/teams/channel/channel-get.md +21 -0
- package/docs/docs/cmd/teams/channel/channel-list.md +21 -0
- package/docs/docs/cmd/teams/channel/channel-member-list.md +20 -0
- package/docs/docs/cmd/teams/channel/channel-member-set.md +21 -0
- package/docs/docs/cmd/teams/chat/chat-get.md +22 -0
- package/docs/docs/cmd/teams/chat/chat-list.md +22 -0
- package/docs/docs/cmd/teams/chat/chat-member-list.md +20 -0
- package/docs/docs/cmd/teams/chat/chat-member-remove.md +52 -0
- package/docs/docs/cmd/teams/chat/chat-message-list.md +23 -0
- package/docs/docs/cmd/teams/funsettings/funsettings-list.md +15 -0
- package/docs/docs/cmd/teams/guestsettings/guestsettings-list.md +13 -0
- package/docs/docs/cmd/teams/membersettings/membersettings-list.md +17 -0
- package/docs/docs/cmd/teams/tab/tab-remove.md +1 -1
- package/docs/docs/cmd/todo/list/list-add.md +18 -0
- package/docs/docs/cmd/todo/list/list-get.md +18 -0
- package/docs/docs/cmd/todo/list/list-list.md +18 -0
- package/docs/docs/cmd/todo/task/task-get.md +21 -0
- package/docs/docs/cmd/todo/task/task-list.md +21 -0
- package/docs/docs/cmd/util/accesstoken/accesstoken-get.md +6 -0
- package/docs/docs/cmd/version.md +1 -1
- package/docs/docs/cmd/viva/connections/connections-app-create.md +3 -3
- package/docs/docs/cmd/yammer/group/group-list.md +42 -0
- package/docs/docs/cmd/yammer/message/message-add.md +32 -0
- package/docs/docs/cmd/yammer/message/message-get.md +32 -0
- package/docs/docs/cmd/yammer/message/message-list.md +34 -0
- package/docs/docs/cmd/yammer/network/network-list.md +70 -0
- package/docs/docs/cmd/yammer/report/report-activitycounts.md +7 -0
- package/docs/docs/cmd/yammer/report/report-activityusercounts.md +7 -0
- package/docs/docs/cmd/yammer/report/report-activityuserdetail.md +7 -0
- package/docs/docs/cmd/yammer/report/report-deviceusagedistributionusercounts.md +7 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageusercounts.md +7 -0
- package/docs/docs/cmd/yammer/report/report-deviceusageuserdetail.md +7 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitycounts.md +7 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitydetail.md +7 -0
- package/docs/docs/cmd/yammer/report/report-groupsactivitygroupcounts.md +7 -0
- package/docs/docs/cmd/yammer/user/user-get.md +55 -0
- package/docs/docs/cmd/yammer/user/user-list.md +55 -0
- package/docs/docs/cmd/yammer/yammer-search.md +15 -3
- package/package.json +3 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# purview sensitivitylabel list
|
|
2
|
+
|
|
3
|
+
Get a list of sensitivity labels
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 purview sensitivitylabel list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--userId [userId]`
|
|
14
|
+
: User's Azure AD ID. Optionally specify this if you want to get a list of sensitivity labels that the user has access to. Specify either `userId` or `userName` but not both.
|
|
15
|
+
|
|
16
|
+
`--userName [userName]`
|
|
17
|
+
: User's UPN (user principal name, e.g. johndoe@example.com). Optionally specify this if you want to get a list of sensitivity labels that the user has access to. Specify either `userId` or `userName` but not both.
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
!!! attention
|
|
24
|
+
This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reached general availability.
|
|
25
|
+
|
|
26
|
+
!!! attention
|
|
27
|
+
When operating in app-only mode, you have the option to use either the `userName` or `userId` parameters to retrieve the sensitivity label for a specific user. Without specifying either of these parameters, the command will retrieve the sensitivity label for the currently authenticated user when operating in delegated mode.
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
Get a list of sensitivity labels
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
m365 purview sensitivitylabel list
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Get a list of sensitivity labels that a specific user has access to by its Id
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
m365 purview sensitivitylabel list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Get a list of sensitivity labels that a specific user has access to by its UPN
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
m365 purview sensitivitylabel list --userName john.doe@contoso.com
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Response
|
|
50
|
+
|
|
51
|
+
=== "JSON"
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
[
|
|
55
|
+
{
|
|
56
|
+
"id": "6f4fb2db-ecf4-4279-94ba-23d059bf157e",
|
|
57
|
+
"name": "Unrestricted",
|
|
58
|
+
"description": "",
|
|
59
|
+
"color": "",
|
|
60
|
+
"sensitivity": 0,
|
|
61
|
+
"tooltip": "Information either intended for general distribution, or which would not have any impact on the organization if it were to be distributed.",
|
|
62
|
+
"isActive": true,
|
|
63
|
+
"isAppliable": true,
|
|
64
|
+
"contentFormats": [
|
|
65
|
+
"file",
|
|
66
|
+
"email"
|
|
67
|
+
],
|
|
68
|
+
"hasProtection": false,
|
|
69
|
+
"parent": null
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
=== "Text"
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
id name isActive
|
|
78
|
+
------------------------------------ --------------------- --------
|
|
79
|
+
6f4fb2db-ecf4-4279-94ba-23d059bf157e Unrestricted true
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
=== "CSV"
|
|
83
|
+
|
|
84
|
+
```csv
|
|
85
|
+
id,name,isActive
|
|
86
|
+
6f4fb2db-ecf4-4279-94ba-23d059bf157e,Unrestricted,1
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
=== "Markdown"
|
|
90
|
+
|
|
91
|
+
```md
|
|
92
|
+
# purview sensitivitylabel list
|
|
93
|
+
|
|
94
|
+
Date: 3/26/2023
|
|
95
|
+
|
|
96
|
+
## Unrestricted (6f4fb2db-ecf4-4279-94ba-23d059bf157e)
|
|
97
|
+
|
|
98
|
+
Property | Value
|
|
99
|
+
---------|-------
|
|
100
|
+
id | 6f4fb2db-ecf4-4279-94ba-23d059bf157e
|
|
101
|
+
name | Unrestricted
|
|
102
|
+
description |
|
|
103
|
+
color |
|
|
104
|
+
sensitivity | 0
|
|
105
|
+
tooltip | Information either intended for general distribution, or which would not have any impact on the organization if it were to be distributed.
|
|
106
|
+
isActive | true
|
|
107
|
+
isAppliable | true
|
|
108
|
+
contentFormats | ["file","email"]
|
|
109
|
+
hasProtection | false
|
|
110
|
+
parent | null
|
|
111
|
+
```
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# purview sensitivitylabel policysettings list
|
|
2
|
+
|
|
3
|
+
Get a list of policy settings for a sensitivity label.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 purview sensitivitylabel policysettings list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--userId [userId]`
|
|
14
|
+
: User's Azure AD ID. Optionally specify this if you want to get a list of policy settings for a sensitivity label that the user has access to. Specify either `userId` or `userName` but not both.
|
|
15
|
+
|
|
16
|
+
`--userName [userName]`
|
|
17
|
+
: User's UPN (user principal name, e.g. johndoe@example.com). Optionally specify this if you want to get a list of policy settings for a sensitivity label that the user has access to. Specify either `userId` or `userName` but not both.
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
!!! attention
|
|
24
|
+
This command is based on a Microsoft Graph API that is currently in preview and is subject to change once the API reached general availability.
|
|
25
|
+
|
|
26
|
+
!!! attention
|
|
27
|
+
When operating in app-only mode, you have the option to use either the `userName` or `userId` parameters to retrieve the sensitivity policy settings for a specific user. Without specifying either of these parameters, the command will retrieve the sensitivity policy settings for the currently authenticated user when operating in delegated mode.
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
Get a list of policy settings for a sensitivity label.
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
m365 purview sensitivitylabel policysettings list
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Get a list of policy settings for a sensitivity label that a specific user has access to by its Id.
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
m365 purview sensitivitylabel policysettings list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Get a list of policy settings for a sensitivity label that a specific user has access to by its UPN.
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
m365 purview sensitivitylabel policysettings list --userName john.doe@contoso.com
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Response
|
|
50
|
+
|
|
51
|
+
=== "JSON"
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"id": "71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4",
|
|
56
|
+
"moreInfoUrl": "https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels",
|
|
57
|
+
"isMandatory": true,
|
|
58
|
+
"isDowngradeJustificationRequired": true,
|
|
59
|
+
"defaultLabelId": "022bb90d-0cda-491d-b861-d195b14532dc"
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
=== "Text"
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
defaultLabelId : 022bb90d-0cda-491d-b861-d195b14532dc
|
|
67
|
+
id : 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397
|
|
68
|
+
DB021CADB4
|
|
69
|
+
isDowngradeJustificationRequired: true
|
|
70
|
+
isMandatory : true
|
|
71
|
+
moreInfoUrl : https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
=== "CSV"
|
|
75
|
+
|
|
76
|
+
```csv
|
|
77
|
+
id,moreInfoUrl,isMandatory,isDowngradeJustificationRequired,defaultLabelId
|
|
78
|
+
71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4,https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels,1,1,022bb90d-0cda-491d-b861-d195b14532dc
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
=== "Markdown"
|
|
82
|
+
|
|
83
|
+
```md
|
|
84
|
+
# purview sensitivitylabel policysettings list
|
|
85
|
+
|
|
86
|
+
Date: 4/11/2023
|
|
87
|
+
|
|
88
|
+
## 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4
|
|
89
|
+
|
|
90
|
+
Property | Value
|
|
91
|
+
---------|-------
|
|
92
|
+
id | 71F139249895C2F6DC861031DAC47E0C2C37C6595582D4248CC77FD7293681B5DE348BC71AEB44068CB397DB021CADB4
|
|
93
|
+
moreInfoUrl | https://docs.microsoft.com/en-us/microsoft-365/compliance/get-started-with-sensitivity-labels?view=o365-worldwide#end-user-documentation-for-sensitivity-labels
|
|
94
|
+
isMandatory | true
|
|
95
|
+
isDowngradeJustificationRequired | true
|
|
96
|
+
defaultLabelId | 022bb90d-0cda-491d-b861-d195b14532dc
|
|
97
|
+
```
|
|
@@ -69,3 +69,20 @@ m365 search externalconnection get --name "Test"
|
|
|
69
69
|
id,name,description,state,configuration
|
|
70
70
|
CLITest,CLI-Test,CLI Test,draft,"{""authorizedApps"":[""31359c7f-bd7e-475c-86db-fdb8c937548e""],""authorizedAppIds"":[""31359c7f-bd7e-475c-86db-fdb8c937548e""]}"
|
|
71
71
|
```
|
|
72
|
+
|
|
73
|
+
=== "Markdown"
|
|
74
|
+
|
|
75
|
+
```md
|
|
76
|
+
# search externalconnection get --id "CLITest"
|
|
77
|
+
|
|
78
|
+
Date: 2022-11-05
|
|
79
|
+
|
|
80
|
+
## CLI-Test (CLITest)
|
|
81
|
+
|
|
82
|
+
Property | Value
|
|
83
|
+
---------|-------
|
|
84
|
+
id | CLITest
|
|
85
|
+
name | CLI-Test
|
|
86
|
+
description | CLI Test
|
|
87
|
+
state | draft
|
|
88
|
+
```
|
|
@@ -57,3 +57,20 @@ m365 search externalconnection list
|
|
|
57
57
|
id,name,state
|
|
58
58
|
CLITest,CLI-Test,draft
|
|
59
59
|
```
|
|
60
|
+
|
|
61
|
+
=== "Markdown"
|
|
62
|
+
|
|
63
|
+
```md
|
|
64
|
+
# search externalconnection list
|
|
65
|
+
|
|
66
|
+
Date: 2022-09-05
|
|
67
|
+
|
|
68
|
+
## CLI-Test (CLITest)
|
|
69
|
+
|
|
70
|
+
Property | Value
|
|
71
|
+
---------|-------
|
|
72
|
+
id | CLITest
|
|
73
|
+
name | CLI-Test
|
|
74
|
+
description | CLI Test
|
|
75
|
+
state | draft
|
|
76
|
+
```
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# setup
|
|
2
|
+
|
|
3
|
+
Sets up CLI for Microsoft 365 based on your preferences
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 setup [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--interactive`
|
|
14
|
+
: Configure CLI for Microsoft 365 for interactive use without prompting for additional information
|
|
15
|
+
|
|
16
|
+
`--scripting`
|
|
17
|
+
: Configure CLI for Microsoft 365 for use in scripts without prompting for additional information
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
The `m365 setup` command is a wizard that helps you configure the CLI for Microsoft 365 for your needs. It will ask you a series of questions and based on your answers, it will configure the CLI for Microsoft 365 for you.
|
|
24
|
+
|
|
25
|
+
The command will ask you the following questions:
|
|
26
|
+
|
|
27
|
+
- _How do you plan to use the CLI?_
|
|
28
|
+
|
|
29
|
+
You can choose between **interactive** and **scripting** use. In interactive mode, the CLI for Microsoft 365 will prompt you for additional information when needed, automatically open links browser, automatically show help on errors and show spinners. In **scripting** mode, the CLI will not use interactivity to prevent blocking your scripts.
|
|
30
|
+
|
|
31
|
+
- _Are you going to use the CLI in PowerShell?_ (asked only when you chose to configure CLI for scripting)
|
|
32
|
+
|
|
33
|
+
To simplify using CLI in PowerShell, you can configure the CLI to output errors to stdout, instead of the default stderr which is tedious to handle in PowerShell.
|
|
34
|
+
|
|
35
|
+
- _How experienced are you in using the CLI?_
|
|
36
|
+
|
|
37
|
+
You can choose between **beginner** and **proficient**. If you're just starting working with the CLI, it will show you full help information. For more experienced users, it will only show information about commands' options. No matter how you configure this setting, you can always invoke full help by using `--help full`.
|
|
38
|
+
|
|
39
|
+
After you answer these questions, the command will build a preset and ask you to confirm using it to configure the CLI.
|
|
40
|
+
|
|
41
|
+
If you want to configure the CLI on a non-interactive system, or want to configure CLI without answering the questions, you can use the `--interactive` or `--scripting` options. When using these options, CLI will apply the correct presets. Additionally, it will detect if it's used in PowerShell and configure CLI accordingly.
|
|
42
|
+
|
|
43
|
+
The `m365 setup` command uses the following presets:
|
|
44
|
+
|
|
45
|
+
- interactive use:
|
|
46
|
+
- autoOpenLinksInBrowser: true,
|
|
47
|
+
- copyDeviceCodeToClipboard: true,
|
|
48
|
+
- output: 'text',
|
|
49
|
+
- printErrorsAsPlainText: true,
|
|
50
|
+
- prompt: true,
|
|
51
|
+
- showHelpOnFailure: true,
|
|
52
|
+
- showSpinner: true
|
|
53
|
+
- scripting use:
|
|
54
|
+
- autoOpenLinksInBrowser: false,
|
|
55
|
+
- copyDeviceCodeToClipboard: false,
|
|
56
|
+
- output: 'json',
|
|
57
|
+
- printErrorsAsPlainText: false,
|
|
58
|
+
- prompt: false,
|
|
59
|
+
- showHelpOnFailure: false,
|
|
60
|
+
- showSpinner: false
|
|
61
|
+
- use in PowerShell:
|
|
62
|
+
- errorOutput: 'stdout'
|
|
63
|
+
- beginner:
|
|
64
|
+
- helpMode: 'full'
|
|
65
|
+
- proficient:
|
|
66
|
+
- helpMode: 'options'
|
|
67
|
+
|
|
68
|
+
## Examples
|
|
69
|
+
|
|
70
|
+
Configure CLI for Microsoft based on your preferences interactively
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
m365 setup
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Configure CLI for Microsoft for interactive use without prompting for additional information
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
m365 setup --interactive
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Configure CLI for Microsoft for use in scripts without prompting for additional information
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
m365 setup --scripting
|
|
86
|
+
```
|
|
@@ -36,7 +36,7 @@ This command doesn't change your project files. Instead, it gives you a report w
|
|
|
36
36
|
|
|
37
37
|
!!! important
|
|
38
38
|
Run this command in the folder where the project that you want to validate is located. This command doesn't change your project files.
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
## Examples
|
|
41
41
|
|
|
42
42
|
Validate if your project is correctly set up and save the findings in a Markdown file
|
|
@@ -29,7 +29,7 @@ m365 spfx project upgrade [options]
|
|
|
29
29
|
|
|
30
30
|
## Remarks
|
|
31
31
|
|
|
32
|
-
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.17.
|
|
32
|
+
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.17.2).
|
|
33
33
|
|
|
34
34
|
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.
|
|
35
35
|
|
|
@@ -29,7 +29,7 @@ m365 spo applicationcustomizer add [options]
|
|
|
29
29
|
|
|
30
30
|
## Remarks
|
|
31
31
|
|
|
32
|
-
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
|
|
32
|
+
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 treats quotes differently. For example, this is how an application customizer can be created from the Windows cmd.exe:
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
m365 spo applicationcustomizer add --webUrl https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# spo applicationcustomizer remove
|
|
2
|
+
|
|
3
|
+
Removes an application customizer that is added to a site
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 spo applicationcustomizer remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-u, --webUrl <webUrl>`
|
|
14
|
+
: The url of the site.
|
|
15
|
+
|
|
16
|
+
`-t, --title [title]`
|
|
17
|
+
: The title of the Application Customizer. Specify either `title`, `id` or `clientSideComponentId`.
|
|
18
|
+
|
|
19
|
+
`-i, --id [id]`
|
|
20
|
+
: The id of the Application Customizer. Specify either `title`, `id` or `clientSideComponentId`.
|
|
21
|
+
|
|
22
|
+
`-c, --clientSideComponentId [clientSideComponentId]`
|
|
23
|
+
: The Client Side Component Id (GUID) of the application customizer. Specify either `title`, `id` or `clientSideComponentId`.
|
|
24
|
+
|
|
25
|
+
`-s, --scope [scope]`
|
|
26
|
+
: Scope of the application customizer. Allowed values: `Site`, `Web`, and `All`. Defaults to `All`.
|
|
27
|
+
|
|
28
|
+
`--confirm`
|
|
29
|
+
: Don't prompt for confirming removal of the application customizer.
|
|
30
|
+
|
|
31
|
+
--8<-- "docs/cmd/_global.md"
|
|
32
|
+
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
If the command finds multiple application customizers with the specified title or clientSideComponentId, it will prompt you to disambiguate which customizer it should remove, listing the discovered IDs.
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
Remove an application customizer by id
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 spo applicationcustomizer remove --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Remove an application customizer by title
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 spo applicationcustomizer remove --title "Some customizer" --webUrl https://contoso.sharepoint.com/sites/sales
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Remove an application customizer by clientSideComponentId
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 spo applicationcustomizer remove --clientSideComponentId 7096cded-b83d-4eab-96f0-df477ed7c0bc --webUrl https://contoso.sharepoint.com/sites/sales
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Remove an application customizer by its id without prompting for confirmation
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
m365 spo applicationcustomizer remove --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales --confirm
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Remove an application customizer from a site collection by its id without prompting for confirmation
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
m365 spo applicationcustomizer remove --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales --confirm --scope Site
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Remove an application customizer from a site by its id without prompting for confirmation
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
m365 spo applicationcustomizer remove --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales --confirm --scope Web
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Response
|
|
76
|
+
|
|
77
|
+
The command won't return a response on success.
|
|
@@ -41,7 +41,7 @@ m365 spo commandset set [options]
|
|
|
41
41
|
|
|
42
42
|
## Remarks
|
|
43
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
|
|
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 treats quotes differently. For example, this is how a ListView Command Set can be created from the Windows cmd.exe:
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
47
|
m365 spo commandset set --webUrl https://contoso.sharepoint.com/sites/test --title "CLI Commandset" --location "Both" --listType "List" --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# spo contenttype set
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Updates an existing content type
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@ m365 spo contenttype set [options]
|
|
|
16
16
|
`-i, --id [id]`
|
|
17
17
|
: ID of the content type to update. Specify `id` or `name` but not both, one is required.
|
|
18
18
|
|
|
19
|
-
`-n, name [name]`
|
|
19
|
+
`-n, --name [name]`
|
|
20
20
|
: Name of the content type to update. Specify the `id` or the `name` but not both, one is required.
|
|
21
21
|
|
|
22
22
|
`--listTitle [listTitle]`
|
|
@@ -68,7 +68,7 @@ m365 spo customaction add [options]
|
|
|
68
68
|
|
|
69
69
|
## Remarks
|
|
70
70
|
|
|
71
|
-
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
|
|
71
|
+
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 treats quotes differently. For example, this is how ApplicationCustomizer user custom action can be created from the Windows cmd.exe:
|
|
72
72
|
|
|
73
73
|
```sh
|
|
74
74
|
m365 spo customaction add --webUrl https://contoso.sharepoint.com/sites/test --title "YourAppCustomizer" --name "YourName" --location "ClientSideExtension.ApplicationCustomizer" --clientSideComponentId b41916e7-e69d-467f-b37f-ff8ecf8f99f2 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
@@ -71,7 +71,7 @@ m365 spo customaction set [options]
|
|
|
71
71
|
|
|
72
72
|
## Remarks
|
|
73
73
|
|
|
74
|
-
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
|
|
74
|
+
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 treats quotes differently. For example, this is how ApplicationCustomizer user custom action can be created from the Windows cmd.exe:
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
77
|
m365 spo customaction set --webUrl https://contoso.sharepoint.com/sites/test --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --clientSideComponentProperties '{\"testMessage\":\"Test message\"}'
|
|
@@ -13,8 +13,11 @@ m365 spo file list [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: The URL of the site where the folder from which to retrieve files is located
|
|
15
15
|
|
|
16
|
+
`-f, --folderUrl <folderUrl>`
|
|
17
|
+
: The server- or site-relative URL of the parent folder from which to retrieve files
|
|
18
|
+
|
|
16
19
|
`-f, --folder <folder>`
|
|
17
|
-
: The server- or site-relative URL of the folder from which to retrieve files
|
|
20
|
+
: (deprecated. Use `folderUrl` instead) The server- or site-relative URL of the folder from which to retrieve files
|
|
18
21
|
|
|
19
22
|
`--fields [fields]`
|
|
20
23
|
: Comma-separated list of fields to retrieve. Will retrieve all fields if not specified.
|
|
@@ -36,25 +39,25 @@ When the `fields` option includes values with a `/`, for example: `ListItemAllFi
|
|
|
36
39
|
Return all files from a folder
|
|
37
40
|
|
|
38
41
|
```sh
|
|
39
|
-
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
42
|
+
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents'
|
|
40
43
|
```
|
|
41
44
|
|
|
42
45
|
Return all files from a folder and all the sub-folders
|
|
43
46
|
|
|
44
47
|
```sh
|
|
45
|
-
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
48
|
+
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --recursive
|
|
46
49
|
```
|
|
47
50
|
|
|
48
51
|
Return the files from a folder with specific fields which will be expanded
|
|
49
52
|
|
|
50
53
|
```sh
|
|
51
|
-
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
54
|
+
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --fields "Title,Length"
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
Return the files from a folder that meet the criteria of the filter with specific fields which will be expanded
|
|
55
58
|
|
|
56
59
|
```sh
|
|
57
|
-
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --
|
|
60
|
+
m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl 'Shared Documents' --fields ListItemAllFields/Id --filter "Name eq 'document.docx'"
|
|
58
61
|
```
|
|
59
62
|
|
|
60
63
|
## Response
|
|
@@ -107,7 +110,7 @@ m365 spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --fol
|
|
|
107
110
|
=== "Markdown"
|
|
108
111
|
|
|
109
112
|
```md
|
|
110
|
-
# spo file list --webUrl "https://contoso.sharepoint.com" --
|
|
113
|
+
# spo file list --webUrl "https://contoso.sharepoint.com" --folderUrl "Shared Documents"
|
|
111
114
|
|
|
112
115
|
Date: 23/3/2023
|
|
113
116
|
|
|
@@ -8,6 +8,12 @@ Removes the specified file
|
|
|
8
8
|
m365 spo file remove [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
## Alias
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
m365 spo page template remove
|
|
15
|
+
```
|
|
16
|
+
|
|
11
17
|
## Options
|
|
12
18
|
|
|
13
19
|
`-w, --webUrl <webUrl>`
|
|
@@ -46,3 +52,9 @@ Move the file with server-relative URL _/sites/project-x/SharedDocuments/Test.do
|
|
|
46
52
|
```sh
|
|
47
53
|
m365 spo file remove --webUrl https://contoso.sharepoint.com/sites/project-x --url /sites/project-x/SharedDocuments/Test.docx --recycle
|
|
48
54
|
```
|
|
55
|
+
|
|
56
|
+
Remove the page template with site-relative URL _SharedDocuments/Test.docx_ from located in site _https://contoso.sharepoint.com/sites/project-x_
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
m365 spo page template remove --webUrl https://contoso.sharepoint.com/sites/project-x --url SharedDocuments/Forms/Template.dotx
|
|
60
|
+
```
|
|
@@ -45,7 +45,7 @@ m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/test1 --sourc
|
|
|
45
45
|
Copies folder to a document library in another site collection. Allow for schema mismatch
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
m365 spo folder
|
|
48
|
+
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/test1 --sourceUrl /Shared%20Documents/MyFolder --targetUrl /sites/test2/Shared%20Documents/ --allowSchemaMismatch
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
## More information
|
|
@@ -30,6 +30,10 @@ m365 spo list get [options]
|
|
|
30
30
|
|
|
31
31
|
--8<-- "docs/cmd/_global.md"
|
|
32
32
|
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
When the `properties` option includes values with a `/`, for example: `ListItemAllFields/Id`, an additional `$expand` query parameter will be included on `ListItemAllFields`.
|
|
36
|
+
|
|
33
37
|
## Examples
|
|
34
38
|
|
|
35
39
|
Get information about a list with specified ID located in the specified site.
|
|
@@ -62,6 +66,12 @@ Get information about a list returning the specified list properties.
|
|
|
62
66
|
m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Id,HasUniqueRoleAssignments,AllowContentTypes"
|
|
63
67
|
```
|
|
64
68
|
|
|
69
|
+
Get information about a list returning the list Id, Title and ServerRelativeUrl properties.
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
m365 spo list get --title Documents --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Title,Id,RootFolder/ServerRelativeUrl"
|
|
73
|
+
```
|
|
74
|
+
|
|
65
75
|
Get information about a list along with the roles and permissions.
|
|
66
76
|
|
|
67
77
|
```sh
|
|
@@ -13,8 +13,18 @@ m365 spo list list [options]
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
14
|
: URL of the site where the lists to retrieve are located.
|
|
15
15
|
|
|
16
|
+
`-p, --properties [properties]`
|
|
17
|
+
: Comma-separated list of properties to retrieve. Will retrieve all properties if not specified.
|
|
18
|
+
|
|
19
|
+
`-f, --filter [filter]`
|
|
20
|
+
: OData filter to use to query the lists with.
|
|
21
|
+
|
|
16
22
|
--8<-- "docs/cmd/_global.md"
|
|
17
23
|
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
When the `--properties` option includes values with a `/`, for example: `RootFolder/ServerRelativeUrl`, an additional `$expand` query parameter should be included on `RootFolder`.
|
|
27
|
+
|
|
18
28
|
## Examples
|
|
19
29
|
|
|
20
30
|
Return all lists located in in a specific site.
|
|
@@ -23,6 +33,24 @@ Return all lists located in in a specific site.
|
|
|
23
33
|
m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
24
34
|
```
|
|
25
35
|
|
|
36
|
+
Return all lists located in in a specific site with specific properties.
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --properties "BaseTemplate,ParentWebUrl"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Return all lists located in in a specific site with the Id, Title and ServerRelativeUrl properties.
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --properties "Id,Title,RootFolder/ServerRelativeUrl"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Return all lists located in in a specific site based on the given filter.
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 spo list list --webUrl https://contoso.sharepoint.com/sites/project-x --filter "BaseTemplate eq 100"
|
|
52
|
+
```
|
|
53
|
+
|
|
26
54
|
## More information
|
|
27
55
|
|
|
28
56
|
- List REST API resources: [https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListEndpoint](https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListEndpoint)
|