@pnp/cli-microsoft365 8.1.0-beta.3dec9fa → 8.1.0-beta.bf59841
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +9 -9
- package/dist/Command.js +49 -2
- package/dist/cli/cli.js +60 -38
- package/dist/m365/commands/login.js +44 -96
- package/dist/m365/connection/commands/connection-remove.js +6 -2
- package/dist/m365/connection/commands/connection-set.js +4 -1
- package/dist/m365/connection/commands/connection-use.js +25 -4
- package/dist/m365/entra/commands/multitenant/multitenant-add.js +65 -0
- package/dist/m365/entra/commands/multitenant/multitenant-remove.js +118 -0
- package/dist/m365/entra/commands/multitenant/multitenant-set.js +72 -0
- package/dist/m365/entra/commands.js +3 -0
- package/dist/m365/spe/ContainerTypeProperties.js +2 -0
- package/dist/m365/spe/commands/containertype/containertype-list.js +49 -0
- package/dist/m365/spe/commands.js +2 -1
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +16 -21
- package/dist/m365/spo/commands/commandset/commandset-get.js +31 -17
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +46 -21
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +48 -46
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +19 -5
- package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +20 -6
- package/dist/utils/formatting.js +16 -0
- package/dist/utils/spo.js +37 -6
- package/dist/utils/zod.js +124 -0
- package/docs/docs/cmd/connection/connection-use.mdx +8 -2
- package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +107 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +58 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +53 -0
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +102 -0
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +87 -38
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +22 -28
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +75 -24
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +26 -32
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +15 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +15 -3
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +4 -4
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +9 -9
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +7 -7
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +79 -30
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +20 -19
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +84 -38
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +20 -19
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-list.mdx +7 -3
- package/npm-shrinkwrap.json +604 -843
- package/package.json +6 -2
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
function parseEffect(def, _options, _currentOption) {
|
|
3
|
+
return def.schema._def;
|
|
4
|
+
}
|
|
5
|
+
function parseIntersection(def, _options, _currentOption) {
|
|
6
|
+
if (def.left._def.typeName !== z.ZodFirstPartyTypeKind.ZodAny) {
|
|
7
|
+
return def.left._def;
|
|
8
|
+
}
|
|
9
|
+
if (def.right._def.typeName !== z.ZodFirstPartyTypeKind.ZodAny) {
|
|
10
|
+
return def.right._def;
|
|
11
|
+
}
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
function parseObject(def, options, _currentOption) {
|
|
15
|
+
const properties = def.shape();
|
|
16
|
+
for (const key in properties) {
|
|
17
|
+
const property = properties[key];
|
|
18
|
+
const option = {
|
|
19
|
+
name: key,
|
|
20
|
+
long: key,
|
|
21
|
+
short: property._def.alias,
|
|
22
|
+
required: true,
|
|
23
|
+
type: 'string'
|
|
24
|
+
};
|
|
25
|
+
parseDef(property._def, options, option);
|
|
26
|
+
options.push(option);
|
|
27
|
+
}
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
function parseString(_def, _options, currentOption) {
|
|
31
|
+
if (currentOption) {
|
|
32
|
+
currentOption.type = 'string';
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
function parseNumber(_def, _options, currentOption) {
|
|
37
|
+
if (currentOption) {
|
|
38
|
+
currentOption.type = 'number';
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
function parseBoolean(_def, _options, currentOption) {
|
|
43
|
+
if (currentOption) {
|
|
44
|
+
currentOption.type = 'boolean';
|
|
45
|
+
}
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
function parseOptional(def, _options, currentOption) {
|
|
49
|
+
if (currentOption) {
|
|
50
|
+
currentOption.required = false;
|
|
51
|
+
}
|
|
52
|
+
return def.innerType._def;
|
|
53
|
+
}
|
|
54
|
+
function parseDefault(def, _options, currentOption) {
|
|
55
|
+
if (currentOption) {
|
|
56
|
+
currentOption.required = false;
|
|
57
|
+
}
|
|
58
|
+
return def.innerType._def;
|
|
59
|
+
}
|
|
60
|
+
function parseEnum(def, _options, currentOption) {
|
|
61
|
+
if (currentOption) {
|
|
62
|
+
currentOption.type = 'string';
|
|
63
|
+
currentOption.autocomplete = def.values;
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
function parseNativeEnum(def, _options, currentOption) {
|
|
68
|
+
if (currentOption) {
|
|
69
|
+
currentOption.type = 'string';
|
|
70
|
+
currentOption.autocomplete = Object.getOwnPropertyNames(def.values);
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
function getParseFn(typeName) {
|
|
75
|
+
switch (typeName) {
|
|
76
|
+
case z.ZodFirstPartyTypeKind.ZodEffects:
|
|
77
|
+
return parseEffect;
|
|
78
|
+
case z.ZodFirstPartyTypeKind.ZodObject:
|
|
79
|
+
return parseObject;
|
|
80
|
+
case z.ZodFirstPartyTypeKind.ZodOptional:
|
|
81
|
+
return parseOptional;
|
|
82
|
+
case z.ZodFirstPartyTypeKind.ZodString:
|
|
83
|
+
return parseString;
|
|
84
|
+
case z.ZodFirstPartyTypeKind.ZodNumber:
|
|
85
|
+
return parseNumber;
|
|
86
|
+
case z.ZodFirstPartyTypeKind.ZodBoolean:
|
|
87
|
+
return parseBoolean;
|
|
88
|
+
case z.ZodFirstPartyTypeKind.ZodEnum:
|
|
89
|
+
return parseEnum;
|
|
90
|
+
case z.ZodFirstPartyTypeKind.ZodNativeEnum:
|
|
91
|
+
return parseNativeEnum;
|
|
92
|
+
case z.ZodFirstPartyTypeKind.ZodDefault:
|
|
93
|
+
return parseDefault;
|
|
94
|
+
case z.ZodFirstPartyTypeKind.ZodIntersection:
|
|
95
|
+
return parseIntersection;
|
|
96
|
+
default:
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function parseDef(def, options, currentOption) {
|
|
101
|
+
let parsedDef = def;
|
|
102
|
+
do {
|
|
103
|
+
const parse = getParseFn(parsedDef.typeName);
|
|
104
|
+
if (!parse) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
parsedDef = parse(parsedDef, options, currentOption);
|
|
108
|
+
if (!parsedDef) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
} while (parsedDef);
|
|
112
|
+
}
|
|
113
|
+
export const zod = {
|
|
114
|
+
alias(alias, type) {
|
|
115
|
+
type._def.alias = alias;
|
|
116
|
+
return type;
|
|
117
|
+
},
|
|
118
|
+
schemaToOptions(schema) {
|
|
119
|
+
const options = [];
|
|
120
|
+
parseDef(schema._def, options);
|
|
121
|
+
return options;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=zod.js.map
|
|
@@ -15,7 +15,7 @@ m365 connection use [options]
|
|
|
15
15
|
## Options
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
|
-
`-n, --name
|
|
18
|
+
`-n, --name [name]`
|
|
19
19
|
: The name of the connection to switch to.
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -23,7 +23,13 @@ m365 connection use [options]
|
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
:::tip
|
|
27
|
+
|
|
28
|
+
If you haven't disabled the "prompt" setting, running this command without options will show a list of available connections. You can then select the connection to activate it.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
You can update the name of a connection by running [m365 connection set](connection-set.mdx).
|
|
27
33
|
|
|
28
34
|
## Examples
|
|
29
35
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# entra multitenant add
|
|
6
|
+
|
|
7
|
+
Creates a new multitenant organization
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra multitenant add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --displayname <displayName>`
|
|
19
|
+
: Display name for the multitenant organization.
|
|
20
|
+
|
|
21
|
+
`-d, --description [description]`
|
|
22
|
+
: Description for the multitenant organiztion.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::info
|
|
30
|
+
|
|
31
|
+
To use this command you must be at least **Security Administrator**.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
## Examples
|
|
36
|
+
|
|
37
|
+
Create a new multitenant organization with display name only.
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
m365 entra multitenant add --displayName 'Contoso organization'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Create a new multitenant organization with display name and description.
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
m365 entra multitenant add --displayName 'Contoso organization' --description 'Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Response
|
|
50
|
+
|
|
51
|
+
<Tabs>
|
|
52
|
+
<TabItem value="JSON">
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"id": "c231d4a5-138f-4bdf-9fee-f26a90ea3ad0",
|
|
57
|
+
"createdDateTime": "2024-05-05T05:05:05Z",
|
|
58
|
+
"state": "active",
|
|
59
|
+
"displayName": "Contoso organization",
|
|
60
|
+
"description": "Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank"
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
</TabItem>
|
|
65
|
+
<TabItem value="Text">
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
createdDateTime: 2024-05-05T05:05:05Z
|
|
69
|
+
description : Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank
|
|
70
|
+
displayName : Contoso organization
|
|
71
|
+
id : c231d4a5-138f-4bdf-9fee-f26a90ea3ad0
|
|
72
|
+
state : active
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
</TabItem>
|
|
76
|
+
<TabItem value="CSV">
|
|
77
|
+
|
|
78
|
+
```csv
|
|
79
|
+
id,createdDateTime,state,displayName,description
|
|
80
|
+
c231d4a5-138f-4bdf-9fee-f26a90ea3ad0,2024-05-05T05:05:05Z,active,Contoso organization,"Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
</TabItem>
|
|
84
|
+
<TabItem value="Markdown">
|
|
85
|
+
|
|
86
|
+
```md
|
|
87
|
+
# entra multitenant add
|
|
88
|
+
|
|
89
|
+
Date: 5/5/2024
|
|
90
|
+
|
|
91
|
+
## Contoso organization (c231d4a5-138f-4bdf-9fee-f26a90ea3ad0)
|
|
92
|
+
|
|
93
|
+
Property | Value
|
|
94
|
+
---------|-------
|
|
95
|
+
id | c231d4a5-138f-4bdf-9fee-f26a90ea3ad0
|
|
96
|
+
createdDateTime | 2024-05-05T05:05:05Z
|
|
97
|
+
state | active
|
|
98
|
+
displayName | Contoso organization
|
|
99
|
+
description | Multitenant organization between Contoso, Fabrikam, and Woodgrove Bank
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
</TabItem>
|
|
103
|
+
</Tabs>
|
|
104
|
+
|
|
105
|
+
## More information
|
|
106
|
+
|
|
107
|
+
- Multitenant organization: https://learn.microsoft.com/entra/identity/multi-tenant-organizations/overview
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# entra multitenant remove
|
|
4
|
+
|
|
5
|
+
Removes a multitenant organization
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra multitenant remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-f, --force`
|
|
17
|
+
: Don't prompt for confirmation.
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
<Global />
|
|
21
|
+
|
|
22
|
+
## Remarks
|
|
23
|
+
|
|
24
|
+
:::info
|
|
25
|
+
|
|
26
|
+
To use this command you must be at least **Security Administrator**.
|
|
27
|
+
|
|
28
|
+
:::
|
|
29
|
+
|
|
30
|
+
:::info
|
|
31
|
+
|
|
32
|
+
When removing a Multi-Tenant Organization, all associations with other tenants will be removed too.
|
|
33
|
+
|
|
34
|
+
The removing process can take up to 2 hours to complete.
|
|
35
|
+
|
|
36
|
+
:::
|
|
37
|
+
|
|
38
|
+
## Examples
|
|
39
|
+
|
|
40
|
+
Remove the multitenant organization.
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
m365 entra multitenant remove
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Remove the multitenant organization without prompting for confirmation.
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
m365 entra multitenant remove --force
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Response
|
|
53
|
+
|
|
54
|
+
The command won't return a response on success
|
|
55
|
+
|
|
56
|
+
## More information
|
|
57
|
+
|
|
58
|
+
- Multitenant organization: https://learn.microsoft.com/entra/identity/multi-tenant-organizations/overview
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# entra multitenant set
|
|
4
|
+
|
|
5
|
+
Updates the properties of a multitenant organization
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra multitenant set [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-n, --displayName [displayName]`
|
|
17
|
+
: New display name of the multitenant organization. Both options, `displayName` and `description` are optional but at least must be specified.
|
|
18
|
+
|
|
19
|
+
`-d, --description [description]`
|
|
20
|
+
: New description of the multitenant organization. Both options, `displayName` and `description` are optional but at least must be specified.
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
<Global />
|
|
24
|
+
|
|
25
|
+
## Remarks
|
|
26
|
+
|
|
27
|
+
:::info
|
|
28
|
+
|
|
29
|
+
To use this command you must be at least **Security Administrator**.
|
|
30
|
+
|
|
31
|
+
:::
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Update display name of multitenant organization.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 entra multitenant set --displayName 'Fabrikam organization'
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Update display name and description of multitenant organization.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 entra multitenant set --displayName 'Fabrikam organization' --description 'Multitenant organization between Fabrikam and Contoso'
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Response
|
|
48
|
+
|
|
49
|
+
The command won't return a response on success
|
|
50
|
+
|
|
51
|
+
## More information
|
|
52
|
+
|
|
53
|
+
- Multitenant organization: https://learn.microsoft.com/entra/identity/multi-tenant-organizations/overview
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# spe containertype list
|
|
6
|
+
|
|
7
|
+
Lists all Container Types
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 spe containertype list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
<Global />
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
Retrieves a list of Container Types created for a SharePoint Embedded Application from the tenant.
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
m365 spe containertype list
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
<Tabs>
|
|
30
|
+
<TabItem value="JSON">
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
"_ObjectType_": "Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties",
|
|
36
|
+
"ApplicationRedirectUrl": null,
|
|
37
|
+
"AzureSubscriptionId": "/Guid(00000000-0000-0000-0000-000000000000)/",
|
|
38
|
+
"ContainerTypeId": "/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/",
|
|
39
|
+
"CreationDate": null,
|
|
40
|
+
"DisplayName": "test1",
|
|
41
|
+
"ExpiryDate": null,
|
|
42
|
+
"IsBillingProfileRequired": true,
|
|
43
|
+
"OwningAppId": "/Guid(df4085cc-9a38-4255-badc-5c5225610475)/",
|
|
44
|
+
"OwningTenantId": "/Guid(00000000-0000-0000-0000-000000000000)/",
|
|
45
|
+
"Region": null,
|
|
46
|
+
"ResourceGroup": null,
|
|
47
|
+
"SPContainerTypeBillingClassification": 0
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
</TabItem>
|
|
53
|
+
<TabItem value="Text">
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
ContainerTypeId DisplayName OwningAppId
|
|
57
|
+
-------------------------------------------- --------------------------------------------- --------------------------------------------
|
|
58
|
+
/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/ test1 /Guid(df4085cc-9a38-4255-badc-5c5225610475)/
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
</TabItem>
|
|
62
|
+
<TabItem value="CSV">
|
|
63
|
+
|
|
64
|
+
```csv
|
|
65
|
+
_ObjectType_,ApplicationRedirectUrl,AzureSubscriptionId,ContainerTypeId,CreationDate,DisplayName,ExpiryDate,IsBillingProfileRequired,OwningAppId,OwningTenantId,Region,ResourceGroup,SPContainerTypeBillingClassification
|
|
66
|
+
Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties,,/Guid(00000000-0000-0000-0000-000000000000)/,/Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/,,test1,,1,/Guid(df4085cc-9a38-4255-badc-5c5225610475)/,/Guid(00000000-0000-0000-0000-000000000000)/,,,0
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
</TabItem>
|
|
70
|
+
<TabItem value="Markdown">
|
|
71
|
+
|
|
72
|
+
```md
|
|
73
|
+
# spe containertype list
|
|
74
|
+
|
|
75
|
+
Date: 5/11/2024
|
|
76
|
+
|
|
77
|
+
## test1
|
|
78
|
+
|
|
79
|
+
Property | Value
|
|
80
|
+
---------|-------
|
|
81
|
+
\_ObjectType\_ | Microsoft.Online.SharePoint.TenantAdministration.SPContainerTypeProperties
|
|
82
|
+
AzureSubscriptionId | /Guid(00000000-0000-0000-0000-000000000000)/
|
|
83
|
+
ContainerTypeId | /Guid(073269af-f1d2-042d-2ef5-5bdd6ac83115)/
|
|
84
|
+
DisplayName | test1
|
|
85
|
+
IsBillingProfileRequired | true
|
|
86
|
+
OwningAppId | /Guid(df4085cc-9a38-4255-badc-5c5225610475)/
|
|
87
|
+
OwningTenantId | /Guid(00000000-0000-0000-0000-000000000000)/
|
|
88
|
+
SPContainerTypeBillingClassification | 0
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
</TabItem>
|
|
92
|
+
</Tabs>
|
|
93
|
+
|
|
94
|
+
## More information
|
|
95
|
+
|
|
96
|
+
In SharePoint Embedded, all files and documents are stored in Containers, and each Container is identified by a Container Type.
|
|
97
|
+
|
|
98
|
+
Container Type is a property stamped on every Container instance. Each Container Type is owned by one Application, and each Application can own only one Container Type.
|
|
99
|
+
|
|
100
|
+
The primary function of a Container Type is to manage the application workload that can access the Containers. Container Type defines the access permissions an Application has towards all Containers of that type, including create, read, write, delete containers; manage container permissions, etc.
|
|
101
|
+
|
|
102
|
+
More information about SharePoint Embedded and the limits can be found at the following location: [SharePoint Embedded](https://learn.microsoft.com/en-us/sharepoint/dev/embedded/concepts/app-concepts/containertypes#sharepoint-embedded-trial-container-types)
|
|
@@ -29,10 +29,17 @@ m365 spo applicationcustomizer get [options]
|
|
|
29
29
|
|
|
30
30
|
`-s, --scope [scope]`
|
|
31
31
|
: Scope of the application customizer. Allowed values: `Site`, `Web`, `All`. Defaults to `All`.
|
|
32
|
+
|
|
33
|
+
`-p, --clientSideComponentProperties`
|
|
34
|
+
: Only output the client-side component properties.
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
<Global />
|
|
35
38
|
|
|
39
|
+
## Remarks
|
|
40
|
+
|
|
41
|
+
This command can be used for retrieving an application customizer from a specific site. To retrieve an application customizer that's installed tenant-wide, view our dedicated [spo tenant applicationcustomizer get](../tenant/tenant-applicationcustomizer-get.mdx) command.
|
|
42
|
+
|
|
36
43
|
## Examples
|
|
37
44
|
|
|
38
45
|
Retrieves an application customizer by title.
|
|
@@ -59,36 +66,41 @@ Retrieves an application customizer by title available at the site scope.
|
|
|
59
66
|
m365 spo applicationcustomizer get --title "Some customizer" --webUrl https://contoso.sharepoint.com/sites/sales --scope site
|
|
60
67
|
```
|
|
61
68
|
|
|
62
|
-
|
|
69
|
+
Retrieves the client-side component properties of a application customizer.
|
|
63
70
|
|
|
64
|
-
|
|
71
|
+
```sh
|
|
72
|
+
m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales --clientSideComponentProperties
|
|
73
|
+
```
|
|
65
74
|
|
|
66
75
|
## Response
|
|
67
76
|
|
|
77
|
+
### Standard response
|
|
78
|
+
|
|
68
79
|
<Tabs>
|
|
69
80
|
<TabItem value="JSON">
|
|
70
81
|
|
|
71
82
|
```json
|
|
72
83
|
{
|
|
73
|
-
"ClientSideComponentId": "
|
|
74
|
-
"ClientSideComponentProperties": "",
|
|
84
|
+
"ClientSideComponentId": "9a8b100c-246b-4592-9454-67826523e159",
|
|
85
|
+
"ClientSideComponentProperties": "{\"testMessage\":\"Test message\"}",
|
|
75
86
|
"CommandUIExtension": null,
|
|
76
87
|
"Description": null,
|
|
77
88
|
"Group": null,
|
|
78
|
-
"
|
|
89
|
+
"HostProperties": "",
|
|
90
|
+
"Id": "4a428b32-08cf-45c7-9986-17585af38806",
|
|
79
91
|
"ImageUrl": null,
|
|
80
92
|
"Location": "ClientSideExtension.ApplicationCustomizer",
|
|
81
|
-
"Name": "
|
|
93
|
+
"Name": "{4a428b32-08cf-45c7-9986-17585af38806}",
|
|
82
94
|
"RegistrationId": null,
|
|
83
95
|
"RegistrationType": 0,
|
|
84
|
-
"Rights": "{\"High\"
|
|
96
|
+
"Rights": "{\"High\":\"0\",\"Low\":\"0\"}",
|
|
85
97
|
"Scope": "Web",
|
|
86
98
|
"ScriptBlock": null,
|
|
87
99
|
"ScriptSrc": null,
|
|
88
|
-
"Sequence":
|
|
89
|
-
"Title": "
|
|
100
|
+
"Sequence": 65536,
|
|
101
|
+
"Title": "HelloWorld",
|
|
90
102
|
"Url": null,
|
|
91
|
-
"VersionOfUserCustomAction": "
|
|
103
|
+
"VersionOfUserCustomAction": "1.0.1.0"
|
|
92
104
|
}
|
|
93
105
|
```
|
|
94
106
|
|
|
@@ -96,65 +108,102 @@ This command can be used for retrieving an application customizer from a specifi
|
|
|
96
108
|
<TabItem value="Text">
|
|
97
109
|
|
|
98
110
|
```text
|
|
99
|
-
ClientSideComponentId :
|
|
100
|
-
ClientSideComponentProperties:
|
|
111
|
+
ClientSideComponentId : 9a8b100c-246b-4592-9454-67826523e159
|
|
112
|
+
ClientSideComponentProperties: {"testMessage":"Test message"}
|
|
101
113
|
CommandUIExtension : null
|
|
102
114
|
Description : null
|
|
103
115
|
Group : null
|
|
104
|
-
|
|
116
|
+
HostProperties :
|
|
117
|
+
Id : 4a428b32-08cf-45c7-9986-17585af38806
|
|
105
118
|
ImageUrl : null
|
|
106
119
|
Location : ClientSideExtension.ApplicationCustomizer
|
|
107
|
-
Name :
|
|
120
|
+
Name : {4a428b32-08cf-45c7-9986-17585af38806}
|
|
108
121
|
RegistrationId : null
|
|
109
122
|
RegistrationType : 0
|
|
110
|
-
Rights : {"High":0,"Low":0}
|
|
123
|
+
Rights : {"High":"0","Low":"0"}
|
|
111
124
|
Scope : Web
|
|
112
125
|
ScriptBlock : null
|
|
113
126
|
ScriptSrc : null
|
|
114
|
-
Sequence :
|
|
115
|
-
Title :
|
|
127
|
+
Sequence : 65536
|
|
128
|
+
Title : HelloWorld
|
|
116
129
|
Url : null
|
|
117
|
-
VersionOfUserCustomAction :
|
|
130
|
+
VersionOfUserCustomAction : 1.0.1.0
|
|
118
131
|
```
|
|
119
132
|
|
|
120
133
|
</TabItem>
|
|
121
134
|
<TabItem value="CSV">
|
|
122
135
|
|
|
123
136
|
```csv
|
|
124
|
-
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
125
|
-
|
|
137
|
+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
|
|
138
|
+
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,{4a428b32-08cf-45c7-9986-17585af38806},,0,"{""High"":""0"",""Low"":""0""}",Web,,,65536,HelloWorld,,1.0.1.0
|
|
126
139
|
```
|
|
127
140
|
|
|
128
141
|
</TabItem>
|
|
129
142
|
<TabItem value="Markdown">
|
|
130
143
|
|
|
131
144
|
```md
|
|
132
|
-
# spo applicationcustomizer get --
|
|
145
|
+
# spo applicationcustomizer get --webUrl "https://contoso.sharepoint.com/sites/Marketing" --id "4a428b32-08cf-45c7-9986-17585af38806"
|
|
133
146
|
|
|
134
|
-
Date:
|
|
147
|
+
Date: 16/05/2024
|
|
135
148
|
|
|
136
|
-
##
|
|
149
|
+
## HelloWorld (4a428b32-08cf-45c7-9986-17585af38806)
|
|
137
150
|
|
|
138
151
|
Property | Value
|
|
139
152
|
---------|-------
|
|
140
|
-
ClientSideComponentId |
|
|
141
|
-
ClientSideComponentProperties |
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Group | null
|
|
145
|
-
Id | 14125658-a9bc-4ddf-9c75-1b5767c9a337
|
|
146
|
-
ImageUrl | null
|
|
153
|
+
ClientSideComponentId | 9a8b100c-246b-4592-9454-67826523e159
|
|
154
|
+
ClientSideComponentProperties | {"testMessage":"Test message"}
|
|
155
|
+
HostProperties |
|
|
156
|
+
Id | 4a428b32-08cf-45c7-9986-17585af38806
|
|
147
157
|
Location | ClientSideExtension.ApplicationCustomizer
|
|
148
|
-
Name |
|
|
149
|
-
RegistrationId | null
|
|
158
|
+
Name | {4a428b32-08cf-45c7-9986-17585af38806}
|
|
150
159
|
RegistrationType | 0
|
|
160
|
+
Rights | {"High":"0","Low":"0"}
|
|
151
161
|
Scope | Web
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
Sequence | 65536
|
|
163
|
+
Title | HelloWorld
|
|
164
|
+
VersionOfUserCustomAction | 1.0.1.0
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
</TabItem>
|
|
168
|
+
</Tabs>
|
|
169
|
+
|
|
170
|
+
### `clientSideComponentProperties` response
|
|
171
|
+
|
|
172
|
+
<Tabs>
|
|
173
|
+
<TabItem value="JSON">
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
{
|
|
177
|
+
"testMessage": "Test message"
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
</TabItem>
|
|
182
|
+
<TabItem value="Text">
|
|
183
|
+
|
|
184
|
+
```txt
|
|
185
|
+
testMessage: Test message
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
</TabItem>
|
|
189
|
+
<TabItem value="CSV">
|
|
190
|
+
|
|
191
|
+
```csv
|
|
192
|
+
testMessage
|
|
193
|
+
Test message
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
</TabItem>
|
|
197
|
+
<TabItem value="Markdown">
|
|
198
|
+
|
|
199
|
+
```md
|
|
200
|
+
# spo applicationcustomizer get --title "Some customizer" --webUrl "https://contoso.sharepoint.com/sites/sales" --scope "Web" --clientSideComponentProperties "true"
|
|
201
|
+
|
|
202
|
+
Date: 15/05/2024
|
|
203
|
+
|
|
204
|
+
Property | Value
|
|
205
|
+
---------|-------
|
|
206
|
+
testMessage | Test message
|
|
158
207
|
```
|
|
159
208
|
|
|
160
209
|
</TabItem>
|