@pnp/cli-microsoft365 6.9.0-beta.d8f63d2 → 6.9.0-beta.ef7c408
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 +12 -19
- package/.devcontainer/devcontainer.json +24 -17
- package/Dockerfile +3 -1
- package/dist/Auth.js +2 -8
- package/dist/AuthServer.js +2 -4
- package/dist/m365/aad/commands/sp/sp-list.js +78 -0
- package/dist/m365/aad/commands.js +1 -0
- package/dist/m365/app/commands/app-open.js +4 -14
- package/dist/m365/cli/commands/cli-issue.js +4 -10
- package/dist/m365/cli/commands/cli-reconsent.js +2 -8
- package/dist/m365/commands/docs.js +2 -8
- package/dist/m365/commands/setupPresets.js +2 -0
- package/dist/m365/flow/commands/flow-list.js +30 -12
- package/dist/m365/pp/commands/managementapp/managementapp-add.js +19 -20
- package/dist/m365/spo/commands/list/list-add.js +1 -1
- package/dist/utils/browserUtil.js +23 -0
- package/docs/docs/cmd/aad/sp/sp-list.mdx +162 -0
- package/docs/docs/cmd/flow/flow-list.mdx +15 -0
- package/docs/docs/cmd/setup.mdx +2 -0
- package/npm-shrinkwrap.json +299 -272
- package/package.json +17 -17
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# aad sp list
|
|
6
|
+
|
|
7
|
+
Lists the service principals in the directory
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 aad sp list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
```md definition-list
|
|
18
|
+
`--displayName [displayName]`
|
|
19
|
+
: Returns only service principals with the specified name
|
|
20
|
+
|
|
21
|
+
`--tag [tag]`
|
|
22
|
+
: Returns only service principals with the specified tag
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Global />
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Return a list of all service principals
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
m365 aad sp list
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Return a list of all service principals that comply with the display name and the tag parameters
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
m365 aad sp list --displayName "My custom service principal" --tag "WindowsAzureActiveDirectoryIntegratedApp"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Response
|
|
42
|
+
|
|
43
|
+
<Tabs>
|
|
44
|
+
<TabItem value="JSON">
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
[
|
|
48
|
+
{
|
|
49
|
+
"id": "226859cc-86f0-40d3-b308-f43b3a729b6e",
|
|
50
|
+
"deletedDateTime": null,
|
|
51
|
+
"accountEnabled": true,
|
|
52
|
+
"alternativeNames": [],
|
|
53
|
+
"appDisplayName": "My custom service principal",
|
|
54
|
+
"appDescription": null,
|
|
55
|
+
"appId": "a62ef842-f9ef-49cf-9119-31b85ea58445",
|
|
56
|
+
"applicationTemplateId": null,
|
|
57
|
+
"appOwnerOrganizationId": "fd71909b-55e5-44d2-9f78-dc432421d527",
|
|
58
|
+
"appRoleAssignmentRequired": false,
|
|
59
|
+
"createdDateTime": "2022-11-28T20:32:11Z",
|
|
60
|
+
"description": null,
|
|
61
|
+
"disabledByMicrosoftStatus": null,
|
|
62
|
+
"displayName": "My custom service principal",
|
|
63
|
+
"homepage": null,
|
|
64
|
+
"loginUrl": null,
|
|
65
|
+
"logoutUrl": null,
|
|
66
|
+
"notes": null,
|
|
67
|
+
"notificationEmailAddresses": [],
|
|
68
|
+
"preferredSingleSignOnMode": null,
|
|
69
|
+
"preferredTokenSigningKeyThumbprint": null,
|
|
70
|
+
"replyUrls": [
|
|
71
|
+
"urn:ietf:wg:oauth:2.0:oob",
|
|
72
|
+
"https://localhost",
|
|
73
|
+
"http://localhost",
|
|
74
|
+
"http://localhost:8400"
|
|
75
|
+
],
|
|
76
|
+
"servicePrincipalNames": [
|
|
77
|
+
"https://contoso.onmicrosoft.com/907a8cea-411a-461a-bb30-261e52febcca",
|
|
78
|
+
"907a8cea-411a-461a-bb30-261e52febcca"
|
|
79
|
+
],
|
|
80
|
+
"servicePrincipalType": "Application",
|
|
81
|
+
"signInAudience": "AzureADMultipleOrgs",
|
|
82
|
+
"tags": [
|
|
83
|
+
"WindowsAzureActiveDirectoryIntegratedApp"
|
|
84
|
+
],
|
|
85
|
+
"tokenEncryptionKeyId": null,
|
|
86
|
+
"samlSingleSignOnSettings": null,
|
|
87
|
+
"addIns": [],
|
|
88
|
+
"appRoles": [],
|
|
89
|
+
"info": {
|
|
90
|
+
"logoUrl": null,
|
|
91
|
+
"marketingUrl": null,
|
|
92
|
+
"privacyStatementUrl": null,
|
|
93
|
+
"supportUrl": null,
|
|
94
|
+
"termsOfServiceUrl": null
|
|
95
|
+
},
|
|
96
|
+
"keyCredentials": [],
|
|
97
|
+
"oauth2PermissionScopes": [
|
|
98
|
+
{
|
|
99
|
+
"adminConsentDescription": "Allow the application to access My custom service principal on behalf of the signed-in user.",
|
|
100
|
+
"adminConsentDisplayName": "Access My custom service principal",
|
|
101
|
+
"id": "907a8cea-411a-461a-bb30-261e52febcca",
|
|
102
|
+
"isEnabled": true,
|
|
103
|
+
"type": "User",
|
|
104
|
+
"userConsentDescription": "Allow the application to access My custom service principal on your behalf.",
|
|
105
|
+
"userConsentDisplayName": "Access My custom service principal",
|
|
106
|
+
"value": "user_impersonation"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"passwordCredentials": [],
|
|
110
|
+
"resourceSpecificApplicationPermissions": [],
|
|
111
|
+
"verifiedPublisher": {
|
|
112
|
+
"displayName": null,
|
|
113
|
+
"verifiedPublisherId": null,
|
|
114
|
+
"addedDateTime": null
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
</TabItem>
|
|
121
|
+
<TabItem value="Text">
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
id displayName tag
|
|
125
|
+
-------------------------------------- ---------------------------- ---------------------------------------
|
|
126
|
+
a62ef842-f9ef-49cf-9119-31b85ea58445 My custom service principal WindowsAzureActiveDirectoryIntegratedApp
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
</TabItem>
|
|
130
|
+
<TabItem value="CSV">
|
|
131
|
+
|
|
132
|
+
```csv
|
|
133
|
+
id,accountEnabled,appDisplayName,appId,appOwnerOrganizationId,appRoleAssignmentRequired,createdDateTime,displayName,servicePrincipalType,signInAudience
|
|
134
|
+
226859cc-86f0-40d3-b308-f43b3a729b6e,1,My custom service principal,a62ef842-f9ef-49cf-9119-31b85ea58445,fd71909b-55e5-44d2-9f78-dc432421d527,,2022-11-28T20:32:11Z,My custom service principal,AzureADMultipleOrgs
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
</TabItem>
|
|
138
|
+
<TabItem value="Markdown">
|
|
139
|
+
|
|
140
|
+
```md
|
|
141
|
+
# aad sp list
|
|
142
|
+
|
|
143
|
+
Date: 27/4/2023
|
|
144
|
+
|
|
145
|
+
## My custom service principal (226859cc-86f0-40d3-b308-f43b3a729b6e)
|
|
146
|
+
|
|
147
|
+
Property | Value
|
|
148
|
+
---------|-------
|
|
149
|
+
id | 226859cc-86f0-40d3-b308-f43b3a729b6e
|
|
150
|
+
accountEnabled | true
|
|
151
|
+
appDisplayName | My custom service principal
|
|
152
|
+
appId | a62ef842-f9ef-49cf-9119-31b85ea58445
|
|
153
|
+
appOwnerOrganizationId | fd71909b-55e5-44d2-9f78-dc432421d527
|
|
154
|
+
appRoleAssignmentRequired | false
|
|
155
|
+
createdDateTime | 2022-11-28T20:32:11Z
|
|
156
|
+
displayName | My custom service principal
|
|
157
|
+
servicePrincipalType | Application
|
|
158
|
+
signInAudience | AzureADMultipleOrg
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
</TabItem>
|
|
162
|
+
</Tabs>
|
|
@@ -21,6 +21,9 @@ m365 flow list [options]
|
|
|
21
21
|
`--sharingStatus [sharingStatus]`
|
|
22
22
|
: List a specific type of flows. Valid values: `ownedByMe`, `personal`, `sharedWithMe`, `all`. Defaults to `ownedByMe`. Don't specify this option when using asAdmin.
|
|
23
23
|
|
|
24
|
+
`--includeSolutions`
|
|
25
|
+
: Include flows from solutions.
|
|
26
|
+
|
|
24
27
|
`--asAdmin`
|
|
25
28
|
: Set, to list all Flows as admin. Otherwise will return only your own flows.
|
|
26
29
|
```
|
|
@@ -58,6 +61,18 @@ List all flows in the given environment
|
|
|
58
61
|
m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin
|
|
59
62
|
```
|
|
60
63
|
|
|
64
|
+
List all flows that are shared with the current user
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --sharingStatus sharedWithMe
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
List all personal flows and include flows from solutions
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
m365 flow list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --sharingStatus personal --includeSolutions
|
|
74
|
+
```
|
|
75
|
+
|
|
61
76
|
## Response
|
|
62
77
|
|
|
63
78
|
### Standard response
|
package/docs/docs/cmd/setup.mdx
CHANGED
|
@@ -49,6 +49,7 @@ The `m365 setup` command uses the following presets:
|
|
|
49
49
|
- interactive use:
|
|
50
50
|
- autoOpenLinksInBrowser: true,
|
|
51
51
|
- copyDeviceCodeToClipboard: true,
|
|
52
|
+
- interactive: true,
|
|
52
53
|
- output: 'text',
|
|
53
54
|
- printErrorsAsPlainText: true,
|
|
54
55
|
- prompt: true,
|
|
@@ -57,6 +58,7 @@ The `m365 setup` command uses the following presets:
|
|
|
57
58
|
- scripting use:
|
|
58
59
|
- autoOpenLinksInBrowser: false,
|
|
59
60
|
- copyDeviceCodeToClipboard: false,
|
|
61
|
+
- interactive: false,
|
|
60
62
|
- output: 'json',
|
|
61
63
|
- printErrorsAsPlainText: false,
|
|
62
64
|
- prompt: false,
|