@pnp/cli-microsoft365 7.1.0-beta.d53f0d9 → 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.
Files changed (72) hide show
  1. package/.devcontainer/Dockerfile +0 -1
  2. package/.eslintrc.cjs +4 -0
  3. package/Dockerfile +0 -1
  4. package/dist/Auth.js +1 -1
  5. package/dist/Command.js +18 -28
  6. package/dist/cli/Cli.js +6 -4
  7. package/dist/m365/aad/commands/administrativeunit/administrativeunit-add.js +61 -0
  8. package/dist/m365/aad/commands/administrativeunit/administrativeunit-get.js +80 -0
  9. package/dist/m365/aad/commands/administrativeunit/administrativeunit-list.js +25 -0
  10. package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +96 -0
  11. package/dist/m365/aad/commands/group/group-user-list.js +146 -0
  12. package/dist/m365/aad/commands/m365group/m365group-remove.js +109 -15
  13. package/dist/m365/aad/commands.js +5 -0
  14. package/dist/m365/base/AppCommand.js +3 -12
  15. package/dist/m365/cli/commands/cli-doctor.js +11 -6
  16. package/dist/m365/commands/setup.js +6 -1
  17. package/dist/m365/{search/commands/externalconnection/externalconnection-add.js → external/commands/connection/connection-add.js} +16 -13
  18. package/dist/m365/{search/commands/externalconnection/externalconnection-get.js → external/commands/connection/connection-get.js} +16 -13
  19. package/dist/m365/{search/commands/externalconnection/externalconnection-list.js → external/commands/connection/connection-list.js} +7 -4
  20. package/dist/m365/{search/commands/externalconnection/externalconnection-remove.js → external/commands/connection/connection-remove.js} +17 -14
  21. package/dist/m365/{search/commands/externalconnection/externalconnection-schema-add.js → external/commands/connection/connection-schema-add.js} +14 -11
  22. package/dist/m365/external/commands.js +15 -0
  23. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1-rc.0.js +21 -0
  24. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  25. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014010_CODE_settings_filesexclude_jest.js +44 -0
  26. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.1-rc.0.js +57 -0
  27. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  28. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  29. package/dist/m365/spo/commands/site/site-set.js +33 -1
  30. package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +15 -14
  31. package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +22 -22
  32. package/dist/m365/teams/commands/app/app-update.js +9 -6
  33. package/dist/m365/tenant/commands/people/people-profilecardproperty-add.js +131 -0
  34. package/dist/m365/tenant/commands/people/people-profilecardproperty-get.js +75 -0
  35. package/dist/m365/tenant/commands/people/people-profilecardproperty-list.js +53 -0
  36. package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +84 -0
  37. package/dist/m365/tenant/commands/people/people-profilecardproperty-set.js +118 -0
  38. package/dist/m365/tenant/commands/people/profileCardProperties.js +24 -0
  39. package/dist/m365/tenant/commands.js +5 -0
  40. package/dist/m365/todo/commands/task/task-list.js +8 -10
  41. package/dist/m365/todo/commands/task/task-remove.js +36 -36
  42. package/dist/m365/todo/commands/task/task-set.js +11 -13
  43. package/dist/m365/yammer/commands/group/group-user-remove.js +22 -23
  44. package/dist/utils/aadAdministrativeUnit.js +25 -0
  45. package/dist/utils/aadGroup.js +3 -1
  46. package/dist/utils/odata.js +20 -19
  47. package/dist/utils/prompt.js +16 -0
  48. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-add.mdx +119 -0
  49. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-get.mdx +102 -0
  50. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-list.mdx +87 -0
  51. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-remove.mdx +56 -0
  52. package/docs/docs/cmd/aad/group/group-user-list.mdx +135 -0
  53. package/docs/docs/cmd/aad/m365group/m365group-remove.mdx +11 -1
  54. package/docs/docs/cmd/{search/externalconnection/externalconnection-add.mdx → external/connection/connection-add.mdx} +16 -10
  55. package/docs/docs/cmd/{search/externalconnection/externalconnection-get.mdx → external/connection/connection-get.mdx} +16 -11
  56. package/docs/docs/cmd/{search/externalconnection/externalconnection-list.mdx → external/connection/connection-list.mdx} +12 -7
  57. package/docs/docs/cmd/external/connection/connection-remove.mdx +54 -0
  58. package/docs/docs/cmd/external/connection/connection-schema-add.mdx +41 -0
  59. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  60. package/docs/docs/cmd/spo/field/field-get.mdx +1 -1
  61. package/docs/docs/cmd/spo/file/file-rename.mdx +2 -0
  62. package/docs/docs/cmd/spo/site/site-set.mdx +15 -0
  63. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +126 -0
  64. package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +101 -0
  65. package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +98 -0
  66. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +61 -0
  67. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +120 -0
  68. package/npm-shrinkwrap.json +2 -2
  69. package/package.json +36 -18
  70. package/dist/m365/search/commands.js +0 -9
  71. package/docs/docs/cmd/search/externalconnection/externalconnection-remove.mdx +0 -48
  72. package/docs/docs/cmd/search/externalconnection/externalconnection-schema-add.mdx +0 -35
@@ -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
 
@@ -31,7 +31,7 @@ m365 spo field get [options]
31
31
  : The ID of the field to retrieve. Specify `id` or `title` but not both.
32
32
 
33
33
  `-t, --title [title]`
34
- : The display name (case-sensitive) of the field to remove. Specify `id` or `title` but not both.
34
+ : The display name (case-sensitive) of the field to retrieve. Specify `id` or `title` but not both.
35
35
  ```
36
36
 
37
37
  <Global />
@@ -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
  # spo file rename
4
6
 
@@ -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
@@ -0,0 +1,98 @@
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 list
6
+
7
+ Lists all profile card properties
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 tenant people profilecardproperty list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ <Global />
18
+
19
+ ## Remarks
20
+
21
+ :::info
22
+
23
+ To use this command you must be either **Tenant Administrator** or **Global Administrator**.
24
+
25
+ :::
26
+
27
+ ## Examples
28
+
29
+ Lists all profile card properties
30
+
31
+ ```sh
32
+ m365 tenant people profilecardproperty list
33
+ ```
34
+
35
+ ## Response
36
+
37
+ <Tabs>
38
+ <TabItem value="JSON">
39
+
40
+ ```json
41
+ [
42
+ {
43
+ "directoryPropertyName": "customAttribute1",
44
+ "annotations": [
45
+ {
46
+ "displayName": "Cost center",
47
+ "localizations": [
48
+ {
49
+ "languageTag": "de",
50
+ "displayName": "Kostenstelle"
51
+ }
52
+ ]
53
+ }
54
+ ]
55
+ }
56
+ ]
57
+ ```
58
+
59
+ </TabItem>
60
+ <TabItem value="Text">
61
+
62
+ ```text
63
+ directoryPropertyName displayName displayName de
64
+ --------------------- -------------- --------------
65
+ customAttribute1 Cost center Kostenstelle
66
+ ```
67
+
68
+ </TabItem>
69
+ <TabItem value="CSV">
70
+
71
+ ```csv
72
+ directoryPropertyName,displayName,displayName de
73
+ customAttribute1,Cost center,Kostenstelle
74
+ ```
75
+
76
+ </TabItem>
77
+ <TabItem value="Markdown">
78
+
79
+ ```md
80
+ # tenant people profilecardproperty list
81
+
82
+ Date: 11/4/2023
83
+
84
+ ## Cost center
85
+
86
+ Property | Value
87
+ ---------|-------
88
+ directoryPropertyName | customAttribute1
89
+ displayName | Cost center
90
+ displayName de | Kostenstelle
91
+ ```
92
+
93
+ </TabItem>
94
+ </Tabs>
95
+
96
+ ## More information
97
+
98
+ - https://learn.microsoft.com/graph/add-properties-profilecard
@@ -0,0 +1,61 @@
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 remove
6
+
7
+ Removes an additional attribute from the profile card properties
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 tenant people profilecardproperty remove [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --name <name>`
19
+ : The name of the property to remove. 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
+ `-f, --force`
22
+ : Don't prompt for confirmation.
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
+ :::caution
36
+
37
+ When removing an attribute from a profile card, it takes up to 24 hours for the change to be displayed.
38
+
39
+ :::
40
+
41
+ ## Examples
42
+
43
+ Removes the UPN as a profile property from the profile cards
44
+
45
+ ```sh
46
+ m365 tenant people profilecardproperty remove --name UserPrincipalName
47
+ ```
48
+
49
+ Removes the UPN as a profile property from the profile cards, without showing a confirmation prompt
50
+
51
+ ```sh
52
+ m365 tenant people profilecardproperty remove --name UserPrincipalName --force
53
+ ```
54
+
55
+ ## Response
56
+
57
+ The command won't return a response on success.
58
+
59
+ ## More information
60
+
61
+ - https://learn.microsoft.com/graph/add-properties-profilecard
@@ -0,0 +1,120 @@
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 set
6
+
7
+ Updates a custom attribute to the profile card property
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 tenant people profilecardproperty set [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --name <name>`
19
+ : The name of the property to update. Allowed values: `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 the property.
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 updating 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
+ Updates a custom extension attribute to Cost Center
50
+
51
+ ```sh
52
+ m365 tenant people profilecardproperty set --name customAttribute1 --displayName "Cost Center"
53
+ ```
54
+
55
+ Updates a custom extension attribute with translations
56
+
57
+ ```sh
58
+ m365 tenant people profilecardproperty set --name customAttribute1 --displayName "Cost Center" --displayName-nl-NL "Kostencentrum" --displayName-de "Kostenstelle"
59
+ ```
60
+
61
+ ## Response
62
+
63
+ <Tabs>
64
+ <TabItem value="JSON">
65
+
66
+ ```json
67
+ {
68
+ "directoryPropertyName": "customAttribute1",
69
+ "annotations": [
70
+ {
71
+ "displayName": "Cost center",
72
+ "localizations": [
73
+ {
74
+ "languageTag": "nl-NL",
75
+ "displayName": "Kostenplaats"
76
+ }
77
+ ]
78
+ }
79
+ ]
80
+ }
81
+ ```
82
+
83
+ </TabItem>
84
+ <TabItem value="Text">
85
+
86
+ ```text
87
+ directoryPropertyName: customAttribute1
88
+ displayName : Cost center
89
+ displayName nl-NL : Kostenplaats
90
+ ```
91
+
92
+ </TabItem>
93
+ <TabItem value="CSV">
94
+
95
+ ```csv
96
+ directoryPropertyName,displayName,displayName nl-NL
97
+ customAttribute1,Cost center,Kostenplaats
98
+ ```
99
+
100
+ </TabItem>
101
+ <TabItem value="Markdown">
102
+
103
+ ```md
104
+ # tenant people profilecardproperty set --name 'customAttribute1' --displayName 'Cost center' --displayName-nl-NL 'Kostenplaats'
105
+
106
+ Date: 11/2/2023
107
+
108
+ Property | Value
109
+ ---------|-------
110
+ directoryPropertyName | customAttribute1
111
+ displayName | Cost center
112
+ displayName nl-NL | Kostenplaats
113
+ ```
114
+
115
+ </TabItem>
116
+ </Tabs>
117
+
118
+ ## More information
119
+
120
+ - https://learn.microsoft.com/graph/add-properties-profilecard
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "7.1.0",
3
+ "version": "7.2.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@pnp/cli-microsoft365",
9
- "version": "7.1.0",
9
+ "version": "7.2.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@azure/msal-common": "^13.2.1",