@pnp/cli-microsoft365 6.8.0-beta.9f8a015 → 6.8.0-beta.bb09db9
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/dist/m365/commands/commands.js +1 -0
- package/dist/m365/commands/docs.js +42 -0
- package/dist/m365/commands/login.js +1 -1
- 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-upgrade/upgrade-1.15.2.js +2 -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/page/page-section-add.js +2 -3
- 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 +1 -0
- package/docs/docs/cmd/aad/o365group/o365group-get.md +0 -12
- 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/pa/app/app-consent-set.md +47 -0
- package/docs/docs/cmd/planner/task/task-get.md +0 -6
- 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/spo/file/file-list.md +9 -6
- package/docs/docs/cmd/spo/file/file-remove.md +12 -0
- 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/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-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/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 +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# docs
|
|
2
|
+
|
|
3
|
+
Returns the CLI for Microsoft 365 docs webpage URL
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 docs [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
--8<-- "docs/cmd/_global.md"
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
Configure `autoOpenLinksInBrowser` using [cli config set](../cmd/cli/config/config-set.md) to automatically open the webpage in the default browser.
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
Returns the CLI for Microsoft 365 docs webpage URL
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
m365 docs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
=== "JSON"
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
"https://pnp.github.io/cli-microsoft365/"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
=== "Text"
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
https://pnp.github.io/cli-microsoft365/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
=== "CSV"
|
|
42
|
+
|
|
43
|
+
```csv
|
|
44
|
+
https://pnp.github.io/cli-microsoft365/
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
=== "Markdown"
|
|
48
|
+
|
|
49
|
+
```md
|
|
50
|
+
https://pnp.github.io/cli-microsoft365/
|
|
51
|
+
```
|
|
@@ -121,3 +121,21 @@ m365 flow environment list
|
|
|
121
121
|
name,displayName
|
|
122
122
|
d87a7535-dd31-4437-bfe1-95340acd55c5,Contoso Environment
|
|
123
123
|
```
|
|
124
|
+
|
|
125
|
+
=== "Markdown"
|
|
126
|
+
|
|
127
|
+
```md
|
|
128
|
+
# flow environment list
|
|
129
|
+
|
|
130
|
+
Date: 2023-05-18
|
|
131
|
+
|
|
132
|
+
## Contoso Environment (/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4)
|
|
133
|
+
|
|
134
|
+
Property | Value
|
|
135
|
+
---------|-------
|
|
136
|
+
name | Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4
|
|
137
|
+
location | europe
|
|
138
|
+
type | Microsoft.ProcessSimple/environments
|
|
139
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4
|
|
140
|
+
displayName | Contoso Environment
|
|
141
|
+
```
|
|
@@ -417,3 +417,23 @@ m365 flow get --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --n
|
|
|
417
417
|
name,displayName,description,triggers,actions
|
|
418
418
|
ca76d7b8-3b76-4050-8c03-9fb310ad172f,My Flow,,OpenApiConnection,"OpenApiConnection-AnalyzeImageV2, Compose, InitializeVariable, OpenApiConnection-HttpRequest, ParseJson, OpenApiConnection-PatchFileItem"
|
|
419
419
|
```
|
|
420
|
+
|
|
421
|
+
=== "Markdown"
|
|
422
|
+
|
|
423
|
+
```md
|
|
424
|
+
# flow get --environmentName "Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4" --name "ca76d7b8-3b76-4050-8c03-9fb310ad172f"
|
|
425
|
+
|
|
426
|
+
Date: 2023-05-18
|
|
427
|
+
|
|
428
|
+
## My Flow (/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/ca76d7b8-3b76-4050-8c03-9fb310ad172f)
|
|
429
|
+
|
|
430
|
+
Property | Value
|
|
431
|
+
---------|-------
|
|
432
|
+
name | ca76d7b8-3b76-4050-8c03-9fb310ad172f
|
|
433
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/ca76d7b8-3b76-4050-8c03-9fb310ad172f
|
|
434
|
+
type | Microsoft.ProcessSimple/environments/flows
|
|
435
|
+
displayName | My Flow
|
|
436
|
+
description | My Flow
|
|
437
|
+
triggers | OpenApiConnection
|
|
438
|
+
actions | OpenApiConnection-AnalyzeImageV2, Compose, InitializeVariable, OpenApiConnection-HttpRequest, ParseJson, OpenApiConnection-PatchFileItem
|
|
439
|
+
```
|
|
@@ -147,3 +147,20 @@ m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --
|
|
|
147
147
|
name,displayName
|
|
148
148
|
00afcb83-df7b-4fe0-ab9c-1542a1dc66a9,Contoso Invoicing Flow
|
|
149
149
|
```
|
|
150
|
+
|
|
151
|
+
=== "Markdown"
|
|
152
|
+
|
|
153
|
+
```md
|
|
154
|
+
# flow list --environmentName "Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4"
|
|
155
|
+
|
|
156
|
+
Date: 2023-05-18
|
|
157
|
+
|
|
158
|
+
## Contoso Invoicing Flow (/providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/00afcb83-df7b-4fe0-ab9c-1542a1dc66a9)
|
|
159
|
+
|
|
160
|
+
Property | Value
|
|
161
|
+
---------|-------
|
|
162
|
+
name | 00afcb83-df7b-4fe0-ab9c-1542a1dc66a9
|
|
163
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-1e852b49-bf4b-4ba5-bcd4-a8c4706c8ed4/flows/00afcb83-df7b-4fe0-ab9c-1542a1dc66a9
|
|
164
|
+
type | Microsoft.ProcessSimple/environments/flows
|
|
165
|
+
displayName | Contoso Invoicing Flow
|
|
166
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# pa app consent set
|
|
2
|
+
|
|
3
|
+
Configures if users can bypass the API Consent window for the selected canvas app
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 pa app consent set [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environment <environment>`
|
|
14
|
+
: The name of the environment.
|
|
15
|
+
|
|
16
|
+
`-n, --name <name>`
|
|
17
|
+
: The name of the Power App to update
|
|
18
|
+
|
|
19
|
+
`-b, --bypass <bypass>`
|
|
20
|
+
: Set to `true` to allow users to bypass the API Consent window. Set to `false` to disable the bypass.
|
|
21
|
+
|
|
22
|
+
`--confirm`
|
|
23
|
+
: Don't prompt for confirmation
|
|
24
|
+
|
|
25
|
+
--8<-- "docs/cmd/_global.md"
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
This command only works for canvas apps.
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Enables the bypass for the specified canvas app
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 pa app consent set --environment 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass true
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Disables the bypass consent for the specified canvas app
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
m365 pa app consent set --environment 4be50206-9576-4237-8b17-38d8aadfaa36 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d --bypass false --confirm
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Response
|
|
46
|
+
|
|
47
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# purview sensitivitylabel get
|
|
2
|
+
|
|
3
|
+
Retrieve the specified sensitivity label
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 purview sensitivitylabel get [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-i, --id <id>`
|
|
14
|
+
: The Id of the sensitivity label.
|
|
15
|
+
|
|
16
|
+
`--userId [userId]`
|
|
17
|
+
: 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.
|
|
18
|
+
|
|
19
|
+
`--userName [userName]`
|
|
20
|
+
: 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.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
!!! attention
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
!!! attention
|
|
30
|
+
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.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Get a sensitivity label
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 purview sensitivitylabel get --id 6f4fb2db-ecf4-4279-94ba-23d059bf157e
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Get a sensitivity label that a specific user has access to by its Id
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 purview sensitivitylabel get --id 6f4fb2db-ecf4-4279-94ba-23d059bf157e --userId 59f80e08-24b1-41f8-8586-16765fd830d3
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Get a sensitivity label that a specific user has access to by its UPN
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 purview sensitivitylabel get --id 6f4fb2db-ecf4-4279-94ba-23d059bf157e --userName john.doe@contoso.com
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
=== "JSON"
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"id": "6f4fb2db-ecf4-4279-94ba-23d059bf157e",
|
|
60
|
+
"name": "Unrestricted",
|
|
61
|
+
"description": "",
|
|
62
|
+
"color": "",
|
|
63
|
+
"sensitivity": 0,
|
|
64
|
+
"tooltip": "Information either intended for general distribution, or which would not have any impact on the organization if it were to be distributed.",
|
|
65
|
+
"isActive": true,
|
|
66
|
+
"isAppliable": true,
|
|
67
|
+
"contentFormats": [
|
|
68
|
+
"file",
|
|
69
|
+
"email"
|
|
70
|
+
],
|
|
71
|
+
"hasProtection": false
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
=== "Text"
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
color :
|
|
79
|
+
contentFormats: ["file","email"]
|
|
80
|
+
description :
|
|
81
|
+
hasProtection : false
|
|
82
|
+
id : 6f4fb2db-ecf4-4279-94ba-23d059bf157e
|
|
83
|
+
isActive : true
|
|
84
|
+
isAppliable : true
|
|
85
|
+
name : Unrestricted
|
|
86
|
+
sensitivity : 0
|
|
87
|
+
tooltip : Information either intended for general distribution, or which would not have any impact on the organization if it were to be distributed.
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
=== "CSV"
|
|
91
|
+
|
|
92
|
+
```csv
|
|
93
|
+
id,name,description,color,sensitivity,tooltip,isActive,isAppliable,contentFormats,hasProtection
|
|
94
|
+
6f4fb2db-ecf4-4279-94ba-23d059bf157e,Unrestricted,,,0,"Information either intended for general distribution, or which would not have any impact on the organization if it were to be distributed.",1,1,"[""file"",""email""]",
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
=== "Markdown"
|
|
98
|
+
|
|
99
|
+
```md
|
|
100
|
+
# purview sensitivitylabel get --id "6f4fb2db-ecf4-4279-94ba-23d059bf157e"
|
|
101
|
+
|
|
102
|
+
Date: 3/25/2023
|
|
103
|
+
|
|
104
|
+
## Unrestricted (6f4fb2db-ecf4-4279-94ba-23d059bf157e)
|
|
105
|
+
|
|
106
|
+
Property | Value
|
|
107
|
+
---------|-------
|
|
108
|
+
id | 6f4fb2db-ecf4-4279-94ba-23d059bf157e
|
|
109
|
+
name | Unrestricted
|
|
110
|
+
description |
|
|
111
|
+
color |
|
|
112
|
+
sensitivity | 0
|
|
113
|
+
tooltip | Information either intended for general distribution, or which would not have any impact on the organization if it were to be distributed.
|
|
114
|
+
isActive | true
|
|
115
|
+
isAppliable | true
|
|
116
|
+
contentFormats | ["file","email"]
|
|
117
|
+
hasProtection | false
|
|
118
|
+
```
|
|
@@ -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
|
+
```
|
|
@@ -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
|
+
```
|
|
@@ -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)
|