@pnp/cli-microsoft365 7.2.0-beta.54705a9 → 7.2.0-beta.a021bb1

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 (34) hide show
  1. package/.eslintrc.cjs +4 -0
  2. package/dist/cli/Cli.js +3 -2
  3. package/dist/m365/aad/commands/administrativeunit/administrativeunit-add.js +61 -0
  4. package/dist/m365/aad/commands/administrativeunit/administrativeunit-get.js +93 -0
  5. package/dist/m365/aad/commands/administrativeunit/administrativeunit-list.js +25 -0
  6. package/dist/m365/aad/commands/administrativeunit/administrativeunit-remove.js +108 -0
  7. package/dist/m365/aad/commands.js +4 -0
  8. package/dist/m365/base/AppCommand.js +3 -12
  9. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.18.1-rc.0.js +21 -0
  10. package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
  11. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014010_CODE_settings_filesexclude_jest.js +44 -0
  12. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.18.1-rc.0.js +57 -0
  13. package/dist/m365/spfx/commands/project/project-upgrade.js +16 -13
  14. package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
  15. package/dist/m365/teams/commands/app/app-update.js +9 -6
  16. package/dist/m365/tenant/commands/people/people-profilecardproperty-add.js +131 -0
  17. package/dist/m365/tenant/commands/people/people-profilecardproperty-get.js +75 -0
  18. package/dist/m365/tenant/commands/people/people-profilecardproperty-list.js +53 -0
  19. package/dist/m365/tenant/commands/people/people-profilecardproperty-remove.js +84 -0
  20. package/dist/m365/tenant/commands/people/people-profilecardproperty-set.js +118 -0
  21. package/dist/m365/tenant/commands/people/profileCardProperties.js +24 -0
  22. package/dist/m365/tenant/commands.js +5 -0
  23. package/dist/utils/aadGroup.js +3 -1
  24. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-add.mdx +119 -0
  25. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-get.mdx +102 -0
  26. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-list.mdx +87 -0
  27. package/docs/docs/cmd/aad/administrativeunit/administrativeunit-remove.mdx +56 -0
  28. package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
  29. package/docs/docs/cmd/tenant/people/people-profilecardproperty-add.mdx +126 -0
  30. package/docs/docs/cmd/tenant/people/people-profilecardproperty-get.mdx +101 -0
  31. package/docs/docs/cmd/tenant/people/people-profilecardproperty-list.mdx +98 -0
  32. package/docs/docs/cmd/tenant/people/people-profilecardproperty-remove.mdx +61 -0
  33. package/docs/docs/cmd/tenant/people/people-profilecardproperty-set.mdx +120 -0
  34. package/package.json +4 -1
@@ -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
+ # aad administrativeunit get
6
+
7
+ Gets information about a specific administrative unit
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 aad administrativeunit get [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-i, --id [id]`
19
+ : The id of the administrative unit. Specify either `id` or `displayName` but not both.
20
+
21
+ `-n, --displayName [displayName]`
22
+ : The display name of the administrative unit. Specify either `id` or `displayName` but not both.
23
+ ```
24
+
25
+ <Global />
26
+
27
+ ## Examples
28
+
29
+ Get information about the administrative unit by its id
30
+
31
+ ```sh
32
+ m365 aad administrativeunit get --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
33
+ ```
34
+
35
+ Get information about the administrative unit by its display name
36
+
37
+ ```sh
38
+ m365 aad administrativeunit get --displayName 'Marketing Division'
39
+ ```
40
+
41
+ ## Response
42
+
43
+ <Tabs>
44
+ <TabItem value="JSON">
45
+
46
+ ```json
47
+ {
48
+ "id": "0a22c83d-c4ac-43e2-bb5e-87af3015d49f",
49
+ "deletedDateTime": null,
50
+ "displayName": "Marketing Division",
51
+ "description": "Marketing Department Administration",
52
+ "membershipRule": null,
53
+ "membershipType": null,
54
+ "membershipRuleProcessingState": null,
55
+ "visibility": "HiddenMembership"
56
+ }
57
+ ```
58
+
59
+ </TabItem>
60
+ <TabItem value="Text">
61
+
62
+ ```text
63
+ deletedDateTime : null
64
+ description : Marketing Department Administration
65
+ displayName : Marketing Division
66
+ id : 0a22c83d-c4ac-43e2-bb5e-87af3015d49f
67
+ membershipRule : null
68
+ membershipRuleProcessingState: null
69
+ membershipType : null
70
+ visibility : HiddenMembership
71
+ ```
72
+
73
+ </TabItem>
74
+ <TabItem value="CSV">
75
+
76
+ ```csv
77
+ id,displayName,description,visibility
78
+ 0a22c83d-c4ac-43e2-bb5e-87af3015d49f,Marketing Division,Marketing Department Administration,HiddenMembership
79
+ ```
80
+
81
+ </TabItem>
82
+ <TabItem value="Markdown">
83
+
84
+ ```md
85
+ Date: 10/23/2023
86
+
87
+ ## Marketing Division (0a22c83d-c4ac-43e2-bb5e-87af3015d49f)
88
+
89
+ Property | Value
90
+ ---------|-------
91
+ id | 0a22c83d-c4ac-43e2-bb5e-87af3015d49f
92
+ displayName | Marketing Division
93
+ description | Marketing Department Administration
94
+ visibility | HiddenMembership
95
+ ```
96
+
97
+ </TabItem>
98
+ </Tabs>
99
+
100
+ ## More information
101
+
102
+ - Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
@@ -0,0 +1,87 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # aad administrativeunit list
6
+
7
+ Retrieves a list of administrative units
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 aad administrativeunit list [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ <Global />
18
+
19
+ ## Examples
20
+
21
+ Retrieve a list of administrative units
22
+
23
+ ```sh
24
+ m365 aad administrativeunit list
25
+ ```
26
+
27
+ ## Response
28
+
29
+ <Tabs>
30
+ <TabItem value="JSON">
31
+
32
+ ```json
33
+ [
34
+ {
35
+ "id": "0a22c83d-c4ac-43e2-bb5e-87af3015d49f",
36
+ "deletedDateTime": null,
37
+ "displayName": "Marketing Department",
38
+ "description": "Marketing Department Administration",
39
+ "membershipRule": null,
40
+ "membershipType": null,
41
+ "membershipRuleProcessingState": null,
42
+ "visibility": "HiddenMembership"
43
+ }
44
+ ]
45
+ ```
46
+
47
+ </TabItem>
48
+ <TabItem value="Text">
49
+
50
+ ```text
51
+ displayName: 0a22c83d-c4ac-43e2-bb5e-87af3015d49f
52
+ id : Marketing Department
53
+ visibility : HiddenMembership
54
+ ```
55
+
56
+ </TabItem>
57
+ <TabItem value="CSV">
58
+
59
+ ```csv
60
+ id,displayName,description,visibility
61
+ 0a22c83d-c4ac-43e2-bb5e-87af3015d49f,Marketing Department,Marketing Department Administration,HiddenMembership
62
+ ```
63
+
64
+ </TabItem>
65
+ <TabItem value="Markdown">
66
+
67
+ ```md
68
+ # aad administrativeunit list
69
+
70
+ Date: 2023-10-16
71
+
72
+ ## Marketing Department (0a22c83d-c4ac-43e2-bb5e-87af3015d49f)
73
+
74
+ Property | Value
75
+ ---------|-------
76
+ id | 0a22c83d-c4ac-43e2-bb5e-87af3015d49f
77
+ displayName | Marketing Department
78
+ description | Marketing Department Administration
79
+ visibility | HiddenMembership
80
+ ```
81
+
82
+ </TabItem>
83
+ </Tabs>
84
+
85
+ ## More information
86
+
87
+ - Administrative units: https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units
@@ -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
@@ -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
 
@@ -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