@pnp/cli-microsoft365 11.1.0-beta.317d8bb → 11.1.0-beta.43467d2
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/.devproxy/api-specs/sharepoint.yaml +23 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +10 -7
- package/dist/Command.js +2 -2
- package/dist/auth/msalCachePlugin.js +6 -2
- package/dist/autocomplete.js +6 -2
- package/dist/chili/chili.js +2 -1
- package/dist/cli/cli.js +4 -2
- package/dist/config.js +0 -1
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +2 -2
- package/dist/m365/app/commands/permission/permission-list.js +4 -2
- package/dist/m365/booking/commands/business/business-list.js +5 -0
- package/dist/m365/commands/setup.js +6 -3
- package/dist/m365/commands/status.js +5 -1
- package/dist/m365/connection/commands/connection-list.js +5 -1
- package/dist/m365/entra/commands/app/app-role-add.js +1 -1
- package/dist/m365/entra/commands/group/group-add.js +1 -1
- package/dist/m365/entra/commands/group/group-set.js +1 -1
- package/dist/m365/entra/commands/m365group/m365group-add.js +0 -1
- package/dist/m365/file/commands/convert/convert-pdf.js +1 -6
- package/dist/m365/flow/commands/environment/environment-list.js +5 -0
- package/dist/m365/flow/commands/flow-export.js +8 -5
- package/dist/m365/flow/commands/run/run-get.js +3 -3
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +1 -1
- package/dist/m365/onedrive/commands/onedrive-list.js +5 -0
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +5 -0
- package/dist/m365/pa/commands/app/app-export.js +1 -1
- package/dist/m365/pa/commands/app/app-get.js +1 -1
- package/dist/m365/pa/commands/environment/environment-list.js +5 -0
- package/dist/m365/planner/commands/tenant/tenant-settings-list.js +5 -0
- package/dist/m365/pp/commands/environment/environment-list.js +10 -23
- package/dist/m365/pp/commands/solution/solution-publisher-get.js +1 -1
- package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +5 -0
- package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +5 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +5 -0
- package/dist/m365/spfx/commands/package/package-generate.js +3 -1
- package/dist/m365/spfx/commands/project/base-project-command.js +13 -5
- package/dist/m365/spfx/commands/project/project-doctor/rules/FN021007_PKG_only_one_rush_stack_compiler_installed.js +1 -1
- package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +6 -4
- package/dist/m365/spfx/commands/project/project-model/ScssFile.js +3 -1
- package/dist/m365/spfx/commands/project/project-model/TsFile.js +6 -2
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.2.js +1 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +5 -5
- package/dist/m365/spo/commands/file/file-add.js +4 -2
- package/dist/m365/spo/commands/file/file-rename.js +3 -4
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-attachment-add.js +1 -1
- package/dist/m365/spo/commands/listitem/listitem-batch-set.js +9 -5
- package/dist/m365/spo/commands/page/clientsidepages.js +12 -12
- package/dist/m365/spo/commands/page/page-add.js +4 -2
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +1 -0
- package/dist/m365/spo/commands/page/page-set.js +4 -2
- package/dist/m365/spo/commands/page/page-text-add.js +1 -0
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +34 -54
- package/dist/m365/spo/commands/site/site-alert-list.js +107 -0
- package/dist/m365/spo/commands/theme/theme-apply.js +1 -1
- package/dist/m365/spo/commands/web/web-reindex.js +17 -27
- package/dist/m365/spo/commands.js +1 -0
- package/dist/m365/teams/commands/tab/tab-add.js +9 -3
- package/dist/m365/viva/commands/connections/connections-app-create.js +1 -1
- package/dist/m365/viva/commands/engage/engage-community-user-add.js +1 -1
- package/dist/m365/viva/commands/engage/engage-community-user-remove.js +1 -1
- package/dist/telemetry.js +3 -1
- package/dist/utils/accessToken.js +4 -0
- package/dist/utils/cache.js +3 -2
- package/dist/utils/customAppScope.js +1 -1
- package/dist/utils/directoryExtension.js +1 -1
- package/dist/utils/entraAdministrativeUnit.js +1 -1
- package/dist/utils/entraApp.js +2 -2
- package/dist/utils/entraDevice.js +1 -1
- package/dist/utils/entraServicePrincipal.js +2 -2
- package/dist/utils/formatting.js +1 -1
- package/dist/utils/md.js +2 -2
- package/dist/utils/odata.js +2 -0
- package/dist/utils/planner.js +1 -1
- package/dist/utils/powerPlatform.js +2 -2
- package/dist/utils/roleDefinition.js +2 -2
- package/dist/utils/spo.js +10 -11
- package/dist/utils/urlUtil.js +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/utils/vivaEngage.js +3 -3
- package/docs/docs/cmd/entra/approleassignment/approleassignment-add.mdx +18 -0
- package/docs/docs/cmd/entra/approleassignment/approleassignment-list.mdx +18 -0
- package/docs/docs/cmd/entra/approleassignment/approleassignment-remove.mdx +20 -0
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +14 -0
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +15 -0
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +14 -0
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx +14 -0
- package/docs/docs/cmd/entra/group/group-add.mdx +18 -0
- package/docs/docs/cmd/entra/group/group-get.mdx +18 -0
- package/docs/docs/cmd/entra/group/group-list.mdx +18 -0
- package/docs/docs/cmd/entra/group/group-member-add.mdx +20 -0
- package/docs/docs/cmd/entra/group/group-member-list.mdx +18 -0
- package/docs/docs/cmd/entra/group/group-member-remove.mdx +20 -0
- package/docs/docs/cmd/entra/group/group-member-set.mdx +20 -0
- package/docs/docs/cmd/entra/group/group-remove.mdx +20 -0
- package/docs/docs/cmd/entra/group/group-set.mdx +20 -0
- package/docs/docs/cmd/entra/groupsetting/groupsetting-add.mdx +19 -0
- package/docs/docs/cmd/entra/groupsetting/groupsetting-get.mdx +19 -0
- package/docs/docs/cmd/entra/groupsetting/groupsetting-list.mdx +19 -0
- package/docs/docs/cmd/entra/groupsetting/groupsetting-remove.mdx +21 -0
- package/docs/docs/cmd/entra/groupsetting/groupsetting-set.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-add.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-get.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-list.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-remove.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-renew.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitycounts.mdx +18 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitydetail.mdx +18 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activityfilecounts.mdx +18 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +18 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitystorage.mdx +18 -0
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-teamify.mdx +19 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +18 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +18 -1
- package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +20 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +20 -0
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +20 -0
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +17 -0
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-remove.mdx +20 -0
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-set.mdx +20 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-add.mdx +18 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +18 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +18 -0
- package/docs/docs/cmd/entra/pim/pim-role-assignment-remove.mdx +18 -0
- package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +18 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-add.mdx +18 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-get.mdx +18 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-list.mdx +18 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-remove.mdx +20 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +18 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-get.mdx +18 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +19 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-remove.mdx +20 -0
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +23 -3
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +27 -6
- package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +18 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +18 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +18 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.mdx +20 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +18 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +18 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +18 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-remove.mdx +21 -1
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-set.mdx +21 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.mdx +11 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.mdx +12 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.mdx +12 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.mdx +14 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.mdx +13 -0
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +18 -0
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +18 -0
- package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-policysettings-list.mdx +18 -0
- package/docs/docs/cmd/spo/site/site-alert-list.mdx +187 -0
- package/eslint-rules/lib/rules/correct-command-class-name.js +18 -2
- package/eslint.config.mjs +270 -0
- package/npm-shrinkwrap.json +1117 -2277
- package/package.json +22 -21
- package/.eslintrc.cjs +0 -289
|
@@ -55,6 +55,24 @@ When using the `--properties` option it's possible to enter a JSON string. In Po
|
|
|
55
55
|
|
|
56
56
|
:::
|
|
57
57
|
|
|
58
|
+
## Permissions
|
|
59
|
+
<Tabs>
|
|
60
|
+
<TabItem value="Delegated">
|
|
61
|
+
|
|
62
|
+
| Resource | Permissions |
|
|
63
|
+
|-----------------|---------------------------|
|
|
64
|
+
| Microsoft Graph | Application.ReadWrite.All |
|
|
65
|
+
|
|
66
|
+
</TabItem>
|
|
67
|
+
<TabItem value="Application">
|
|
68
|
+
|
|
69
|
+
| Resource | Permissions |
|
|
70
|
+
|-----------------|----------------------------------------------------|
|
|
71
|
+
| Microsoft Graph | Application.ReadWrite.All, Directory.ReadWrite.All |
|
|
72
|
+
|
|
73
|
+
</TabItem>
|
|
74
|
+
</Tabs>
|
|
75
|
+
|
|
58
76
|
## Examples
|
|
59
77
|
|
|
60
78
|
Create a schema extension
|
|
@@ -136,4 +154,3 @@ m365 graph schemaextension add --id contoso_MySchemaExtension --description "My
|
|
|
136
154
|
|
|
137
155
|
</TabItem>
|
|
138
156
|
</Tabs>
|
|
139
|
-
|
|
@@ -26,6 +26,24 @@ m365 graph schemaextension get [options]
|
|
|
26
26
|
To get properties of a schema extension definition, you have to pass the ID of the schema
|
|
27
27
|
extension.
|
|
28
28
|
|
|
29
|
+
## Permissions
|
|
30
|
+
<Tabs>
|
|
31
|
+
<TabItem value="Delegated">
|
|
32
|
+
|
|
33
|
+
| Resource | Permissions |
|
|
34
|
+
|-----------------|-------------|
|
|
35
|
+
| Microsoft Graph | User.Read |
|
|
36
|
+
|
|
37
|
+
</TabItem>
|
|
38
|
+
<TabItem value="Application">
|
|
39
|
+
|
|
40
|
+
| Resource | Permissions |
|
|
41
|
+
|-----------------|----------------------|
|
|
42
|
+
| Microsoft Graph | Application.Read.All |
|
|
43
|
+
|
|
44
|
+
</TabItem>
|
|
45
|
+
</Tabs>
|
|
46
|
+
|
|
29
47
|
## Examples
|
|
30
48
|
|
|
31
49
|
Gets properties of a schema extension definition with ID domain_myExtension
|
|
@@ -101,4 +119,3 @@ m365 graph schemaextension get --id domain_myExtension
|
|
|
101
119
|
|
|
102
120
|
</TabItem>
|
|
103
121
|
</Tabs>
|
|
104
|
-
|
|
@@ -34,6 +34,24 @@ m365 graph schemaextension list [options]
|
|
|
34
34
|
|
|
35
35
|
pageNumber is specified as a 0-based index. A value of 2 returns the third page of items.
|
|
36
36
|
|
|
37
|
+
## Permissions
|
|
38
|
+
<Tabs>
|
|
39
|
+
<TabItem value="Delegated">
|
|
40
|
+
|
|
41
|
+
| Resource | Permissions |
|
|
42
|
+
|-----------------|-------------|
|
|
43
|
+
| Microsoft Graph | User.Read |
|
|
44
|
+
|
|
45
|
+
</TabItem>
|
|
46
|
+
<TabItem value="Application">
|
|
47
|
+
|
|
48
|
+
| Resource | Permissions |
|
|
49
|
+
|-----------------|----------------------|
|
|
50
|
+
| Microsoft Graph | Application.Read.All |
|
|
51
|
+
|
|
52
|
+
</TabItem>
|
|
53
|
+
</Tabs>
|
|
54
|
+
|
|
37
55
|
## Examples
|
|
38
56
|
|
|
39
57
|
Get a list of schemaExtension objects created in the current tenant, that can be InDevelopment, Available, or Deprecated.
|
|
@@ -123,4 +141,4 @@ m365 graph schemaextension list --owner 617720dc-85fc-45d7-a187-cee75eaf239e --p
|
|
|
123
141
|
|
|
124
142
|
## More information
|
|
125
143
|
|
|
126
|
-
[https://
|
|
144
|
+
[https://learn.microsoft.com/graph/api/schemaextension-list](https://learn.microsoft.com/graph/api/schemaextension-list)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# graph schemaextension remove
|
|
4
6
|
|
|
@@ -27,6 +29,24 @@ m365 graph schemaextension remove [options]
|
|
|
27
29
|
To remove specified schema extension definition, you have to pass the ID of the schema
|
|
28
30
|
extension.
|
|
29
31
|
|
|
32
|
+
## Permissions
|
|
33
|
+
<Tabs>
|
|
34
|
+
<TabItem value="Delegated">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|---------------------------|
|
|
38
|
+
| Microsoft Graph | Application.ReadWrite.All |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
<TabItem value="Application">
|
|
42
|
+
|
|
43
|
+
| Resource | Permissions |
|
|
44
|
+
|-----------------|----------------------------------------------------|
|
|
45
|
+
| Microsoft Graph | Application.ReadWrite.All, Directory.ReadWrite.All |
|
|
46
|
+
|
|
47
|
+
</TabItem>
|
|
48
|
+
</Tabs>
|
|
49
|
+
|
|
30
50
|
## Examples
|
|
31
51
|
|
|
32
52
|
Removes specified Microsoft Graph schema extension with ID domain_myExtension. Will prompt for confirmation
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# graph schemaextension set
|
|
4
6
|
|
|
@@ -46,21 +48,39 @@ When using the `--properties` option it's possible to enter a JSON string. In Po
|
|
|
46
48
|
|
|
47
49
|
:::
|
|
48
50
|
|
|
51
|
+
## Permissions
|
|
52
|
+
<Tabs>
|
|
53
|
+
<TabItem value="Delegated">
|
|
54
|
+
|
|
55
|
+
| Resource | Permissions |
|
|
56
|
+
|-----------------|---------------------------|
|
|
57
|
+
| Microsoft Graph | Application.ReadWrite.All |
|
|
58
|
+
|
|
59
|
+
</TabItem>
|
|
60
|
+
<TabItem value="Application">
|
|
61
|
+
|
|
62
|
+
| Resource | Permissions |
|
|
63
|
+
|-----------------|----------------------------------------------------|
|
|
64
|
+
| Microsoft Graph | Application.ReadWrite.All, Directory.ReadWrite.All |
|
|
65
|
+
|
|
66
|
+
</TabItem>
|
|
67
|
+
</Tabs>
|
|
68
|
+
|
|
49
69
|
## Examples
|
|
50
70
|
|
|
51
|
-
|
|
71
|
+
Update the description of a schema extension.
|
|
52
72
|
|
|
53
73
|
```sh
|
|
54
74
|
m365 graph schemaextension set --id MySchemaExtension --owner 62375ab9-6b52-47ed-826b-58e47e0e304b --description "My schema extension"
|
|
55
75
|
```
|
|
56
76
|
|
|
57
|
-
Update the target types and properties of a schema extension
|
|
77
|
+
Update the target types and properties of a schema extension.
|
|
58
78
|
|
|
59
79
|
```sh
|
|
60
80
|
m365 graph schemaextension set --id contoso_MySchemaExtension --owner 62375ab9-6b52-47ed-826b-58e47e0e304b --targetTypes "Group,User" --properties '[{"name":"myProp1","type":"Integer"},{"name":"myProp2","type":"String"}]'
|
|
61
81
|
```
|
|
62
82
|
|
|
63
|
-
Change the status of a schema extension to 'Available'
|
|
83
|
+
Change the status of a schema extension to 'Available'.
|
|
64
84
|
|
|
65
85
|
```sh
|
|
66
86
|
m365 graph schemaextension set --id contoso_MySchemaExtension --owner 62375ab9-6b52-47ed-826b-58e47e0e304b --status Available
|
|
@@ -72,39 +72,57 @@ For these subscribers, not setting this property per the timeline would result i
|
|
|
72
72
|
|
|
73
73
|
:::
|
|
74
74
|
|
|
75
|
+
## Permissions
|
|
76
|
+
<Tabs>
|
|
77
|
+
<TabItem value="Delegated">
|
|
78
|
+
|
|
79
|
+
| Resource | Permissions |
|
|
80
|
+
|-----------------|--------------------------------------------|
|
|
81
|
+
| Microsoft Graph | AiEnterpriseInteraction.Read, Calendars.Read, Channel.ReadBasic.All, ChannelMessage.Read.All, ChannelSettings.Read.All, Chat.Read, Chat.ReadBasic, Chat.ReadWrite, ChatMember.Read, ChatMember.ReadWrite, Contacts.Read, Files.Read.All, Group.Read.All, Mail.Read, Mail.ReadBasic, OnlineMeetingRecording.Read.All, OnlineMeetingTranscript.Read.All, Presence.Read.All, Schedule.Read.All, Schedule.ReadWrite.All, SecurityEvents.ReadWrite.All, Sites.Read.All, Tasks.ReadWrite, Team.ReadBasic.All, TeamMember.Read.All, TeamSettings.Read.All, User.Read.All, VirtualEvent.Read |
|
|
82
|
+
|
|
83
|
+
</TabItem>
|
|
84
|
+
<TabItem value="Application">
|
|
85
|
+
|
|
86
|
+
| Resource | Permissions |
|
|
87
|
+
|-----------------|--------------------------------------------|
|
|
88
|
+
| Microsoft Graph | AiEnterpriseInteraction.Read.All, AiEnterpriseInteraction.Read.User, Calendars.Read, CallRecords.Read.All, Channel.ReadBasic.All, ChannelMessage.Read.All, ChannelMessage.Read.Group, ChannelMember.Read.All, ChannelSettings.Read.All, Chat.Manage.Chat, Chat.Read.All, Chat.Read.WhereInstalled, Chat.ReadBasic.All, Chat.ReadBasic.WhereInstalled, Chat.ReadWrite.All, Chat.ReadWrite.WhereInstalled, ChatMember.Read.All, ChatMember.Read.Chat, ChatMember.Read.WhereInstalled, ChatMember.ReadWrite.All, ChatMember.ReadWrite.WhereInstalled, ChatSettings.Read.Chat, ChatSettings.ReadWrite.Chat, Contacts.Read, Files.Read.All, Group.Read.All, Mail.Read, OnlineMeetingRecording.Read.All, OnlineMeetingTranscript.Read.All, Presence.Read.All, PrintTaskDefinition.ReadWrite.All, Printer.Read.All, Printer.ReadWrite.All, Schedule.Read.All, Schedule.ReadWrite.All, SecurityEvents.ReadWrite.All, Sites.Read.All, Team.ReadBasic.All, TeamMember.Read.All, TeamSettings.Read.All, User.Read.All, VirtualEvent.Read.All |
|
|
89
|
+
|
|
90
|
+
</TabItem>
|
|
91
|
+
</Tabs>
|
|
92
|
+
|
|
75
93
|
## Examples
|
|
76
94
|
|
|
77
|
-
Create a subscription
|
|
95
|
+
Create a subscription.
|
|
78
96
|
|
|
79
97
|
```sh
|
|
80
98
|
m365 graph subscription add --resource "me/mailFolders('Inbox')/messages" --changeTypes "updated" --notificationUrl "https://webhook.azurewebsites.net/api/send/myNotifyClient" --expirationDateTime "2016-11-20T18:23:45.935Z" --clientState "secretClientState"
|
|
81
99
|
```
|
|
82
100
|
|
|
83
|
-
Create a subscription on multiple change types and include resource data
|
|
101
|
+
Create a subscription on multiple change types and include resource data.
|
|
84
102
|
|
|
85
103
|
```sh
|
|
86
104
|
m365 graph subscription add --resource "me/messages" --changeTypes "updated,deleted" --withResourceData --encryptionCertificate 'Q0xJIGZvciBNaWNyb3NvZnQgMzY1' --encryptionCertificateId 'myCert' --notificationUrl "https://webhook.azurewebsites.net/api/send/myNotifyClient" --expirationDateTime "2016-11-20T18:23:45.935Z" --clientState "secretClientState"
|
|
87
105
|
```
|
|
88
106
|
|
|
89
|
-
Create a subscription using the maximum allowed expiration for Group resources
|
|
107
|
+
Create a subscription using the maximum allowed expiration for Group resources.
|
|
90
108
|
|
|
91
109
|
```sh
|
|
92
110
|
m365 graph subscription add --resource groups --changeTypes "updated" --notificationUrl "https://webhook.azurewebsites.net/api/send/myNotifyClient" --lifecycleNotificationUrl "https://webhook.azurewebsites.net/api/send/lifecycleNotifications"
|
|
93
111
|
```
|
|
94
112
|
|
|
95
|
-
Create a subscription for Event Hub location if you are using Key Vault
|
|
113
|
+
Create a subscription for Event Hub location if you are using Key Vault.
|
|
96
114
|
|
|
97
115
|
```sh
|
|
98
116
|
m365 graph subscription add --resource user --changeTypes "created,updated,deleted" --notificationUrl "EventHub:https://azureKeyVaultName.vault.azure.net/secrets/secretName?tenantId=contoso.com"
|
|
99
117
|
```
|
|
100
118
|
|
|
101
|
-
Create a subscription for Event Hub location if you are using role-based access control
|
|
119
|
+
Create a subscription for Event Hub location if you are using role-based access control.
|
|
102
120
|
|
|
103
121
|
```sh
|
|
104
122
|
m365 graph subscription add --resource user --changeTypes "created,updated,deleted" --notificationUrl "EventHub:https://eventHubNamespace.servicebus.windows.net/eventhubname/eventHubName?tenantId=contoso.com"
|
|
105
123
|
```
|
|
106
124
|
|
|
107
|
-
Create a subscription for Event Grid Partner Topic and use TLS 1.3
|
|
125
|
+
Create a subscription for Event Grid Partner Topic and use TLS 1.3.
|
|
108
126
|
|
|
109
127
|
```sh
|
|
110
128
|
m365 graph subscription add --resource user --changeTypes "created,updated,deleted" --latestTLSVersion 'v1_3' --notificationUrl "EventGrid:?azuresubscriptionid=8A8A8A8A-4B4B-4C4C-4D4D-12E12E12E12E&resourcegroup=resourceGroupName&partnertopic=partnerTopicName&location=partnerTopicAzureRegionName"
|
|
@@ -190,3 +208,6 @@ m365 graph subscription add --resource user --changeTypes "created,updated,delet
|
|
|
190
208
|
</TabItem>
|
|
191
209
|
</Tabs>
|
|
192
210
|
|
|
211
|
+
## More information
|
|
212
|
+
|
|
213
|
+
[https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions](https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions)
|
|
@@ -47,6 +47,24 @@ This command is based on an API that is currently in preview and is subject to c
|
|
|
47
47
|
|
|
48
48
|
:::
|
|
49
49
|
|
|
50
|
+
## Permissions
|
|
51
|
+
<Tabs>
|
|
52
|
+
<TabItem value="Delegated">
|
|
53
|
+
|
|
54
|
+
| Resource | Permissions |
|
|
55
|
+
|-----------------|---------------------------------|
|
|
56
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
57
|
+
|
|
58
|
+
</TabItem>
|
|
59
|
+
<TabItem value="Application">
|
|
60
|
+
|
|
61
|
+
| Resource | Permissions |
|
|
62
|
+
|-----------------|---------------------------------|
|
|
63
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
64
|
+
|
|
65
|
+
</TabItem>
|
|
66
|
+
</Tabs>
|
|
67
|
+
|
|
50
68
|
## Examples
|
|
51
69
|
|
|
52
70
|
Create a retention event to start retention at the end of 2022 for all employee documents that have been labeled and have the Asset ID _EmployeeNr1234_.
|
|
@@ -21,6 +21,24 @@ m365 purview retentionevent get [options]
|
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
23
23
|
|
|
24
|
+
## Permissions
|
|
25
|
+
<Tabs>
|
|
26
|
+
<TabItem value="Delegated">
|
|
27
|
+
|
|
28
|
+
| Resource | Permissions |
|
|
29
|
+
|-----------------|----------------------------|
|
|
30
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
31
|
+
|
|
32
|
+
</TabItem>
|
|
33
|
+
<TabItem value="Application">
|
|
34
|
+
|
|
35
|
+
| Resource | Permissions |
|
|
36
|
+
|-----------------|----------------------------|
|
|
37
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
38
|
+
|
|
39
|
+
</TabItem>
|
|
40
|
+
</Tabs>
|
|
41
|
+
|
|
24
42
|
## Examples
|
|
25
43
|
|
|
26
44
|
Get a retention event by id.
|
|
@@ -16,6 +16,24 @@ m365 purview retentionevent list [options]
|
|
|
16
16
|
|
|
17
17
|
<Global />
|
|
18
18
|
|
|
19
|
+
## Permissions
|
|
20
|
+
<Tabs>
|
|
21
|
+
<TabItem value="Delegated">
|
|
22
|
+
|
|
23
|
+
| Resource | Permissions |
|
|
24
|
+
|-----------------|----------------------------|
|
|
25
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
26
|
+
|
|
27
|
+
</TabItem>
|
|
28
|
+
<TabItem value="Application">
|
|
29
|
+
|
|
30
|
+
| Resource | Permissions |
|
|
31
|
+
|-----------------|----------------------------|
|
|
32
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
33
|
+
|
|
34
|
+
</TabItem>
|
|
35
|
+
</Tabs>
|
|
36
|
+
|
|
19
37
|
## Examples
|
|
20
38
|
|
|
21
39
|
Get a list of retention events.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# purview retentionevent remove
|
|
4
6
|
|
|
@@ -22,6 +24,24 @@ m365 purview retentionevent remove [options]
|
|
|
22
24
|
|
|
23
25
|
<Global />
|
|
24
26
|
|
|
27
|
+
## Permissions
|
|
28
|
+
<Tabs>
|
|
29
|
+
<TabItem value="Delegated">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|-----------------|---------------------------------|
|
|
33
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
<TabItem value="Application">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|---------------------------------|
|
|
40
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
</Tabs>
|
|
44
|
+
|
|
25
45
|
## Examples
|
|
26
46
|
|
|
27
47
|
Delete a retention event by id
|
|
@@ -32,6 +32,24 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
35
|
+
## Permissions
|
|
36
|
+
<Tabs>
|
|
37
|
+
<TabItem value="Delegated">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|---------------------------------|
|
|
41
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
<TabItem value="Application">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|-----------------|---------------------------------|
|
|
48
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
49
|
+
|
|
50
|
+
</TabItem>
|
|
51
|
+
</Tabs>
|
|
52
|
+
|
|
35
53
|
## Examples
|
|
36
54
|
|
|
37
55
|
Create a retention event type *Contract Expiry*.
|
|
@@ -29,6 +29,24 @@ This command is based on an API that is currently in preview and is subject to c
|
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
32
|
+
## Permissions
|
|
33
|
+
<Tabs>
|
|
34
|
+
<TabItem value="Delegated">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|----------------------------|
|
|
38
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
<TabItem value="Application">
|
|
42
|
+
|
|
43
|
+
| Resource | Permissions |
|
|
44
|
+
|-----------------|----------------------------|
|
|
45
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
46
|
+
|
|
47
|
+
</TabItem>
|
|
48
|
+
</Tabs>
|
|
49
|
+
|
|
32
50
|
## Examples
|
|
33
51
|
|
|
34
52
|
Get a retention event type by id.
|
|
@@ -24,6 +24,24 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
24
24
|
|
|
25
25
|
:::
|
|
26
26
|
|
|
27
|
+
## Permissions
|
|
28
|
+
<Tabs>
|
|
29
|
+
<TabItem value="Delegated">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|-----------------|----------------------------|
|
|
33
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
<TabItem value="Application">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|----------------------------|
|
|
40
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
</Tabs>
|
|
44
|
+
|
|
27
45
|
## Examples
|
|
28
46
|
|
|
29
47
|
Get a list of retention event types.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# purview retentioneventtype remove
|
|
4
6
|
|
|
@@ -30,9 +32,27 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
30
32
|
|
|
31
33
|
:::
|
|
32
34
|
|
|
35
|
+
## Permissions
|
|
36
|
+
<Tabs>
|
|
37
|
+
<TabItem value="Delegated">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|---------------------------------|
|
|
41
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
<TabItem value="Application">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|-----------------|---------------------------------|
|
|
48
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
49
|
+
|
|
50
|
+
</TabItem>
|
|
51
|
+
</Tabs>
|
|
52
|
+
|
|
33
53
|
## Examples
|
|
34
54
|
|
|
35
|
-
Delete a retention event type by id
|
|
55
|
+
Delete a retention event type by id.
|
|
36
56
|
|
|
37
57
|
```sh
|
|
38
58
|
m365 purview retentioneventtype remove --id c37d695e-d581-4ae9-82a0-9364eba4291e
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# purview retentioneventtype set
|
|
4
6
|
|
|
@@ -30,9 +32,27 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
30
32
|
|
|
31
33
|
:::
|
|
32
34
|
|
|
35
|
+
## Permissions
|
|
36
|
+
<Tabs>
|
|
37
|
+
<TabItem value="Delegated">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|---------------------------------|
|
|
41
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
<TabItem value="Application">
|
|
45
|
+
|
|
46
|
+
| Resource | Permissions |
|
|
47
|
+
|-----------------|---------------------------------|
|
|
48
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
49
|
+
|
|
50
|
+
</TabItem>
|
|
51
|
+
</Tabs>
|
|
52
|
+
|
|
33
53
|
## Examples
|
|
34
54
|
|
|
35
|
-
Update the description of a retention event type
|
|
55
|
+
Update the description of a retention event type.
|
|
36
56
|
|
|
37
57
|
```sh
|
|
38
58
|
m365 purview retentioneventtype set --id c37d695e-d581-4ae9-82a0-9364eba4291e --description 'some extra information'
|
|
@@ -59,6 +59,17 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
59
59
|
|
|
60
60
|
:::
|
|
61
61
|
|
|
62
|
+
## Permissions
|
|
63
|
+
<Tabs>
|
|
64
|
+
<TabItem value="Delegated">
|
|
65
|
+
|
|
66
|
+
| Resource | Permissions |
|
|
67
|
+
|-----------------|---------------------------------|
|
|
68
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
69
|
+
|
|
70
|
+
</TabItem>
|
|
71
|
+
</Tabs>
|
|
72
|
+
|
|
62
73
|
## Examples
|
|
63
74
|
|
|
64
75
|
Create a retention label that retains documents and deletes them after one year.
|
|
@@ -29,9 +29,20 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
29
29
|
|
|
30
30
|
:::
|
|
31
31
|
|
|
32
|
+
## Permissions
|
|
33
|
+
<Tabs>
|
|
34
|
+
<TabItem value="Delegated">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|----------------------------|
|
|
38
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
</Tabs>
|
|
42
|
+
|
|
32
43
|
## Examples
|
|
33
44
|
|
|
34
|
-
Get a retention label
|
|
45
|
+
Get a retention label.
|
|
35
46
|
|
|
36
47
|
```sh
|
|
37
48
|
m365 purview retentionlabel get --id c37d695e-d581-4ae9-82a0-9364eba4291e
|
|
@@ -24,9 +24,20 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
24
24
|
|
|
25
25
|
:::
|
|
26
26
|
|
|
27
|
+
## Permissions
|
|
28
|
+
<Tabs>
|
|
29
|
+
<TabItem value="Delegated">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|-----------------|----------------------------|
|
|
33
|
+
| Microsoft Graph | RecordsManagement.Read.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
</Tabs>
|
|
37
|
+
|
|
27
38
|
## Examples
|
|
28
39
|
|
|
29
|
-
Get a list of retention labels
|
|
40
|
+
Get a list of retention labels.
|
|
30
41
|
|
|
31
42
|
```sh
|
|
32
43
|
m365 purview retentionlabel list
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# purview retentionlabel remove
|
|
4
6
|
|
|
@@ -30,9 +32,20 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
30
32
|
|
|
31
33
|
:::
|
|
32
34
|
|
|
35
|
+
## Permissions
|
|
36
|
+
<Tabs>
|
|
37
|
+
<TabItem value="Delegated">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|---------------------------------|
|
|
41
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
</Tabs>
|
|
45
|
+
|
|
33
46
|
## Examples
|
|
34
47
|
|
|
35
|
-
Delete a retention label
|
|
48
|
+
Delete a retention label.
|
|
36
49
|
|
|
37
50
|
```sh
|
|
38
51
|
m365 purview retentionlabel remove --id 'e554d69c-0992-4f9b-8a66-fca3c4d9c531'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# purview retentionlabel set
|
|
4
6
|
|
|
@@ -51,6 +53,17 @@ This command is based on a Microsoft Graph API that is currently in preview and
|
|
|
51
53
|
|
|
52
54
|
:::
|
|
53
55
|
|
|
56
|
+
## Permissions
|
|
57
|
+
<Tabs>
|
|
58
|
+
<TabItem value="Delegated">
|
|
59
|
+
|
|
60
|
+
| Resource | Permissions |
|
|
61
|
+
|-----------------|---------------------------------|
|
|
62
|
+
| Microsoft Graph | RecordsManagement.ReadWrite.All |
|
|
63
|
+
|
|
64
|
+
</TabItem>
|
|
65
|
+
</Tabs>
|
|
66
|
+
|
|
54
67
|
## Examples
|
|
55
68
|
|
|
56
69
|
Update a retention label so that it retains documents as records and deletes them after one year.
|
|
@@ -41,6 +41,24 @@ When operating in app-only mode, you have the option to use either the `userName
|
|
|
41
41
|
|
|
42
42
|
:::
|
|
43
43
|
|
|
44
|
+
## Permissions
|
|
45
|
+
<Tabs>
|
|
46
|
+
<TabItem value="Delegated">
|
|
47
|
+
|
|
48
|
+
| Resource | Permissions |
|
|
49
|
+
|-----------------|----------------------------------|
|
|
50
|
+
| Microsoft Graph | InformationProtectionPolicy.Read |
|
|
51
|
+
|
|
52
|
+
</TabItem>
|
|
53
|
+
<TabItem value="Application">
|
|
54
|
+
|
|
55
|
+
| Resource | Permissions |
|
|
56
|
+
|-----------------|--------------------------------------|
|
|
57
|
+
| Microsoft Graph | InformationProtectionPolicy.Read.All |
|
|
58
|
+
|
|
59
|
+
</TabItem>
|
|
60
|
+
</Tabs>
|
|
61
|
+
|
|
44
62
|
## Examples
|
|
45
63
|
|
|
46
64
|
Get a sensitivity label.
|
|
@@ -38,6 +38,24 @@ When operating in app-only mode, you have the option to use either the `userName
|
|
|
38
38
|
|
|
39
39
|
:::
|
|
40
40
|
|
|
41
|
+
## Permissions
|
|
42
|
+
<Tabs>
|
|
43
|
+
<TabItem value="Delegated">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|----------------------------------|
|
|
47
|
+
| Microsoft Graph | InformationProtectionPolicy.Read |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
<TabItem value="Application">
|
|
51
|
+
|
|
52
|
+
| Resource | Permissions |
|
|
53
|
+
|-----------------|--------------------------------------|
|
|
54
|
+
| Microsoft Graph | InformationProtectionPolicy.Read.All |
|
|
55
|
+
|
|
56
|
+
</TabItem>
|
|
57
|
+
</Tabs>
|
|
58
|
+
|
|
41
59
|
## Examples
|
|
42
60
|
|
|
43
61
|
Get a list of sensitivity labels.
|