@pnp/cli-microsoft365 10.6.0-beta.7205e34 → 10.6.0-beta.8ecef43
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 +2 -1
- package/dist/Command.js +10 -0
- package/dist/auth/MsalNetworkClient.js +48 -0
- package/dist/config.js +1 -0
- package/dist/m365/entra/commands/group/group-member-add.js +1 -1
- package/dist/m365/entra/commands/group/group-member-remove.js +197 -0
- package/dist/m365/entra/commands/policy/policy-list.js +46 -3
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/flow/commands/flow-list.js +1 -1
- package/dist/m365/graph/commands/openextension/openextension-get.js +57 -0
- package/dist/m365/graph/commands/openextension/openextension-list.js +62 -0
- package/dist/m365/graph/commands/openextension/openextension-remove.js +68 -0
- package/dist/m365/graph/commands.js +3 -0
- package/dist/m365/pp/commands/card/card-clone.js +7 -1
- package/dist/m365/pp/commands/card/card-get.js +5 -2
- package/dist/m365/pp/commands/card/card-remove.js +7 -1
- package/dist/m365/pp/commands/solution/solution-get.js +5 -11
- package/dist/m365/pp/commands/solution/solution-publish.js +6 -16
- package/dist/m365/pp/commands/solution/solution-remove.js +4 -13
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +9 -2
- package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +0 -19
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.21.0.js +25 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +0 -16
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002029_DEVDEP_microsoft_rush_stack_compiler_5_3.js +13 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.21.0.js +63 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +15 -0
- package/dist/m365/util/commands/accesstoken/accesstoken-get.js +13 -3
- package/dist/utils/accessToken.js +8 -0
- package/dist/utils/powerPlatform.js +25 -4
- package/dist/utils/prompt.js +9 -2
- package/dist/utils/types.js +1 -0
- package/docs/docs/cmd/entra/group/group-member-add.mdx +1 -1
- package/docs/docs/cmd/entra/group/group-member-remove.mdx +96 -0
- package/docs/docs/cmd/entra/policy/policy-list.mdx +1 -1
- package/docs/docs/cmd/graph/openextension/openextension-get.mdx +111 -0
- package/docs/docs/cmd/graph/openextension/openextension-list.mdx +129 -0
- package/docs/docs/cmd/graph/openextension/openextension-remove.mdx +59 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -4
- package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +72 -0
- package/npm-shrinkwrap.json +515 -479
- package/package.json +14 -14
|
@@ -16,7 +16,7 @@ m365 entra policy list [options]
|
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
18
|
`-t, --type [type]`
|
|
19
|
-
: The type of policies to return. Allowed values `activityBasedTimeout`, `authorization`, `claimsMapping`, `homeRealmDiscovery`, `identitySecurityDefaultsEnforcement`, `tokenIssuance`, `tokenLifetime`. If omitted, all policies are returned.
|
|
19
|
+
: The type of policies to return. Allowed values `activityBasedTimeout`, `adminConsentRequest`, `appManagement`, `authenticationFlows`, `authenticationMethods`, `authenticationStrength`, `authorization`, `claimsMapping`, `conditionalAccess`, `crossTenantAccess`, `defaultAppManagement`, `deviceRegistration`, `featureRolloutPolicy`, `homeRealmDiscovery`, `identitySecurityDefaultsEnforcement`, `permissionGrant`, `roleManagement`, `tokenIssuance`, `tokenLifetime`. If omitted, all policies are returned.
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
<Global />
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# graph openextension get
|
|
6
|
+
|
|
7
|
+
Retrieves a specific open extension for a resource
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 graph openextension get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The name of the open extension to retrieve.
|
|
20
|
+
|
|
21
|
+
`-i, --resourceId <resourceId>`
|
|
22
|
+
: The Id of the resource for which to retrieve the open extension.
|
|
23
|
+
|
|
24
|
+
`-t, --resourceType <resourceType>`
|
|
25
|
+
: The type of resource. Allowed values are `user`, `group`, `device`, `organization`.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
<Global />
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
Retrieve a specified open extension for a user specified by id.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 graph openextension get --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Retrieve a specified open extension for a user specified by UPN.
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
m365 graph openextension get --resourceId john.doe@contoso.com --name 'com.contoso.roamingSettings' --resourceType user
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Response
|
|
45
|
+
|
|
46
|
+
<Tabs>
|
|
47
|
+
<TabItem value="JSON">
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"extensionName": "com.contoso.roamingSettings",
|
|
52
|
+
"name": "com.contoso.roamingSettings",
|
|
53
|
+
"resourceId": "john.doe@contoso.com",
|
|
54
|
+
"resourceType": "user",
|
|
55
|
+
"theme": "dark",
|
|
56
|
+
"color": "red",
|
|
57
|
+
"language": "English",
|
|
58
|
+
"id": "com.contoso.roamingSettings"
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
</TabItem>
|
|
63
|
+
<TabItem value="Text">
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
color : red
|
|
67
|
+
extensionName: com.contoso.roamingSettings
|
|
68
|
+
id : com.contoso.roamingSettings
|
|
69
|
+
language : English
|
|
70
|
+
name : com.contoso.roamingSettings
|
|
71
|
+
resourceId : john.doe@contoso.com
|
|
72
|
+
resourceType : user
|
|
73
|
+
theme : dark
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
</TabItem>
|
|
77
|
+
<TabItem value="CSV">
|
|
78
|
+
|
|
79
|
+
```csv
|
|
80
|
+
extensionName,name,resourceId,resourceType,theme,color,language,id
|
|
81
|
+
com.contoso.roamingSettings,com.contoso.roamingSettings,john.doe@contoso.com,user,dark,red,English,com.contoso.roamingSettings
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
</TabItem>
|
|
85
|
+
<TabItem value="Markdown">
|
|
86
|
+
|
|
87
|
+
```md
|
|
88
|
+
# graph openextension get --debug "false" --verbose "false" --resourceId "john.doe@contoso.com" --resourceType "user" --name "com.contoso.roamingSettings"
|
|
89
|
+
|
|
90
|
+
Date: 2025-04-07
|
|
91
|
+
|
|
92
|
+
## com.contoso.roamingSettings (com.contoso.roamingSettings)
|
|
93
|
+
|
|
94
|
+
Property | Value
|
|
95
|
+
---------|-------
|
|
96
|
+
extensionName | com.contoso.roamingSettings
|
|
97
|
+
name | com.contoso.roamingSettings
|
|
98
|
+
resourceId | john.doe@contoso.com
|
|
99
|
+
resourceType | user
|
|
100
|
+
theme | dark
|
|
101
|
+
color | red
|
|
102
|
+
language | English
|
|
103
|
+
id | com.contoso.roamingSettings
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
</TabItem>
|
|
107
|
+
</Tabs>
|
|
108
|
+
|
|
109
|
+
## More information
|
|
110
|
+
|
|
111
|
+
- Open extensions: https://learn.microsoft.com/graph/extensibility-overview?tabs=http#open-extensions
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# graph openextension list
|
|
6
|
+
|
|
7
|
+
Retrieves all open extensions for a resource
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 graph openextension list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-i, --resourceId <resourceId>`
|
|
19
|
+
: The Id of the resource for which to retrieve open extensions.
|
|
20
|
+
|
|
21
|
+
`-t, --resourceType <resourceType>`
|
|
22
|
+
: The type of resource. Allowed values are `user`, `group`, `device`, `organization`.
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Retrieve open extensions for a user specified by id
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 graph openextension list --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --resourceType user
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Retrieve open extensions for a user specified by UPN
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 graph openextension list --resourceId john.doe@contoso.com --resourceType user
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Retrieve open extensions for a group specified by id
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 graph openextension list --resourceId 19588303-70bf-44a4-beb1-e2f0f1ed06b3 --resourceType group
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Retrieve open extensions for an organization specified by id
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 graph openextension list --resourceId c956e711-f074-40c3-8431-fbd69bb67d9c --resourceType organization
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
<Tabs>
|
|
56
|
+
<TabItem value="JSON">
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
[
|
|
60
|
+
{
|
|
61
|
+
"extensionName": "com.contoso.roamingSettings",
|
|
62
|
+
"theme": "dark",
|
|
63
|
+
"color": "purple",
|
|
64
|
+
"lang": "Japanese",
|
|
65
|
+
"id": "com.contoso.roamingSettings"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"extensionName": "com.test.m365",
|
|
69
|
+
"settings": {
|
|
70
|
+
"theme": "dark"
|
|
71
|
+
},
|
|
72
|
+
"supportedSystem": "Linux",
|
|
73
|
+
"id": "com.test.m365"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
</TabItem>
|
|
79
|
+
<TabItem value="Text">
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
extensionName id
|
|
83
|
+
--------------------------- ---------------------------
|
|
84
|
+
com.contoso.roamingSettings com.contoso.roamingSettings
|
|
85
|
+
com.test.m365 com.test.m365
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
</TabItem>
|
|
89
|
+
<TabItem value="CSV">
|
|
90
|
+
|
|
91
|
+
```csv
|
|
92
|
+
extensionName,theme,color,lang,id
|
|
93
|
+
com.contoso.roamingSettings,dark,purple,Japanese,com.contoso.roamingSettings
|
|
94
|
+
com.test.m365,,,,com.test.m365
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
</TabItem>
|
|
98
|
+
<TabItem value="Markdown">
|
|
99
|
+
|
|
100
|
+
```md
|
|
101
|
+
# graph openextension list --resourceId "eb77fbcf-6fe8-458b-985d-1747284793bc" --resourceType "user"
|
|
102
|
+
|
|
103
|
+
Date: 3/29/2025
|
|
104
|
+
|
|
105
|
+
## com.contoso.roamingSettings
|
|
106
|
+
|
|
107
|
+
Property | Value
|
|
108
|
+
---------|-------
|
|
109
|
+
extensionName | com.contoso.roamingSettings
|
|
110
|
+
theme | dark
|
|
111
|
+
color | purple
|
|
112
|
+
lang | Japanese
|
|
113
|
+
id | com.contoso.roamingSettings
|
|
114
|
+
|
|
115
|
+
## com.test.m365
|
|
116
|
+
|
|
117
|
+
Property | Value
|
|
118
|
+
---------|-------
|
|
119
|
+
extensionName | com.test.m365
|
|
120
|
+
supportedSystem | Linux
|
|
121
|
+
id | com.test.m365
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
</TabItem>
|
|
125
|
+
</Tabs>
|
|
126
|
+
|
|
127
|
+
## More information
|
|
128
|
+
|
|
129
|
+
- Open extensions: https://learn.microsoft.com/graph/extensibility-overview?tabs=http#open-extensions
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# graph openextension remove
|
|
6
|
+
|
|
7
|
+
Removes a specific open extension for a resource
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 graph openextension remove [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`-n, --name <name>`
|
|
19
|
+
: The name of the open extension to remove.
|
|
20
|
+
|
|
21
|
+
`-i, --resourceId <resourceId>`
|
|
22
|
+
: The Id of the resource for which to remove the open extension.
|
|
23
|
+
|
|
24
|
+
`-t, --resourceType <resourceType>`
|
|
25
|
+
: The type of resource. Allowed values are `user`, `group`, `device`, `organization`.
|
|
26
|
+
|
|
27
|
+
`-f, --force`
|
|
28
|
+
: Don't prompt for confirmation.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
<Global />
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
Remove a specified open extension for a user specified by id.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 graph openextension remove --resourceId eb77fbcf-6fe8-458b-985d-1747284793bc --name 'com.contoso.roamingSettings' --resourceType user
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Remove a specified open extension for a user specified by UPN without confirmation prompt.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
m365 graph openextension remove --resourceId john.doe@contoso.com --name 'com.contoso.roamingSettings' --resourceType user --force
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Remove a specified open extension for a group specified by id.
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
m365 graph openextension remove --resourceId c956e711-f074-40c3-8431-fbd69bb67d9c --name 'com.contoso.groupSettings' --resourceType group
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Response
|
|
54
|
+
|
|
55
|
+
The command won't return a response on success.
|
|
56
|
+
|
|
57
|
+
## More information
|
|
58
|
+
|
|
59
|
+
- Open extensions: https://learn.microsoft.com/graph/extensibility-overview?tabs=http#open-extensions
|
|
@@ -26,16 +26,13 @@ m365 spfx project upgrade [options]
|
|
|
26
26
|
|
|
27
27
|
`--preview`
|
|
28
28
|
: Upgrade project to the latest SPFx preview version
|
|
29
|
-
|
|
30
|
-
`--outputFile [outputFile]`
|
|
31
|
-
: Path to the file where the upgrade report should be stored in. Ignored when `output` is `tour`
|
|
32
29
|
```
|
|
33
30
|
|
|
34
31
|
<Global />
|
|
35
32
|
|
|
36
33
|
## Remarks
|
|
37
34
|
|
|
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.
|
|
35
|
+
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.21.0).
|
|
39
36
|
|
|
40
37
|
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
38
|
|
|
@@ -20,6 +20,9 @@ m365 util accesstoken get [options]
|
|
|
20
20
|
|
|
21
21
|
`--new`
|
|
22
22
|
: Retrieve a new access token to ensure that it's valid for as long as possible
|
|
23
|
+
|
|
24
|
+
`--decoded`
|
|
25
|
+
: Retrieve a decoded access token
|
|
23
26
|
```
|
|
24
27
|
|
|
25
28
|
<Global />
|
|
@@ -60,8 +63,16 @@ Get a new access token for SharePoint Online
|
|
|
60
63
|
m365 util accesstoken get --resource https://contoso.sharepoint.com --new
|
|
61
64
|
```
|
|
62
65
|
|
|
66
|
+
Get a decoded access token for SharePoint Online
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
m365 util accesstoken get --resource https://contoso.sharepoint.com --decoded
|
|
70
|
+
```
|
|
71
|
+
|
|
63
72
|
## Response
|
|
64
73
|
|
|
74
|
+
### Standard response
|
|
75
|
+
|
|
65
76
|
<Tabs>
|
|
66
77
|
<TabItem value="JSON">
|
|
67
78
|
|
|
@@ -93,3 +104,64 @@ m365 util accesstoken get --resource https://contoso.sharepoint.com --new
|
|
|
93
104
|
</TabItem>
|
|
94
105
|
</Tabs>
|
|
95
106
|
|
|
107
|
+
### `decoded` response
|
|
108
|
+
|
|
109
|
+
<Tabs>
|
|
110
|
+
<TabItem value="JSON">
|
|
111
|
+
|
|
112
|
+
```json
|
|
113
|
+
{
|
|
114
|
+
"alg": "HS256",
|
|
115
|
+
"typ": "JWT"
|
|
116
|
+
}.{
|
|
117
|
+
"sub": "1234567890",
|
|
118
|
+
"name": "John Doe",
|
|
119
|
+
"iat": 1516239022
|
|
120
|
+
}.[signature]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
</TabItem>
|
|
124
|
+
<TabItem value="Text">
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
{
|
|
128
|
+
"alg": "HS256",
|
|
129
|
+
"typ": "JWT"
|
|
130
|
+
}.{
|
|
131
|
+
"sub": "1234567890",
|
|
132
|
+
"name": "John Doe",
|
|
133
|
+
"iat": 1516239022
|
|
134
|
+
}.[signature]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
</TabItem>
|
|
138
|
+
<TabItem value="CSV">
|
|
139
|
+
|
|
140
|
+
```csv
|
|
141
|
+
{
|
|
142
|
+
"alg": "HS256",
|
|
143
|
+
"typ": "JWT"
|
|
144
|
+
}.{
|
|
145
|
+
"sub": "1234567890",
|
|
146
|
+
"name": "John Doe",
|
|
147
|
+
"iat": 1516239022
|
|
148
|
+
}.[signature]
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
</TabItem>
|
|
152
|
+
<TabItem value="Markdown">
|
|
153
|
+
|
|
154
|
+
```md
|
|
155
|
+
{
|
|
156
|
+
"alg": "HS256",
|
|
157
|
+
"typ": "JWT"
|
|
158
|
+
}.{
|
|
159
|
+
"sub": "1234567890",
|
|
160
|
+
"name": "John Doe",
|
|
161
|
+
"iat": 1516239022
|
|
162
|
+
}.[signature]
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
</TabItem>
|
|
166
|
+
</Tabs>
|
|
167
|
+
|