@pnp/cli-microsoft365 11.0.0-beta.88d51e6 → 11.0.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.
Files changed (107) hide show
  1. package/allCommands.json +1 -1
  2. package/allCommandsFull.json +1 -1
  3. package/dist/Command.js +4 -0
  4. package/dist/config.js +1 -0
  5. package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
  6. package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +13 -27
  7. package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -43
  8. package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +10 -21
  9. package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +25 -49
  10. package/dist/m365/entra/commands/group/group-member-add.js +6 -27
  11. package/dist/m365/entra/commands/group/group-member-set.js +5 -26
  12. package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
  13. package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
  14. package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
  15. package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
  16. package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
  17. package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
  18. package/dist/m365/entra/commands.js +1 -0
  19. package/dist/m365/flow/commands/flow-list.js +7 -14
  20. package/dist/m365/flow/commands/run/run-get.js +1 -7
  21. package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
  22. package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
  23. package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
  24. package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
  25. package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
  26. package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
  27. package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
  28. package/dist/m365/pp/commands.js +0 -3
  29. package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
  30. package/dist/m365/spe/commands/container/container-add.js +1 -3
  31. package/dist/m365/spe/commands/container/container-list.js +1 -3
  32. package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
  33. package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
  34. package/dist/m365/spe/commands/container/container-remove.js +1 -3
  35. package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
  36. package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
  37. package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
  38. package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
  39. package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
  40. package/dist/m365/spo/commands/file/file-move.js +2 -8
  41. package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
  42. package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
  43. package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
  44. package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
  45. package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
  46. package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
  47. package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
  48. package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
  49. package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
  50. package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
  51. package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
  52. package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
  53. package/dist/m365/spo/commands/term/term-list.js +1 -7
  54. package/dist/m365/spo/commands.js +4 -6
  55. package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
  56. package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
  57. package/dist/utils/entraAdministrativeUnit.js +1 -1
  58. package/dist/utils/spe.js +5 -39
  59. package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
  60. package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
  61. package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
  62. package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
  63. package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
  64. package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
  65. package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
  66. package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
  67. package/docs/docs/cmd/flow/flow-list.mdx +0 -3
  68. package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
  69. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
  70. package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
  71. package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
  72. package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
  73. package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
  74. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
  75. package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
  76. package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
  77. package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
  78. package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
  79. package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
  80. package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
  81. package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
  82. package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
  83. package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
  84. package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
  85. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
  86. package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
  87. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
  88. package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
  89. package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
  90. package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
  91. package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
  92. package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
  93. package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
  94. package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
  95. package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
  96. package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
  97. package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
  98. package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
  99. package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
  100. package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
  101. package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
  102. package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
  103. package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
  104. package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
  105. package/package.json +2 -2
  106. package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
  107. package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
@@ -0,0 +1,163 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # entra roleassignment add
6
+
7
+ Assign a Entra ID role to a user and specify the scope for which the user has been granted access
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 entra roleassignment add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `--roleDefinitionId [roleDefinitionId]`
19
+ : Id of a role to be assigned. Specify either `roleDefinitionId` or `roleDefinitionName`, but not both.
20
+
21
+ `--roleDefinitionName [roleDefinitionName]`
22
+ : Name of a role to be assigned. Specify either `roleDefinitionId` or `roleDefinitionName`, but not both.
23
+
24
+ `--principal <principal>`
25
+ : Id of a user, group or service principal or user principal name or group mail nickname to which the assignment is granted.
26
+
27
+ `--userId [userId]`
28
+ : Id of a user to which the assignment is scoped.
29
+
30
+ `--userName [userName]`
31
+ : User principal name of a user to which the assignment is scoped.
32
+
33
+ `--administrativeUnitId [administrativeUnitId]`
34
+ : Id of an administrative unit to which the assignment is scoped.
35
+
36
+ `--administrativeUnitName [administrativeUnitName]`
37
+ : Name of an administrative unit to which the assignment is scoped.
38
+
39
+ `--applicationId [applicationId]`
40
+ : Id of an application to which the assignment is scoped.
41
+
42
+ `applicationObjectId [applicationObjectId]`
43
+ : Object Id of an application to which the assignment is scoped.
44
+
45
+ `--applicationName [applicationName]`
46
+ : Name of an application to which the assignment is scoped.
47
+
48
+ `--servicePrincipalId [servicePrincipalId]`
49
+ : Id of a service principal to which the assignment is scoped.
50
+
51
+ `--servicePrincipalName [servicePrincipalName]`
52
+ : Name of a service principal to which the assignment is scoped.
53
+
54
+ `--groupId [groupId]`
55
+ : Id of a group to which the assignment is scoped.
56
+
57
+ `--groupName [groupName]`
58
+ : Name of a group to which the assignment is scoped.
59
+ ```
60
+
61
+ <Global />
62
+
63
+ ## Permissions
64
+
65
+ <Tabs>
66
+ <TabItem value="Delegated">
67
+
68
+ | Resource | Permissions |
69
+ |-----------------|------------------------------------|
70
+ | Microsoft Graph | RoleManagement.ReadWrite.Directory |
71
+
72
+ </TabItem>
73
+ <TabItem value="Application">
74
+
75
+ | Resource | Permissions |
76
+ |-----------------|------------------------------------|
77
+ | Microsoft Graph | RoleManagement.ReadWrite.Directory |
78
+
79
+ </TabItem>
80
+ </Tabs>
81
+
82
+ ## Examples
83
+
84
+ Assign a role specified by name to a user specified by id and scope the assignment to the whole tenant
85
+
86
+ ```sh
87
+ m365 entra roleassignment add --roleDefinitionName 'SharePoint Administrator' --principal 7a2ca997-9461-402e-9882-58088a370889
88
+ ```
89
+
90
+ Assign a role specified by id to a user specified by UPN and scope the assignment to a service principal specified by id
91
+
92
+ ```sh
93
+ m365 entra roleassignment add --roleDefinitionId 777b752-f9b7-4205-a2b1-5db0d6a0ccfc --principal john.doe@contoso.com --servicePrincipalId a4738dd8-fc0f-4646-87fb-47539f5c651b
94
+ ```
95
+
96
+ Assign a role specified by name to a group specified by mail nickname and scope the assignment to an administrative unit specified by name
97
+
98
+ ```sh
99
+ m365 entra roleassignment add --roleDefinitionName 'User Administrator' --principal 'contoso-group' --administrativeUnitName 'Marketing'
100
+ ```
101
+
102
+ Assign a role specified by name to a service principal specified by id and scope the assignment to an application specified by id
103
+
104
+ ```sh
105
+ m365 entra roleassignment add --roleDefinitionName 'Application Administrator' --principal ab2ca997-9461-402e-9882-58088a370889 --applicationId 47539fd8-fc0f-4646-87fb-a4738d5c651b
106
+ ```
107
+
108
+ ## Response
109
+
110
+ <Tabs>
111
+ <TabItem value="JSON">
112
+
113
+ ```json
114
+ {
115
+ "id": "s4awkmfj8k64aR3hKPuYbhaRP4kk4MZLjphUwkUSlIU-1",
116
+ "principalId": "3844129d-f748-4c03-8165-4412ee9b4ceb",
117
+ "directoryScopeId": "/",
118
+ "roleDefinitionId": "92b086b3-e367-4ef2-b869-1de128fb986e"
119
+ }
120
+ ```
121
+
122
+ </TabItem>
123
+ <TabItem value="Text">
124
+
125
+ ```text
126
+ directoryScopeId: /
127
+ id : s4awkmfj8k64aR3hKPuYbhaRP4kk4MZLjphUwkUSlIU-1
128
+ principalId : 3844129d-f748-4c03-8165-4412ee9b4ceb
129
+ roleDefinitionId: 92b086b3-e367-4ef2-b869-1de128fb986e
130
+ ```
131
+
132
+ </TabItem>
133
+ <TabItem value="CSV">
134
+
135
+ ```csv
136
+ id,principalId,directoryScopeId,roleDefinitionId
137
+ s4awkmfj8k64aR3hKPuYbhaRP4kk4MZLjphUwkUSlIU-1,3844129d-f748-4c03-8165-4412ee9b4ceb,/,92b086b3-e367-4ef2-b869-1de128fb986e
138
+ ```
139
+
140
+ </TabItem>
141
+ <TabItem value="Markdown">
142
+
143
+ ```md
144
+ # entra roleassignment add --roleDefinitionId "92b086b3-e367-4ef2-b869-1de128fb986e" --principal "3844129d-f748-4c03-8165-4412ee9b4ceb"
145
+
146
+ Date: 7/3/2025
147
+
148
+ ## s4awkmfj8k64aR3hKPuYbhaRP4kk4MZLjphUwkUSlIU-1
149
+
150
+ Property | Value
151
+ ---------|-------
152
+ id | s4awkmfj8k64aR3hKPuYbhaRP4kk4MZLjphUwkUSlIU-1
153
+ principalId | 3844129d-f748-4c03-8165-4412ee9b4ceb
154
+ directoryScopeId | /
155
+ roleDefinitionId | 92b086b3-e367-4ef2-b869-1de128fb986e
156
+ ```
157
+
158
+ </TabItem>
159
+ </Tabs>
160
+
161
+ ## More information
162
+
163
+ - https://learn.microsoft.com/graph/api/rbacapplication-post-roleassignments
@@ -21,9 +21,6 @@ m365 flow list [options]
21
21
  `--sharingStatus [sharingStatus]`
22
22
  : List a specific type of flows. Valid values: `ownedByMe`, `personal`, `sharedWithMe`, `all`. Defaults to `ownedByMe`. Don't specify this option when using asAdmin.
23
23
 
24
- `--includeSolutions`
25
- : (deprecated. Use option `withSolutions` instead) Include flows from solutions.
26
-
27
24
  `--withSolutions`
28
25
  : Include flows from solutions.
29
26
 
@@ -24,9 +24,6 @@ m365 flow run get [options]
24
24
  `-e, --environmentName <environmentName>`
25
25
  : The name of the environment where the flow is located.
26
26
 
27
- `--includeTriggerInformation`
28
- : (deprecated. Use option `withTrigger` instead) If specified, include information about the trigger details.
29
-
30
27
  `--withTrigger`
31
28
  : If specified, include information about the trigger details.
32
29
 
@@ -39,9 +39,6 @@ m365 graph subscription add [options]
39
39
  `--latestTLSVersion [latestTLSVersion]`
40
40
  : The latest version of TLS that the notification endpoint supports. Allowed values are `v1_0`, `v1_1`, `v1_2`, `v1_3`. Default is `v1_2`.
41
41
 
42
- `--includeResourceData`
43
- : (deprecated. Use option `withResourceData` instead) When set, the change notifications will include the changed resource data.
44
-
45
42
  `--withResourceData`
46
43
  : When set, the change notifications will include the changed resource data.
47
44
 
@@ -12,12 +12,6 @@ Get information about the specified copilot
12
12
  m365 pp copilot get [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 pp chatbot get [options]
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -12,12 +12,6 @@ Lists Microsoft Power Platform copilots in the specified Power Platform environm
12
12
  m365 pp copilot list [options]
13
13
  ```
14
14
 
15
- ## Alias
16
-
17
- ```sh
18
- m365 pp chatbot list [options]
19
- ```
20
-
21
15
  ## Options
22
16
 
23
17
  ```md definition-list
@@ -10,12 +10,6 @@ Removes the specified copilot
10
10
  m365 pp copilot remove [options]
11
11
  ```
12
12
 
13
- ## Alias
14
-
15
- ```sh
16
- m365 pp chatbot remove [options]
17
- ```
18
-
19
13
  ## Options
20
14
 
21
15
  ```md definition-list
@@ -18,9 +18,6 @@ m365 pp solution publisher list [options]
18
18
  `-e, --environmentName <environmentName>`
19
19
  : The name of the environment.
20
20
 
21
- `--includeMicrosoftPublishers`
22
- : (deprecated. Use option `withMicrosoftPublishers` instead) Include the Microsoft Publishers.
23
-
24
21
  `--withMicrosoftPublishers`
25
22
  : Include the Microsoft Publishers.
26
23
 
@@ -18,9 +18,6 @@ m365 purview threatassessment get [options]
18
18
  `-i, --id <id>`
19
19
  : The Id of the threat assessment.
20
20
 
21
- `--includeResults`
22
- : (deprecated. Use option `withResults` instead) Include the threat assessment results.
23
-
24
21
  `--withResults`
25
22
  : Include the threat assessment results.
26
23
  ```
@@ -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
  # spe container activate
4
6
 
@@ -19,6 +21,25 @@ m365 spe container activate [options]
19
21
 
20
22
  <Global />
21
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|-------------------------------|
31
+ | Microsoft Graph | FileStorageContainer.Selected |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|-------------------------------|
38
+ | Microsoft Graph | FileStorageContainer.Selected |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
22
43
  ## Examples
23
44
 
24
45
  Activates a container.
@@ -39,6 +39,35 @@ m365 spe container add [options]
39
39
 
40
40
  <Global />
41
41
 
42
+ ## Remarks
43
+
44
+ :::warning
45
+
46
+ The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
47
+
48
+ :::
49
+
50
+ ## Permissions
51
+
52
+ <Tabs>
53
+ <TabItem value="Delegated">
54
+
55
+ | Resource | Permissions |
56
+ |-----------------|--------------------------------------------------------------------|
57
+ | Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
58
+
59
+ </TabItem>
60
+ <TabItem value="Application">
61
+
62
+ This command only supports application permissions when using the `containerTypeId` option.
63
+
64
+ | Resource | Permissions |
65
+ |-----------------|-------------------------------|
66
+ | Microsoft Graph | FileStorageContainer.Selected |
67
+
68
+ </TabItem>
69
+ </Tabs>
70
+
42
71
  ## Examples
43
72
 
44
73
  Creates a new container by specifying the container type ID
@@ -21,6 +21,25 @@ m365 spe container get [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|-------------------------------|
31
+ | Microsoft Graph | FileStorageContainer.Selected |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|-------------------------------|
38
+ | Microsoft Graph | FileStorageContainer.Selected |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  Gets a container of a specific type.
@@ -89,4 +108,4 @@ m365 spe container get --id "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDE
89
108
  ```
90
109
 
91
110
  </TabItem>
92
- </Tabs>
111
+ </Tabs>
@@ -24,6 +24,35 @@ m365 spe container list [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Remarks
28
+
29
+ :::warning
30
+
31
+ The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
32
+
33
+ :::
34
+
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|--------------------------------------------------------------------|
42
+ | Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
43
+
44
+ </TabItem>
45
+ <TabItem value="Application">
46
+
47
+ This command only supports application permissions when using the `containerTypeId` option.
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|-------------------------------|
51
+ | Microsoft Graph | FileStorageContainer.Selected |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
27
56
  ## Examples
28
57
 
29
58
  List containers of a specific type by id.
@@ -21,6 +21,25 @@ m365 spe container permission list [options]
21
21
 
22
22
  <Global />
23
23
 
24
+ ## Permissions
25
+
26
+ <Tabs>
27
+ <TabItem value="Delegated">
28
+
29
+ | Resource | Permissions |
30
+ |-----------------|-------------------------------|
31
+ | Microsoft Graph | FileStorageContainer.Selected |
32
+
33
+ </TabItem>
34
+ <TabItem value="Application">
35
+
36
+ | Resource | Permissions |
37
+ |-----------------|-------------------------------|
38
+ | Microsoft Graph | FileStorageContainer.Selected |
39
+
40
+ </TabItem>
41
+ </Tabs>
42
+
24
43
  ## Examples
25
44
 
26
45
  Lists Container permissions.
@@ -24,6 +24,35 @@ m365 spe container recyclebinitem list [options]
24
24
 
25
25
  <Global />
26
26
 
27
+ ## Remarks
28
+
29
+ :::warning
30
+
31
+ The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
32
+
33
+ :::
34
+
35
+ ## Permissions
36
+
37
+ <Tabs>
38
+ <TabItem value="Delegated">
39
+
40
+ | Resource | Permissions |
41
+ |-----------------|--------------------------------------------------------------------|
42
+ | Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
43
+
44
+ </TabItem>
45
+ <TabItem value="Application">
46
+
47
+ This command only supports application permissions when using the `containerTypeId` option.
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|-------------------------------|
51
+ | Microsoft Graph | FileStorageContainer.Selected |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
27
56
  ## Examples
28
57
 
29
58
  List deleted containers of a specific container type specified by id.
@@ -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
  # spe container recyclebinitem restore
4
6
 
@@ -28,6 +30,35 @@ m365 spe container recyclebinitem restore [options]
28
30
 
29
31
  <Global />
30
32
 
33
+ ## Remarks
34
+
35
+ :::warning
36
+
37
+ The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
38
+
39
+ :::
40
+
41
+ ## Permissions
42
+
43
+ <Tabs>
44
+ <TabItem value="Delegated">
45
+
46
+ | Resource | Permissions |
47
+ |-----------------|--------------------------------------------------------------------|
48
+ | Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
49
+
50
+ </TabItem>
51
+ <TabItem value="Application">
52
+
53
+ This command only supports application permissions when using the `containerTypeId` option.
54
+
55
+ | Resource | Permissions |
56
+ |-----------------|-------------------------------|
57
+ | Microsoft Graph | FileStorageContainer.Selected |
58
+
59
+ </TabItem>
60
+ </Tabs>
61
+
31
62
  ## Examples
32
63
 
33
64
  Restore a deleted container by ID.
@@ -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
  # spe container remove
4
6
 
@@ -34,6 +36,35 @@ m365 spe container remove [options]
34
36
 
35
37
  <Global />
36
38
 
39
+ ## Remarks
40
+
41
+ :::warning
42
+
43
+ The command is based on an API that is currently in preview and is subject to change once the API reached general availability.
44
+
45
+ :::
46
+
47
+ ## Permissions
48
+
49
+ <Tabs>
50
+ <TabItem value="Delegated">
51
+
52
+ | Resource | Permissions |
53
+ |-----------------|--------------------------------------------------------------------|
54
+ | Microsoft Graph | FileStorageContainer.Selected, FileStorageContainerType.Manage.All |
55
+
56
+ </TabItem>
57
+ <TabItem value="Application">
58
+
59
+ This command only supports application permissions when **not** using the `containerTypeName` option.
60
+
61
+ | Resource | Permissions |
62
+ |-----------------|-------------------------------|
63
+ | Microsoft Graph | FileStorageContainer.Selected |
64
+
65
+ </TabItem>
66
+ </Tabs>
67
+
37
68
  ## Examples
38
69
 
39
70
  Remove a container by ID.