@pnp/cli-microsoft365 10.8.0-beta.708bf27 → 10.8.0-beta.a1c69a6
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.cjs +2 -1
- package/README.md +3 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +82 -22
- package/dist/cli/cli.js +1 -1
- package/dist/config.js +1 -0
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +54 -67
- package/dist/m365/app/commands/app-get.js +5 -2
- package/dist/m365/app/commands/app-open.js +9 -22
- package/dist/m365/app/commands/permission/permission-add.js +18 -30
- package/dist/m365/app/commands/permission/permission-list.js +5 -2
- package/dist/m365/base/AppCommand.js +9 -25
- package/dist/m365/booking/commands/business/business-get.js +18 -25
- package/dist/m365/cli/commands/app/app-reconsent.js +103 -0
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/commands/login.js +1 -1
- package/dist/m365/commands/setup.js +1 -2
- package/dist/m365/context/commands/context-remove.js +12 -25
- package/dist/m365/context/commands/option/option-remove.js +11 -25
- package/dist/m365/entra/commands/organization/organization-list.js +51 -0
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/graph/commands/directoryextension/directoryextension-list.js +74 -0
- package/dist/m365/graph/commands/openextension/openextension-set.js +107 -0
- package/dist/m365/graph/commands.js +2 -0
- package/dist/m365/spe/commands/container/container-add.js +85 -0
- package/dist/m365/spe/commands/container/container-list.js +2 -9
- package/dist/m365/spe/commands/container/container-permission-list.js +52 -0
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +62 -0
- package/dist/m365/spe/commands/container/container-remove.js +99 -0
- package/dist/m365/spe/commands/containertype/containertype-add.js +11 -11
- package/dist/m365/spe/commands/containertype/containertype-get.js +28 -32
- package/dist/m365/spe/commands/containertype/containertype-list.js +14 -4
- package/dist/m365/spe/commands/containertype/containertype-remove.js +81 -0
- package/dist/m365/spe/commands.js +6 -1
- package/dist/m365/spo/commands/list/list-get.js +12 -6
- package/dist/m365/spo/commands/page/page-section-add.js +20 -23
- package/dist/m365/spp/commands/model/model-apply.js +130 -0
- package/dist/m365/spp/commands/model/model-get.js +7 -24
- package/dist/m365/spp/commands/model/model-list.js +1 -1
- package/dist/m365/spp/commands/model/model-remove.js +1 -1
- package/dist/m365/spp/commands.js +1 -0
- package/dist/utils/entraServicePrincipal.js +11 -0
- package/dist/utils/formatting.js +12 -0
- package/dist/utils/spe.js +77 -0
- package/dist/utils/spo.js +0 -18
- package/dist/utils/spp.js +59 -1
- package/dist/utils/zod.js +26 -1
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/cli/app/app-reconsent.mdx +63 -0
- package/docs/docs/cmd/entra/organization/organization-list.mdx +154 -0
- package/docs/docs/cmd/graph/directoryextension/directoryextension-list.mdx +135 -0
- package/docs/docs/cmd/graph/openextension/openextension-set.mdx +97 -0
- package/docs/docs/cmd/spe/container/container-activate.mdx +0 -2
- package/docs/docs/cmd/spe/container/container-add.mdx +128 -0
- package/docs/docs/cmd/spe/container/container-permission-list.mdx +90 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +96 -0
- package/docs/docs/cmd/spe/container/container-remove.mdx +65 -0
- package/docs/docs/cmd/spe/containertype/containertype-add.mdx +9 -1
- package/docs/docs/cmd/spe/containertype/containertype-get.mdx +8 -0
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +8 -0
- package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +52 -0
- package/docs/docs/cmd/spo/field/field-get.mdx +0 -1
- package/docs/docs/cmd/spo/list/list-get.mdx +12 -3
- package/docs/docs/cmd/spp/model/model-apply.mdx +79 -0
- package/npm-shrinkwrap.json +894 -477
- package/package.json +11 -11
- package/dist/m365/spe/ContainerProperties.js +0 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# entra organization list
|
|
6
|
+
|
|
7
|
+
Retrieves a list of organizations
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra organization list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-p, --properties [properties]`
|
|
19
|
+
: The comma separated list of properties to be returned.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
<Global />
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
:::info
|
|
27
|
+
|
|
28
|
+
Applications granted the `User.Read` permission are able to read only the id, displayName, and verifiedDomains properties of the organization.
|
|
29
|
+
All other properties return with null values. To read all properties, use at least `Organization.Read.All`.
|
|
30
|
+
|
|
31
|
+
:::
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Retrieve organizations
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 entra organization list
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Retrieve specific info
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 entra organization list --properties 'id,displayName,tenantType'
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Response
|
|
48
|
+
|
|
49
|
+
<Tabs>
|
|
50
|
+
<TabItem value="JSON">
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
[
|
|
54
|
+
{
|
|
55
|
+
"id": "e65b162c-6f87-4eb1-a24e-1b37d3504663",
|
|
56
|
+
"deletedDateTime": null,
|
|
57
|
+
"businessPhones": [
|
|
58
|
+
"4258828080"
|
|
59
|
+
],
|
|
60
|
+
"city": null,
|
|
61
|
+
"country": null,
|
|
62
|
+
"countryLetterCode": "IE",
|
|
63
|
+
"createdDateTime": "2023-02-21T19:56:38Z",
|
|
64
|
+
"defaultUsageLocation": null,
|
|
65
|
+
"displayName": "Contoso",
|
|
66
|
+
"isMultipleDataLocationsForServicesEnabled": null,
|
|
67
|
+
"marketingNotificationEmails": [],
|
|
68
|
+
"onPremisesLastSyncDateTime": null,
|
|
69
|
+
"onPremisesSyncEnabled": null,
|
|
70
|
+
"partnerTenantType": null,
|
|
71
|
+
"postalCode": null,
|
|
72
|
+
"preferredLanguage": "en",
|
|
73
|
+
"securityComplianceNotificationMails": [],
|
|
74
|
+
"securityComplianceNotificationPhones": [],
|
|
75
|
+
"state": null,
|
|
76
|
+
"street": null,
|
|
77
|
+
"technicalNotificationMails": [
|
|
78
|
+
"john.doe@contoso.com"
|
|
79
|
+
],
|
|
80
|
+
"tenantType": "AAD",
|
|
81
|
+
"directorySizeQuota": {
|
|
82
|
+
"used": 1400,
|
|
83
|
+
"total": 300000
|
|
84
|
+
},
|
|
85
|
+
"assignedPlans": [],
|
|
86
|
+
"onPremisesSyncStatus": [],
|
|
87
|
+
"privacyProfile": {
|
|
88
|
+
"contactEmail": "john.doe@contoso.com",
|
|
89
|
+
"statementUrl": ""
|
|
90
|
+
},
|
|
91
|
+
"provisionedPlans": [],
|
|
92
|
+
"verifiedDomains": [
|
|
93
|
+
{
|
|
94
|
+
"capabilities": "Email, OfficeCommunicationsOnline",
|
|
95
|
+
"isDefault": true,
|
|
96
|
+
"isInitial": true,
|
|
97
|
+
"name": "contoso.onmicrosoft.com",
|
|
98
|
+
"type": "Managed"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"capabilities": "Email, OfficeCommunicationsOnline, MoeraDomain",
|
|
102
|
+
"isDefault": false,
|
|
103
|
+
"isInitial": false,
|
|
104
|
+
"name": "contoso2.onmicrosoft.com",
|
|
105
|
+
"type": "Managed"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
</TabItem>
|
|
113
|
+
<TabItem value="Text">
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
displayName: Contoso
|
|
117
|
+
id : e65b162c-6f87-4eb1-a24e-1b37d3504663
|
|
118
|
+
tenantType : AAD
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
</TabItem>
|
|
122
|
+
<TabItem value="CSV">
|
|
123
|
+
|
|
124
|
+
```csv
|
|
125
|
+
id,deletedDateTime,city,country,countryLetterCode,createdDateTime,defaultUsageLocation,displayName,isMultipleDataLocationsForServicesEnabled,onPremisesLastSyncDateTime,onPremisesSyncEnabled,partnerTenantType,postalCode,preferredLanguage,state,street,tenantType
|
|
126
|
+
e65b162c-6f87-4eb1-a24e-1b37d3504663,,,,IE,2023-02-21T19:56:38Z,,Contoso,,,,,,en,,,AAD
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
</TabItem>
|
|
130
|
+
<TabItem value="Markdown">
|
|
131
|
+
|
|
132
|
+
```md
|
|
133
|
+
# entra organization list --debug "false" --verbose "false"
|
|
134
|
+
|
|
135
|
+
Date: 4/18/2025
|
|
136
|
+
|
|
137
|
+
## Contoso (e65b162c-6f87-4eb1-a24e-1b37d3504663)
|
|
138
|
+
|
|
139
|
+
Property | Value
|
|
140
|
+
---------|-------
|
|
141
|
+
id | e65b162c-6f87-4eb1-a24e-1b37d3504663
|
|
142
|
+
countryLetterCode | IE
|
|
143
|
+
createdDateTime | 2023-02-21T19:56:38Z
|
|
144
|
+
displayName | Contoso
|
|
145
|
+
preferredLanguage | en
|
|
146
|
+
tenantType | AAD
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
</TabItem>
|
|
150
|
+
</Tabs>
|
|
151
|
+
|
|
152
|
+
## More information
|
|
153
|
+
|
|
154
|
+
- Organization: https://learn.microsoft.com/graph/api/organization-list
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# graph directoryextension list
|
|
6
|
+
|
|
7
|
+
Retrieves a list of directory extensions
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 graph directoryextension list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--appId [appId]`
|
|
19
|
+
: Application (client) ID of the Entra application where the directory extensions are registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
20
|
+
|
|
21
|
+
`--appObjectId [appObjectId]`
|
|
22
|
+
: Object ID of the Entra application where the directory extensions are registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
23
|
+
|
|
24
|
+
`--appName [appName]`
|
|
25
|
+
: The name of Entra application where the directory extensions are registered. Specify either `appId`, `appObjectId` or `appName`, but not multiple.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
<Global />
|
|
29
|
+
|
|
30
|
+
## Remarks
|
|
31
|
+
|
|
32
|
+
When neither `appId`, `appObjectId` nor `appName` is specified, the command will return all available directory extensions including those registered for multi-tenant apps.
|
|
33
|
+
|
|
34
|
+
https://learn.microsoft.com/en-us/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0&tabs=http
|
|
35
|
+
|
|
36
|
+
Otherwise, it will return directory extensions for a specific application.
|
|
37
|
+
|
|
38
|
+
https://learn.microsoft.com/en-us/graph/api/application-list-extensionproperty?view=graph-rest-1.0&tabs=http
|
|
39
|
+
|
|
40
|
+
## Examples
|
|
41
|
+
|
|
42
|
+
Get all available directory extensions including those registered for multi-tenant apps
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 graph directoryextension list
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Get all directory extensions registered for an application specified by app id.
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 graph directoryextension list --appId fd918e4b-c821-4efb-b50a-5eddd23afc6f
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Get all directory extensions registered for an application specified by app object id.
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 graph directoryextension list --appObjectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Get all directory extensions registered for an application specified by name.
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 graph directoryextension list --appName ContosoApp
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Response
|
|
67
|
+
|
|
68
|
+
<Tabs>
|
|
69
|
+
<TabItem value="JSON">
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
[
|
|
73
|
+
{
|
|
74
|
+
"id": "8133c498-ad76-4a7b-90a0-675bf5adf492",
|
|
75
|
+
"deletedDateTime": null,
|
|
76
|
+
"appDisplayName": "ContosoApp",
|
|
77
|
+
"dataType": "String",
|
|
78
|
+
"isMultiValued": true,
|
|
79
|
+
"isSyncedFromOnPremises": false,
|
|
80
|
+
"name": "extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup",
|
|
81
|
+
"targetObjects": [
|
|
82
|
+
"User"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
</TabItem>
|
|
89
|
+
<TabItem value="Text">
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
appDisplayName : ContosoApp
|
|
93
|
+
dataType : String
|
|
94
|
+
deletedDateTime : null
|
|
95
|
+
id : 8133c498-ad76-4a7b-90a0-675bf5adf492
|
|
96
|
+
isMultiValued : true
|
|
97
|
+
isSyncedFromOnPremises: false
|
|
98
|
+
name : extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup
|
|
99
|
+
targetObjects : ["User"]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
</TabItem>
|
|
103
|
+
<TabItem value="CSV">
|
|
104
|
+
|
|
105
|
+
```csv
|
|
106
|
+
id,deletedDateTime,appDisplayName,dataType,isMultiValued,isSyncedFromOnPremises,name
|
|
107
|
+
8133c498-ad76-4a7b-90a0-675bf5adf492,,ContosoApp,String,1,0,extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
</TabItem>
|
|
111
|
+
<TabItem value="Markdown">
|
|
112
|
+
|
|
113
|
+
```md
|
|
114
|
+
# graph directoryextension list --debug "false" --verbose "false" --appId "66eac1c5-0538-4aec-9e02-4b9e60f5e4b9"
|
|
115
|
+
|
|
116
|
+
Date: 3/23/2025
|
|
117
|
+
|
|
118
|
+
## extension_66eac1c505384aec9e024b9e60f5e4b9_jobGroup (8133c498-ad76-4a7b-90a0-675bf5adf492)
|
|
119
|
+
|
|
120
|
+
Property | Value
|
|
121
|
+
---------|-------
|
|
122
|
+
id | 8133c498-ad76-4a7b-90a0-675bf5adf492
|
|
123
|
+
appDisplayName | ContosoApp
|
|
124
|
+
dataType | String
|
|
125
|
+
isMultiValued | true
|
|
126
|
+
isSyncedFromOnPremises | false
|
|
127
|
+
name | extension\_66eac1c505384aec9e024b9e60f5e4b9\_jobGroup
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
</TabItem>
|
|
131
|
+
</Tabs>
|
|
132
|
+
|
|
133
|
+
## More information
|
|
134
|
+
|
|
135
|
+
- Directory extensions: https://learn.microsoft.com/graph/extensibility-overview#directory-microsoft-entra-id-extensions
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# graph openextension set
|
|
6
|
+
|
|
7
|
+
Updates an open extension for a resource
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 graph openextension set [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The name of the open extension.
|
|
20
|
+
|
|
21
|
+
`-i, --resourceId <resourceId>`
|
|
22
|
+
: The Id of the resource for which to update the open extension.
|
|
23
|
+
|
|
24
|
+
`-t, --resourceType <resourceType>`
|
|
25
|
+
: The type of resource. Allowed values are `user`, `group`, `device`, `organization`.
|
|
26
|
+
|
|
27
|
+
`-k, --keepUnchangedProperties`
|
|
28
|
+
: Keeps unspecified properties. Without this flag, any property that is not updated will be removed from the extension.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Remarks
|
|
34
|
+
|
|
35
|
+
This command allows using unknown options to update custom data of the open extension.
|
|
36
|
+
|
|
37
|
+
When updating an open extension to a user, it's possible to use the UPN as the resourceId.
|
|
38
|
+
|
|
39
|
+
:::warning[Escaping JSON in PowerShell]
|
|
40
|
+
|
|
41
|
+
When updating open extensions it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
|
|
42
|
+
|
|
43
|
+
:::
|
|
44
|
+
|
|
45
|
+
:::info
|
|
46
|
+
|
|
47
|
+
If a property of the open extension is not specified, the property is removed from the open extension.
|
|
48
|
+
|
|
49
|
+
If a property of the open extension is not specified and `keepUnchangedProperties` is specified, the property will be kept in the open extension.
|
|
50
|
+
|
|
51
|
+
:::
|
|
52
|
+
|
|
53
|
+
## Examples
|
|
54
|
+
|
|
55
|
+
Updates an open extension for a user specified by id
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
m365 graph openextension set --userId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user --theme dark --color red --language English
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Updates an open extension for a user specified by UPN
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
m365 graph openextension set --userName john.doe@contoso.com --name 'com.contoso.roamingSettings' --resourceType user --theme dark --color red --language English
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Updates an open extension for a group specified by id, one of the property represents a JSON object
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
m365 graph openextension set --resourceId c956e711-f074-40c3-8431-fbd69bb67d9c --name 'com.contoso.roamingSettings' --resourceType group --settings '{"theme": "dark", "color": "red" }'
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Updates an open extension, but keeps the properties that are not specified
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
m365 graph openextension set --userId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user --color red --keepUnchangedProperties
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Updates an open extension, but removes the properties that are not specified
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
m365 graph openextension set --userId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user --color red
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Clears the value of the property
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
m365 graph openextension set --userId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user --theme ""
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Response
|
|
92
|
+
|
|
93
|
+
The command won't return a response on success.
|
|
94
|
+
|
|
95
|
+
## More information
|
|
96
|
+
|
|
97
|
+
- Open extensions: https://learn.microsoft.com/graph/extensibility-overview?tabs=http#open-extensions
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spe container add
|
|
6
|
+
|
|
7
|
+
Creates a new container
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spe container add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The display name of the new container.
|
|
20
|
+
|
|
21
|
+
`-d, --description [description]`
|
|
22
|
+
: The description of the new container.
|
|
23
|
+
|
|
24
|
+
`--containerTypeId [containerTypeId]`
|
|
25
|
+
: The container type ID of the container instance. Use either `containerTypeId`, or `containerTypeName` but not both.
|
|
26
|
+
|
|
27
|
+
`--containerTypeName [containerTypeName]`
|
|
28
|
+
: The container type name of the container instance. Use either `containerTypeId`, or `containerTypeName` but not both.
|
|
29
|
+
|
|
30
|
+
`--ocrEnabled [ocrEnabled]`
|
|
31
|
+
: Indicates whether Optical Character Recognition (OCR) is enabled for the container. Possible values: `true`, `false`. Defaults to `false`.
|
|
32
|
+
|
|
33
|
+
`--itemMajorVersionLimit [itemMajorVersionLimit]`
|
|
34
|
+
: The maximum major versions allowed for items in the container. Defaults to `500`.
|
|
35
|
+
|
|
36
|
+
`--itemVersioningEnabled [itemVersioningEnabled]`
|
|
37
|
+
: Indicates whether versioning is enabled for items in the container. Possible values: `true`, `false`. Defaults to `true`.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Examples
|
|
43
|
+
|
|
44
|
+
Creates a new container by specifying the container type ID
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 spe container add --name Invoices --containerTypeId bba89883-47c2-455b-956b-7a3d8db007fb
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Creates a new container by specifying the container type name
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
m365 spe container add --name Invoices --containerTypeName "Invoice app container type"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Creates a new container with additional options
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
m365 spe container add --name Invoices --containerTypeId bba89883-47c2-455b-956b-7a3d8db007fb --ocrEnabled true --itemMajorVersionLimit 200 --itemVersioningEnabled true
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Response
|
|
63
|
+
|
|
64
|
+
<Tabs>
|
|
65
|
+
<TabItem value="JSON">
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
|
|
70
|
+
"displayName": "Invoices",
|
|
71
|
+
"description": "This container is used to store invoices",
|
|
72
|
+
"containerTypeId": "bfdd048e-e03f-47d2-bd16-dbbc27281aa3",
|
|
73
|
+
"status": "inactive",
|
|
74
|
+
"createdDateTime": "2025-04-15T13:31:09.62Z",
|
|
75
|
+
"lockState": "unlocked",
|
|
76
|
+
"settings": {
|
|
77
|
+
"isOcrEnabled": false,
|
|
78
|
+
"itemMajorVersionLimit": 500,
|
|
79
|
+
"isItemVersioningEnabled": true
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
</TabItem>
|
|
85
|
+
<TabItem value="Text">
|
|
86
|
+
|
|
87
|
+
```text
|
|
88
|
+
containerTypeId: bfdd048e-e03f-47d2-bd16-dbbc27281aa3
|
|
89
|
+
createdDateTime: 2025-04-15T15:14:03.89Z
|
|
90
|
+
description : This container is used to store invoices
|
|
91
|
+
displayName : Invoices
|
|
92
|
+
id : b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
|
|
93
|
+
lockState : unlocked
|
|
94
|
+
settings : {"isOcrEnabled":false,"itemMajorVersionLimit":500,"isItemVersioningEnabled":true}
|
|
95
|
+
status : inactive
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
</TabItem>
|
|
99
|
+
<TabItem value="CSV">
|
|
100
|
+
|
|
101
|
+
```csv
|
|
102
|
+
id,displayName,description,containerTypeId,status,createdDateTime,lockState
|
|
103
|
+
b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z,Invoices,This container is used to store invoices,bfdd048e-e03f-47d2-bd16-dbbc27281aa3,inactive,2025-04-15T15:14:45.317Z,unlocked
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
</TabItem>
|
|
107
|
+
<TabItem value="Markdown">
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
# spe container add --name "Invoices" --containerTypeId "bfdd048e-e03f-47d2-bd16-dbbc27281aa3" --description "This container is used to store invoices"
|
|
111
|
+
|
|
112
|
+
Date: 15/04/2025
|
|
113
|
+
|
|
114
|
+
## Invoices (b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z)
|
|
115
|
+
|
|
116
|
+
Property | Value
|
|
117
|
+
---------|-------
|
|
118
|
+
id | b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
|
|
119
|
+
displayName | Invoices
|
|
120
|
+
description | This container is used to store invoices
|
|
121
|
+
containerTypeId | bfdd048e-e03f-47d2-bd16-dbbc27281aa3
|
|
122
|
+
status | inactive
|
|
123
|
+
createdDateTime | 2025-04-15T15:15:19.123Z
|
|
124
|
+
lockState | unlocked
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
</TabItem>
|
|
128
|
+
</Tabs>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spe container permission list
|
|
6
|
+
|
|
7
|
+
Lists permissions of a SharePoint Embedded Container
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spe container permission list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-i, --containerId <id>`
|
|
19
|
+
: The ID of the SharePoint Embedded Container.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
<Global />
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Lists Container permissions.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 spe container permission list --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Response
|
|
33
|
+
|
|
34
|
+
<Tabs>
|
|
35
|
+
<TabItem value="JSON">
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
[
|
|
39
|
+
{
|
|
40
|
+
"id": "X2k6MCMuZnxtZW1iZXJzaGlwfGRlYnJhYkBuYWNoYW4zNjUub25taWNyb3NvZnQuY29t",
|
|
41
|
+
"roles": [
|
|
42
|
+
"owner"
|
|
43
|
+
],
|
|
44
|
+
"grantedToV2": {
|
|
45
|
+
"user": {
|
|
46
|
+
"displayName": "John Doe",
|
|
47
|
+
"email": "john.doe@contoso.onmicrosoft.com",
|
|
48
|
+
"userPrincipalName": "john.doe@contoso.onmicrosoft.com"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
<TabItem value="Text">
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
id userPrincipalName roles
|
|
60
|
+
-------------------------------------------------------------------- -------------------------------- ------
|
|
61
|
+
X2k6MCMuZnxtZW1iZXJzaGlwfGRlYnJhYkBuYWNoYW4zNjUub25taWNyb3NvZnQuY29t john.doe@contoso.onmicrosoft.com owner
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
</TabItem>
|
|
65
|
+
<TabItem value="CSV">
|
|
66
|
+
|
|
67
|
+
```csv
|
|
68
|
+
id,roles,userPrincipalName
|
|
69
|
+
X2k6MCMuZnxtZW1iZXJzaGlwfGRlYnJhYkBuYWNoYW4zNjUub25taWNyb3NvZnQuY29t,owner,john.doe@contoso.onmicrosoft.com
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
</TabItem>
|
|
73
|
+
<TabItem value="Markdown">
|
|
74
|
+
|
|
75
|
+
```md
|
|
76
|
+
# spe container permission list --containerId "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z"
|
|
77
|
+
|
|
78
|
+
Date: 3/3/2025
|
|
79
|
+
|
|
80
|
+
## X2k6MCMuZnxtZW1iZXJzaGlwfGRlYnJhYkBuYWNoYW4zNjUub25taWNyb3NvZnQuY29t
|
|
81
|
+
|
|
82
|
+
Property | Value
|
|
83
|
+
---------|-------
|
|
84
|
+
id | X2k6MCMuZnxtZW1iZXJzaGlwfGRlYnJhYkBuYWNoYW4zNjUub25taWNyb3NvZnQuY29t
|
|
85
|
+
roles | owner
|
|
86
|
+
userPrincipalName | john.doe@contoso.onmicrosoft.com
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
</TabItem>
|
|
90
|
+
</Tabs>
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spe container recyclebinitem list
|
|
6
|
+
|
|
7
|
+
Lists deleted containers of a specific container type
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spe container recyclebinitem list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--containerTypeId [containerTypeId]`
|
|
19
|
+
: The container type ID of the container instance. Use either `containerTypeId` or `containerTypeName` but not both.
|
|
20
|
+
|
|
21
|
+
`--containerTypeName [containerTypeName]`
|
|
22
|
+
: The container type name of the container instance. Use either `containerTypeId` or `containerTypeName` but not both.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
List deleted containers of a specific container type specified by id.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 spe container recyclebinitem list --containerTypeId "91710488-5756-407f-9046-fbe5f0b4de73"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
List deleted containers of a specific container type specified by name.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 spe container recyclebinitem list --containerTypeName "My container type name"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
<Tabs>
|
|
44
|
+
<TabItem value="JSON">
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
[
|
|
48
|
+
{
|
|
49
|
+
"id": "b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z",
|
|
50
|
+
"displayName": "My Application Storage Container",
|
|
51
|
+
"containerTypeId": "1a55ba46-a673-45a4-b0d9-bd9913d06957",
|
|
52
|
+
"createdDateTime": "2025-04-15T21:51:48Z",
|
|
53
|
+
"settings": {
|
|
54
|
+
"isOcrEnabled": false
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
</TabItem>
|
|
61
|
+
<TabItem value="Text">
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
id displayName
|
|
65
|
+
------------------------------------------------------------------ --------------------------------
|
|
66
|
+
b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z My Application Storage Container
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
</TabItem>
|
|
70
|
+
<TabItem value="CSV">
|
|
71
|
+
|
|
72
|
+
```csv
|
|
73
|
+
id,displayName,containerTypeId,createdDateTime
|
|
74
|
+
b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z,My Application Storage Container,1a55ba46-a673-45a4-b0d9-bd9913d06957,2025-04-15T21:51:48Z
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
</TabItem>
|
|
78
|
+
<TabItem value="Markdown">
|
|
79
|
+
|
|
80
|
+
```md
|
|
81
|
+
# spe container recyclebinitem list --containerTypeId "1a55ba46-a673-45a4-b0d9-bd9913d06957"
|
|
82
|
+
|
|
83
|
+
Date: 18/04/2025
|
|
84
|
+
|
|
85
|
+
## My Application Storage Container (b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z)
|
|
86
|
+
|
|
87
|
+
Property | Value
|
|
88
|
+
---------|-------
|
|
89
|
+
id | b!ISJs1WRro0y0EWgkUYcktDa0mE8zSlFEqFzqRn70Zwp1CEtDEBZgQICPkRbil_5Z
|
|
90
|
+
displayName | My Application Storage Container
|
|
91
|
+
containerTypeId | 1a55ba46-a673-45a4-b0d9-bd9913d06957
|
|
92
|
+
createdDateTime | 2025-04-15T21:51:48Z
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
</TabItem>
|
|
96
|
+
</Tabs>
|