@pnp/cli-microsoft365 7.1.0 → 7.2.0-beta.0642f3a
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/.devcontainer/Dockerfile +0 -1
- package/.eslintrc.cjs +4 -0
- package/Dockerfile +0 -1
- package/dist/cli/Cli.js +3 -2
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-add.js +61 -0
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-get.js +80 -0
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-list.js +25 -0
- package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +96 -0
- package/dist/m365/aad/commands.js +4 -0
- package/dist/m365/base/AppCommand.js +3 -12
- package/dist/m365/{search/commands/externalconnection/externalconnection-add.js → external/commands/connection/connection-add.js} +16 -13
- package/dist/m365/{search/commands/externalconnection/externalconnection-get.js → external/commands/connection/connection-get.js} +16 -13
- package/dist/m365/{search/commands/externalconnection/externalconnection-list.js → external/commands/connection/connection-list.js} +7 -4
- package/dist/m365/{search/commands/externalconnection/externalconnection-remove.js → external/commands/connection/connection-remove.js} +17 -14
- package/dist/m365/{search/commands/externalconnection/externalconnection-schema-add.js → external/commands/connection/connection-schema-add.js} +14 -11
- package/dist/m365/external/commands.js +15 -0
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1-rc.0.js +21 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014010_CODE_settings_filesexclude_jest.js +44 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.1-rc.0.js +57 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/spo/commands/site/site-set.js +33 -1
- package/dist/m365/teams/commands/app/app-update.js +9 -6
- package/dist/m365/tenant/commands/people/people-profilecardproperty-add.js +131 -0
- package/dist/m365/tenant/commands/people/people-profilecardproperty-get.js +75 -0
- package/dist/m365/tenant/commands/people/people-profilecardproperty-list.js +53 -0
- package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +84 -0
- package/dist/m365/tenant/commands/people/people-profilecardproperty-set.js +118 -0
- package/dist/m365/tenant/commands/people/profileCardProperties.js +24 -0
- package/dist/m365/tenant/commands.js +5 -0
- package/dist/utils/aadAdministrativeUnit.js +25 -0
- package/dist/utils/aadGroup.js +3 -1
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-add.mdx +119 -0
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-get.mdx +102 -0
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-list.mdx +87 -0
- package/docs/docs/cmd/aad/administrativeunit/administrativeunit-remove.mdx +56 -0
- package/docs/docs/cmd/{search/externalconnection/externalconnection-add.mdx → external/connection/connection-add.mdx} +16 -10
- package/docs/docs/cmd/{search/externalconnection/externalconnection-get.mdx → external/connection/connection-get.mdx} +16 -11
- package/docs/docs/cmd/{search/externalconnection/externalconnection-list.mdx → external/connection/connection-list.mdx} +12 -7
- package/docs/docs/cmd/external/connection/connection-remove.mdx +54 -0
- package/docs/docs/cmd/external/connection/connection-schema-add.mdx +41 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-rename.mdx +2 -0
- package/docs/docs/cmd/spo/site/site-set.mdx +15 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +126 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +101 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +98 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +61 -0
- package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +120 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +5 -7
- package/dist/m365/search/commands.js +0 -9
- package/docs/docs/cmd/search/externalconnection/externalconnection-remove.mdx +0 -48
- package/docs/docs/cmd/search/externalconnection/externalconnection-schema-add.mdx +0 -35
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# aad administrativeunit remove
|
|
4
|
+
|
|
5
|
+
Removes an administrative unit
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 aad administrativeunit remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the administrative unit. Specify either `id` or `displayName` but not both.
|
|
18
|
+
|
|
19
|
+
`-n, --displayName [displayName]`
|
|
20
|
+
: The display name of the administrative unit. Specify either `id` or `displayName` but not both.
|
|
21
|
+
|
|
22
|
+
`-f, --force`
|
|
23
|
+
: Don't prompt for confirmation.
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
<Global />
|
|
27
|
+
|
|
28
|
+
## Remarks
|
|
29
|
+
|
|
30
|
+
:::info
|
|
31
|
+
|
|
32
|
+
To use this command you must be either **Global Administrator** or **Privileged Role Administrator**.
|
|
33
|
+
|
|
34
|
+
:::
|
|
35
|
+
|
|
36
|
+
## Examples
|
|
37
|
+
|
|
38
|
+
Remove an administrative unit by its id
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 aad administrativeunit remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Remove an administrative unit by it displayName
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
m365 aad administrativeunit remove --displayName 'Marketing Division'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Response
|
|
51
|
+
|
|
52
|
+
The command won't return a response on success
|
|
53
|
+
|
|
54
|
+
## More information
|
|
55
|
+
|
|
56
|
+
- Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# external connection add
|
|
4
4
|
|
|
5
|
-
Add a new external connection
|
|
5
|
+
Add a new external connection
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
m365
|
|
10
|
+
m365 external connection add [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
m365 search externalconnection add
|
|
11
17
|
```
|
|
12
18
|
|
|
13
19
|
## Options
|
|
14
20
|
|
|
15
21
|
```md definition-list
|
|
16
22
|
`-i, --id <id>`
|
|
17
|
-
: Developer-provided unique ID of the connection within the Azure Active Directory tenant
|
|
23
|
+
: Developer-provided unique ID of the connection within the Azure Active Directory tenant.
|
|
18
24
|
|
|
19
25
|
`-n, --name <name>`
|
|
20
|
-
: The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters
|
|
26
|
+
: The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters.
|
|
21
27
|
|
|
22
28
|
`-d, --description <description>`
|
|
23
|
-
: Description of the connection displayed in the Microsoft 365 admin center
|
|
29
|
+
: Description of the connection displayed in the Microsoft 365 admin center.
|
|
24
30
|
|
|
25
31
|
`--authorizedAppIds [authorizedAppIds]`
|
|
26
32
|
: Comma-separated collection of application IDs for registered Azure Active Directory apps that are allowed to manage the external connection and to index content in the external connection.
|
|
@@ -34,16 +40,16 @@ The `id` must be at least 3 and no more than 32 characters long. It can contain
|
|
|
34
40
|
|
|
35
41
|
## Examples
|
|
36
42
|
|
|
37
|
-
Adds a new external connection with name and description of test app
|
|
43
|
+
Adds a new external connection with name and description of test app.
|
|
38
44
|
|
|
39
45
|
```sh
|
|
40
|
-
m365
|
|
46
|
+
m365 external connection add --id MyApp --name "Test" --description "Test"
|
|
41
47
|
```
|
|
42
48
|
|
|
43
|
-
Adds a new external connection with a limited number of authorized apps
|
|
49
|
+
Adds a new external connection with a limited number of authorized apps.
|
|
44
50
|
|
|
45
51
|
```sh
|
|
46
|
-
m365
|
|
52
|
+
m365 external connection add --id MyApp --name "Test" --description "Test" --authorizedAppIds "00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000001,00000000-0000-0000-0000-000000000002"
|
|
47
53
|
```
|
|
48
54
|
|
|
49
55
|
## Response
|
|
@@ -2,40 +2,46 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# external connection get
|
|
6
6
|
|
|
7
|
-
Allow the administrator to get a specific external connection
|
|
7
|
+
Allow the administrator to get a specific external connection
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365
|
|
12
|
+
m365 external connection get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
m365 search externalconnection get
|
|
13
19
|
```
|
|
14
20
|
|
|
15
21
|
## Options
|
|
16
22
|
|
|
17
23
|
```md definition-list
|
|
18
24
|
`-i, --id [id]`
|
|
19
|
-
: ID of the External Connection to get. Specify either `id` or `name
|
|
25
|
+
: ID of the External Connection to get. Specify either `id` or `name`.
|
|
20
26
|
|
|
21
27
|
`-n, --name [name]`
|
|
22
|
-
: Name of the External Connection to get. Specify either `id` or `name
|
|
28
|
+
: Name of the External Connection to get. Specify either `id` or `name`.
|
|
23
29
|
```
|
|
24
30
|
|
|
25
31
|
<Global />
|
|
26
32
|
|
|
27
33
|
## Examples
|
|
28
34
|
|
|
29
|
-
Get the External Connection by its id
|
|
35
|
+
Get the External Connection by its id.
|
|
30
36
|
|
|
31
37
|
```sh
|
|
32
|
-
m365
|
|
38
|
+
m365 external connection get --id "MyApp"
|
|
33
39
|
```
|
|
34
40
|
|
|
35
|
-
Get the External Connection by its name
|
|
41
|
+
Get the External Connection by its name.
|
|
36
42
|
|
|
37
43
|
```sh
|
|
38
|
-
m365
|
|
44
|
+
m365 external connection get --name "Test"
|
|
39
45
|
```
|
|
40
46
|
|
|
41
47
|
## Response
|
|
@@ -83,7 +89,7 @@ m365 search externalconnection get --name "Test"
|
|
|
83
89
|
<TabItem value="Markdown">
|
|
84
90
|
|
|
85
91
|
```md
|
|
86
|
-
#
|
|
92
|
+
# external connection get --id "CLITest"
|
|
87
93
|
|
|
88
94
|
Date: 2022-11-05
|
|
89
95
|
|
|
@@ -99,4 +105,3 @@ m365 search externalconnection get --name "Test"
|
|
|
99
105
|
|
|
100
106
|
</TabItem>
|
|
101
107
|
</Tabs>
|
|
102
|
-
|
|
@@ -2,14 +2,20 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# external connection list
|
|
6
6
|
|
|
7
|
-
Lists external connections
|
|
7
|
+
Lists external connections
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365
|
|
12
|
+
m365 external connection list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
m365 search externalconnection list
|
|
13
19
|
```
|
|
14
20
|
|
|
15
21
|
## Options
|
|
@@ -18,10 +24,10 @@ m365 search externalconnection list [options]
|
|
|
18
24
|
|
|
19
25
|
## Examples
|
|
20
26
|
|
|
21
|
-
List external connections
|
|
27
|
+
List external connections.
|
|
22
28
|
|
|
23
29
|
```sh
|
|
24
|
-
m365
|
|
30
|
+
m365 external connection list
|
|
25
31
|
```
|
|
26
32
|
|
|
27
33
|
## Response
|
|
@@ -69,7 +75,7 @@ m365 search externalconnection list
|
|
|
69
75
|
<TabItem value="Markdown">
|
|
70
76
|
|
|
71
77
|
```md
|
|
72
|
-
#
|
|
78
|
+
# external connection list
|
|
73
79
|
|
|
74
80
|
Date: 2022-09-05
|
|
75
81
|
|
|
@@ -85,4 +91,3 @@ m365 search externalconnection list
|
|
|
85
91
|
|
|
86
92
|
</TabItem>
|
|
87
93
|
</Tabs>
|
|
88
|
-
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# external connection remove
|
|
4
|
+
|
|
5
|
+
Allow the administrator to remove a specific external connection
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 external connection remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
m365 search externalconnection remove
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```md definition-list
|
|
22
|
+
`-i, --id [id]`
|
|
23
|
+
: ID of the External Connection to remove. Specify either `id` or `name`.
|
|
24
|
+
|
|
25
|
+
`-n, --name [name]`
|
|
26
|
+
: Name of the External Connection to remove. Specify either `id` or `name`.
|
|
27
|
+
|
|
28
|
+
`-f, --force`
|
|
29
|
+
: Don't prompt for confirming removing the connection.
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
<Global />
|
|
33
|
+
|
|
34
|
+
## Remarks
|
|
35
|
+
|
|
36
|
+
If the command finds multiple external connections with the specified name, it will prompt you to disambiguate which external connection it should remove, listing the discovered IDs.
|
|
37
|
+
|
|
38
|
+
## Examples
|
|
39
|
+
|
|
40
|
+
Removes external connection by its id.
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
m365 external connection remove --id "MyApp"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Removes external connection by its name. Will NOT prompt for confirmation before removing.
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
m365 external connection remove --name "Test" --force
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Response
|
|
53
|
+
|
|
54
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# external connection schema add
|
|
4
|
+
|
|
5
|
+
Allow the administrator to add a schema to a specific external connection
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 external connection schema add [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
m365 search externalconnection schema add
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```md definition-list
|
|
22
|
+
`-i, --externalConnectionId <externalConnectionId>`
|
|
23
|
+
: ID of the External Connection.
|
|
24
|
+
|
|
25
|
+
`-s, --schema [schema]`
|
|
26
|
+
: The schema object to be added.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
<Global />
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
Adds a new schema to a specific external connection.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
m365 external connection schema add --externalConnectionId 'CliConnectionId' --schema '{"baseType":"microsoft.graph.externalItem","properties":[{"name":"ticketTitle","type":"String","isSearchable":"true","isRetrievable":"true","labels":["title"]},{"name":"priority","type":"String","isQueryable":"true","isRetrievable":"true","isSearchable":"false"},{"name":"assignee","type":"String","isRetrievable":"true"}]}'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Response
|
|
40
|
+
|
|
41
|
+
The command won't return a response on success.
|
|
@@ -35,7 +35,7 @@ m365 spfx project upgrade [options]
|
|
|
35
35
|
|
|
36
36
|
## Remarks
|
|
37
37
|
|
|
38
|
-
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.18.0).
|
|
38
|
+
The `spfx project upgrade` command helps you upgrade your SharePoint Framework project to the specified version. If no version is specified, the command will upgrade to the latest version of the SharePoint Framework it supports (v1.18.1-rc.0).
|
|
39
39
|
|
|
40
40
|
This command doesn't change your project files. Instead, it gives you a report with all steps necessary to upgrade your project to the specified version of the SharePoint Framework. Changing project files is error-prone, especially when it comes to updating your solution's code. This is why at this moment, this command produces a report that you can use yourself to perform the necessary updates and verify that everything is working as expected.
|
|
41
41
|
|
|
@@ -49,6 +49,9 @@ m365 spo site set [options]
|
|
|
49
49
|
`--siteLogoUrl [siteLogoUrl]`
|
|
50
50
|
: Set the logo for the site collection. This can be an absolute or relative URL to a file on the current site collection.
|
|
51
51
|
|
|
52
|
+
`--siteThumbnailUrl [siteThumbnailUrl]`
|
|
53
|
+
: Set the thumbnail for the site collection. This can be an absolute or relative URL to a file on the current site collection.
|
|
54
|
+
|
|
52
55
|
`--resourceQuota [resourceQuota]`
|
|
53
56
|
: The quota for this site collection in Sandboxed Solutions units
|
|
54
57
|
|
|
@@ -184,6 +187,18 @@ Unset the logo on the site
|
|
|
184
187
|
m365 spo site set --url https://contoso.sharepoint.com/sites/sales --siteLogoUrl ""
|
|
185
188
|
```
|
|
186
189
|
|
|
190
|
+
Set the thumbnail on the site
|
|
191
|
+
|
|
192
|
+
```sh
|
|
193
|
+
m365 spo site set --url https://contoso.sharepoint.com/sites/sales --siteThumbnailUrl "/sites/sales/SiteAssets/parker-ms-1200.png"
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Unset the thumbnail on the site
|
|
197
|
+
|
|
198
|
+
```sh
|
|
199
|
+
m365 spo site set --url https://contoso.sharepoint.com/sites/sales --siteThumbnailUrl ""
|
|
200
|
+
```
|
|
201
|
+
|
|
187
202
|
Lock the site preventing users from accessing it. Wait for the configuration to complete
|
|
188
203
|
|
|
189
204
|
```sh
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# tenant people profilecardproperty add
|
|
6
|
+
|
|
7
|
+
Adds an additional attribute to the profile card properties
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 tenant people profilecardproperty add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The name of the property to add. Allowed values: `UserPrincipalName`, `Fax`, `StreetAddress`, `PostalCode`, `StateOrProvince`, `Alias`, `customAttribute1`, `customAttribute2`, `customAttribute3`, `customAttribute4`, `customAttribute5`, `customAttribute6`, `customAttribute7`, `customAttribute8`, `customAttribute9`, `customAttribute10`, `customAttribute11`, `customAttribute12`, `customAttribute13`, `customAttribute14`, `customAttribute15`.
|
|
20
|
+
|
|
21
|
+
`-d, --displayName [displayName]`
|
|
22
|
+
: The display name of a property, only use this together with a custom extension attribute.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Remarks
|
|
28
|
+
|
|
29
|
+
:::info
|
|
30
|
+
|
|
31
|
+
To use this command you must be either **Tenant Administrator** or **Global Administrator**.
|
|
32
|
+
|
|
33
|
+
:::
|
|
34
|
+
|
|
35
|
+
:::info
|
|
36
|
+
|
|
37
|
+
You can specify localized values for the `displayName` as well. These can be entered by suffixing the displayName option with a language code: `--displayName-nl-NL "Kostencentrum"`, `--displayName-de "Kostenstelle"`.
|
|
38
|
+
|
|
39
|
+
:::
|
|
40
|
+
|
|
41
|
+
:::caution
|
|
42
|
+
|
|
43
|
+
When adding an attribute to a profile card, it takes up to 24 hours for the addition to be displayed.
|
|
44
|
+
|
|
45
|
+
:::
|
|
46
|
+
|
|
47
|
+
## Examples
|
|
48
|
+
|
|
49
|
+
Add the UPN as a profile property to the profile cards properties
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
m365 tenant people profilecardproperty add --name UserPrincipalName
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Add a custom extension attribute _Cost Center_ as a profile property to the profile cards properties
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
m365 tenant people profilecardproperty add --name customAttribute1 --displayName 'Cost Center'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Add a custom extension attribute _Cost Center_ as a profile property to the profile cards properties with a Dutch localization
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
m365 tenant people profilecardproperty add --name customAttribute1 --displayName 'Cost Center' --displayName-nl-NL 'Kostencentrum'
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Response
|
|
68
|
+
|
|
69
|
+
<Tabs>
|
|
70
|
+
<TabItem value="JSON">
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"directoryPropertyName": "customAttribute1",
|
|
75
|
+
"annotations": [
|
|
76
|
+
{
|
|
77
|
+
"displayName": "Cost center",
|
|
78
|
+
"localizations": [
|
|
79
|
+
{
|
|
80
|
+
"languageTag": "nl-NL",
|
|
81
|
+
"displayName": "Kostenplaats"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
</TabItem>
|
|
90
|
+
<TabItem value="Text">
|
|
91
|
+
|
|
92
|
+
```text
|
|
93
|
+
directoryPropertyName: customAttribute1
|
|
94
|
+
displayName : Cost center
|
|
95
|
+
displayName nl-NL : Kostenplaats
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
</TabItem>
|
|
99
|
+
<TabItem value="CSV">
|
|
100
|
+
|
|
101
|
+
```csv
|
|
102
|
+
directoryPropertyName,displayName,displayName nl-NL
|
|
103
|
+
customAttribute1,Cost center,Kostenplaats
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
</TabItem>
|
|
107
|
+
<TabItem value="Markdown">
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
# tenant people profilecardproperty add --name 'customAttribute1' --displayName 'Cost center' --displayName-nl-NL 'Kostenplaats'
|
|
111
|
+
|
|
112
|
+
Date: 11/2/2023
|
|
113
|
+
|
|
114
|
+
Property | Value
|
|
115
|
+
---------|-------
|
|
116
|
+
directoryPropertyName | customAttribute1
|
|
117
|
+
displayName | Cost center
|
|
118
|
+
displayName nl-NL | Kostenplaats
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
</TabItem>
|
|
122
|
+
</Tabs>
|
|
123
|
+
|
|
124
|
+
## More information
|
|
125
|
+
|
|
126
|
+
- https://learn.microsoft.com/graph/add-properties-profilecard
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# tenant people profilecardproperty get
|
|
6
|
+
|
|
7
|
+
Retrieves information about a specific profile card property
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 tenant people profilecardproperty get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The name of the property to retrieve. Allowed values: `UserPrincipalName`, `Fax`, `StreetAddress`, `PostalCode`, `StateOrProvince`, `Alias`, `customAttribute1`, `customAttribute2`, `customAttribute3`, `customAttribute4`, `customAttribute5`, `customAttribute6`, `customAttribute7`, `customAttribute8`, `customAttribute9`, `customAttribute10`, `customAttribute11`, `customAttribute12`, `customAttribute13`, `customAttribute14`, `customAttribute15`.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
<Global />
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
:::info
|
|
27
|
+
|
|
28
|
+
To use this command you must be either **Tenant Administrator** or **Global Administrator**.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
Retrieve information about a specific profile card property
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
m365 tenant people profilecardproperty get --name customAttribute1
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Response
|
|
41
|
+
|
|
42
|
+
<Tabs>
|
|
43
|
+
<TabItem value="JSON">
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"directoryPropertyName": "customAttribute1",
|
|
48
|
+
"annotations": [
|
|
49
|
+
{
|
|
50
|
+
"displayName": "Cost center",
|
|
51
|
+
"localizations": [
|
|
52
|
+
{
|
|
53
|
+
"languageTag": "nl-NL",
|
|
54
|
+
"displayName": "Kostencentrum"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
</TabItem>
|
|
63
|
+
<TabItem value="Text">
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
directoryPropertyName: customAttribute1
|
|
67
|
+
displayName : Cost center
|
|
68
|
+
displayName nl-NL : Kostencentrum
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
</TabItem>
|
|
72
|
+
<TabItem value="CSV">
|
|
73
|
+
|
|
74
|
+
```csv
|
|
75
|
+
directoryPropertyName,displayName,displayName nl-NL
|
|
76
|
+
customAttribute1,Cost center,Kostencentrum
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</TabItem>
|
|
80
|
+
<TabItem value="Markdown">
|
|
81
|
+
|
|
82
|
+
```md
|
|
83
|
+
# tenant people profilecardproperty get --name "customAttribute1"
|
|
84
|
+
|
|
85
|
+
Date: 3/11/2023
|
|
86
|
+
|
|
87
|
+
## Cost center
|
|
88
|
+
|
|
89
|
+
Property | Value
|
|
90
|
+
---------|-------
|
|
91
|
+
directoryPropertyName | customAttribute1
|
|
92
|
+
displayName | Cost center
|
|
93
|
+
displayName nl-NL | Kostencentrum
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
</TabItem>
|
|
97
|
+
</Tabs>
|
|
98
|
+
|
|
99
|
+
## More information
|
|
100
|
+
|
|
101
|
+
- https://learn.microsoft.com/graph/add-properties-profilecard
|