@pnp/cli-microsoft365 7.5.0-beta.23612bc → 7.5.0-beta.940b241
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/.eslintrc.cjs +6 -2
- package/.mocharc.json +3 -5
- package/README.md +2 -2
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Command.js +1 -1
- package/dist/m365/base/AppCommand.js +2 -2
- package/dist/m365/base/{YammerCommand.js → VivaEngageCommand.js} +2 -2
- package/dist/m365/cli/commands/cli-consent.js +5 -3
- package/dist/m365/entra/aadCommands.js +3 -0
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-remove.js +153 -0
- package/dist/m365/entra/commands/app/app-add.js +1 -1
- package/dist/m365/entra/commands/app/app-get.js +1 -1
- package/dist/m365/entra/commands/app/app-list.js +1 -1
- package/dist/m365/entra/commands/app/app-permission-add.js +1 -1
- package/dist/m365/entra/commands/app/app-permission-list.js +182 -0
- package/dist/m365/entra/commands/app/app-remove.js +1 -1
- package/dist/m365/entra/commands/app/app-role-add.js +1 -1
- package/dist/m365/entra/commands/app/app-role-list.js +1 -1
- package/dist/m365/entra/commands/app/app-role-remove.js +1 -1
- package/dist/m365/entra/commands/app/app-set.js +1 -1
- package/dist/m365/entra/commands/{sp/sp-add.js → enterpriseapp/enterpriseapp-add.js} +18 -18
- package/dist/m365/entra/commands/{sp/sp-get.js → enterpriseapp/enterpriseapp-get.js} +19 -19
- package/dist/m365/entra/commands/{sp/sp-list.js → enterpriseapp/enterpriseapp-list.js} +13 -13
- package/dist/m365/entra/commands/group/group-add.js +224 -0
- package/dist/m365/entra/commands/m365group/m365group-report-activitygroupcounts.js +1 -1
- package/dist/m365/entra/commands/user/user-get.js +38 -38
- package/dist/m365/entra/commands/user/user-registrationdetails-list.js +224 -0
- package/dist/m365/entra/commands.js +16 -0
- package/dist/m365/file/commands/file-copy.js +151 -0
- package/dist/m365/file/commands.js +1 -0
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +4 -3
- package/dist/m365/{yammer/commands/group/group-list.js → viva/commands/engage/engage-group-list.js} +19 -14
- package/dist/m365/{yammer/commands/group/group-user-add.js → viva/commands/engage/engage-group-user-add.js} +19 -14
- package/dist/m365/{yammer/commands/group/group-user-remove.js → viva/commands/engage/engage-group-user-remove.js} +19 -14
- package/dist/m365/{yammer/commands/message/message-add.js → viva/commands/engage/engage-message-add.js} +19 -14
- package/dist/m365/{yammer/commands/message/message-get.js → viva/commands/engage/engage-message-get.js} +17 -12
- package/dist/m365/{yammer/commands/message/message-like-set.js → viva/commands/engage/engage-message-like-set.js} +21 -16
- package/dist/m365/{yammer/commands/message/message-list.js → viva/commands/engage/engage-message-list.js} +21 -16
- package/dist/m365/{yammer/commands/message/message-remove.js → viva/commands/engage/engage-message-remove.js} +20 -15
- package/dist/m365/{yammer/commands/network/network-list.js → viva/commands/engage/engage-network-list.js} +16 -11
- package/dist/m365/viva/commands/engage/engage-report-activitycounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-activityusercounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-activityuserdetail.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusagedistributionusercounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusageusercounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-deviceusageuserdetail.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitycounts.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitydetail.js +23 -0
- package/dist/m365/viva/commands/engage/engage-report-groupsactivitygroupcounts.js +23 -0
- package/dist/m365/{yammer/commands/yammer-search.js → viva/commands/engage/engage-search.js} +23 -18
- package/dist/m365/{yammer/commands/user/user-get.js → viva/commands/engage/engage-user-get.js} +18 -13
- package/dist/m365/{yammer/commands/user/user-list.js → viva/commands/engage/engage-user-list.js} +18 -13
- package/dist/m365/{yammer/commands.js → viva/commands/engage/yammerCommands.js} +1 -1
- package/dist/m365/viva/commands.js +22 -1
- package/dist/utils/spo.js +22 -0
- package/dist/utils/urlUtil.js +31 -0
- package/dist/utils/validation.js +4 -0
- package/docs/docs/cmd/cli/cli-consent.mdx +9 -9
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-add.mdx +5 -3
- package/docs/docs/cmd/entra/administrativeunit/administrativeunit-member-remove.mdx +107 -0
- package/docs/docs/cmd/entra/app/app-add.mdx +2 -1
- package/docs/docs/cmd/entra/app/app-get.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-list.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-permission-list.mdx +105 -0
- package/docs/docs/cmd/entra/app/app-remove.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-role-add.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-role-list.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +1 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +1 -0
- package/docs/docs/cmd/entra/{sp/sp-add.mdx → enterpriseapp/enterpriseapp-add.mdx} +16 -15
- package/docs/docs/cmd/entra/{sp/sp-get.mdx → enterpriseapp/enterpriseapp-get.mdx} +15 -14
- package/docs/docs/cmd/entra/{sp/sp-list.mdx → enterpriseapp/enterpriseapp-list.mdx} +22 -21
- package/docs/docs/cmd/entra/group/group-add.mdx +231 -0
- package/docs/docs/cmd/entra/m365group/m365group-report-activitygroupcounts.mdx +1 -1
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-add.mdx +3 -3
- package/docs/docs/cmd/entra/oauth2grant/oauth2grant-list.mdx +1 -1
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +246 -0
- package/docs/docs/cmd/external/item/item-add.mdx +1 -1
- package/docs/docs/cmd/file/convert/convert-pdf.mdx +4 -0
- package/docs/docs/cmd/file/file-add.mdx +4 -0
- package/docs/docs/cmd/file/file-copy.mdx +68 -0
- package/docs/docs/cmd/file/file-list.mdx +100 -0
- package/docs/docs/cmd/setup.mdx +4 -0
- package/docs/docs/cmd/spo/list/list-webhook-set.mdx +1 -1
- package/docs/docs/cmd/spo/theme/theme-set.mdx +14 -2
- package/docs/docs/cmd/{yammer/group/group-list.mdx → viva/engage/engage-group-list.mdx} +13 -13
- package/docs/docs/cmd/{yammer/group/group-user-add.mdx → viva/engage/engage-group-user-add.mdx} +7 -7
- package/docs/docs/cmd/{yammer/group/group-user-remove.mdx → viva/engage/engage-group-user-remove.mdx} +10 -10
- package/docs/docs/cmd/{yammer/message/message-add.mdx → viva/engage/engage-message-add.mdx} +12 -13
- package/docs/docs/cmd/{yammer/message/message-get.mdx → viva/engage/engage-message-get.mdx} +10 -10
- package/docs/docs/cmd/{yammer/message/message-like-set.mdx → viva/engage/engage-message-like-set.mdx} +10 -10
- package/docs/docs/cmd/{yammer/message/message-list.mdx → viva/engage/engage-message-list.mdx} +21 -21
- package/docs/docs/cmd/{yammer/message/message-remove.mdx → viva/engage/engage-message-remove.mdx} +10 -10
- package/docs/docs/cmd/{yammer/network/network-list.mdx → viva/engage/engage-network-list.mdx} +6 -6
- package/docs/docs/cmd/{yammer/report/report-activitycounts.mdx → viva/engage/engage-report-activitycounts.mdx} +9 -9
- package/docs/docs/cmd/{yammer/report/report-activityusercounts.mdx → viva/engage/engage-report-activityusercounts.mdx} +9 -9
- package/docs/docs/cmd/{yammer/report/report-activityuserdetail.mdx → viva/engage/engage-report-activityuserdetail.mdx} +11 -12
- package/docs/docs/cmd/{yammer/report/report-deviceusagedistributionusercounts.mdx → viva/engage/engage-report-deviceusagedistributionusercounts.mdx} +5 -5
- package/docs/docs/cmd/{yammer/report/report-deviceusageusercounts.mdx → viva/engage/engage-report-deviceusageusercounts.mdx} +5 -5
- package/docs/docs/cmd/{yammer/report/report-deviceusageuserdetail.mdx → viva/engage/engage-report-deviceusageuserdetail.mdx} +11 -11
- package/docs/docs/cmd/{yammer/report/report-groupsactivitycounts.mdx → viva/engage/engage-report-groupsactivitycounts.mdx} +9 -9
- package/docs/docs/cmd/{yammer/report/report-groupsactivitydetail.mdx → viva/engage/engage-report-groupsactivitydetail.mdx} +11 -11
- package/docs/docs/cmd/{yammer/report/report-groupsactivitygroupcounts.mdx → viva/engage/engage-report-groupsactivitygroupcounts.mdx} +5 -5
- package/docs/docs/cmd/{yammer/yammer-search.mdx → viva/engage/engage-search.mdx} +10 -10
- package/docs/docs/cmd/{yammer/user/user-get.mdx → viva/engage/engage-user-get.mdx} +8 -8
- package/docs/docs/cmd/{yammer/user/user-list.mdx → viva/engage/engage-user-list.mdx} +11 -11
- package/npm-shrinkwrap.json +60 -0
- package/package.json +3 -2
- package/dist/m365/base/AzmgmtCommand.js +0 -18
- package/dist/m365/base/AzmgmtItemsListCommand.js +0 -41
- package/dist/m365/yammer/commands/report/report-activitycounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-activityusercounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-activityuserdetail.js +0 -15
- package/dist/m365/yammer/commands/report/report-deviceusagedistributionusercounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-deviceusageusercounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-deviceusageuserdetail.js +0 -15
- package/dist/m365/yammer/commands/report/report-groupsactivitycounts.js +0 -15
- package/dist/m365/yammer/commands/report/report-groupsactivitydetail.js +0 -15
- package/dist/m365/yammer/commands/report/report-groupsactivitygroupcounts.js +0 -15
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# entra administrativeunit member remove
|
|
4
|
+
|
|
5
|
+
Removes a member (user, group, or device) from an administrative unit
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra administrativeunit member remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## options
|
|
14
|
+
|
|
15
|
+
```md definition-list
|
|
16
|
+
`-i, --id [id]`
|
|
17
|
+
: The id of the member to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
18
|
+
|
|
19
|
+
`--userId [userId]`
|
|
20
|
+
: The id of the user to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
21
|
+
|
|
22
|
+
`--userName [userName]`
|
|
23
|
+
: The user principal name (UPN) of the user to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
24
|
+
|
|
25
|
+
`--groupId [groupId]`
|
|
26
|
+
: The id of the group to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
27
|
+
|
|
28
|
+
`--groupName [groupName]`
|
|
29
|
+
: The name of the group to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
30
|
+
|
|
31
|
+
`--deviceId [deviceId]`
|
|
32
|
+
: The id of the device to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
33
|
+
|
|
34
|
+
`--deviceName [deviceName]`
|
|
35
|
+
: The name of the device to be removed. Specify either `id`, `userId`, `userName`, `groupId`, `groupName`, `deviceId` or `deviceName`.
|
|
36
|
+
|
|
37
|
+
`--administrativeUnitId [administrativeUnitId]`
|
|
38
|
+
: The id of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName` but not both.
|
|
39
|
+
|
|
40
|
+
`--administrativeUnitName [administrativeUnitName]`
|
|
41
|
+
: The name of the administrative unit. Specify either `administrativeUnitId` or `administrativeUnitName` but not both.
|
|
42
|
+
|
|
43
|
+
`-f, --force`
|
|
44
|
+
: Don't prompt for confirmation.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
<Global />
|
|
48
|
+
|
|
49
|
+
## Remarks
|
|
50
|
+
|
|
51
|
+
:::info
|
|
52
|
+
|
|
53
|
+
To use this command you must be either **Global Administrator** or **Privileged Role Administrator**.
|
|
54
|
+
|
|
55
|
+
:::
|
|
56
|
+
|
|
57
|
+
## Examples
|
|
58
|
+
|
|
59
|
+
Remove a member specified by id from an administrative unit specified by id
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
m365 entra administrativeunit member remove --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Remove a user specified by id from an administrative unit specified by id
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
m365 entra administrativeunit member remove --userId 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Remove a group specified by id from an administrative unit specified by id
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
m365 entra administrativeunit member remove --groupId b2307a39-e878-458b-bc90-03bc578531d6 --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Remove a device specified by id from an administrative unit specified by id
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
m365 entra administrativeunit member remove --deviceId 810c84a8-4a9e-49e6-bf7d-12d183f40d01 --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Remove a user specified by UPN from an administrative unit specified by name
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
m365 entra administrativeunit member remove --userName john.doe@contoso.com --administrativeUnitName 'Marketing Division'
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Remove a group specified by name from an administrative unit specified by id
|
|
90
|
+
|
|
91
|
+
```sh
|
|
92
|
+
m365 entra administrativeunit member remove --groupName 'Marketing Group' --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Remove a device specified by name from an administrative unit specified by name
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
m365 entra administrativeunit member remove --deviceName 'JohnDoe-PC' --administrativeUnitName 'Marketing Division'
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Response
|
|
102
|
+
|
|
103
|
+
The command won't return a response on success
|
|
104
|
+
|
|
105
|
+
## More information
|
|
106
|
+
|
|
107
|
+
- [Administrative units](https://learn.microsoft.com/entra/identity/role-based-access-control/administrative-units)
|
|
@@ -16,6 +16,7 @@ m365 entra app add [options]
|
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
m365 aad app add [options]
|
|
19
|
+
m365 entra appregistration add [options]
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
## Options
|
|
@@ -109,7 +110,7 @@ After creating the Entra app registration, this command returns the app ID and o
|
|
|
109
110
|
|
|
110
111
|
If you want to store the information about the created Entra app registration, use the `--save` option. This is useful when you build solutions connected to Microsoft 365 and want to easily manage app registrations used with your solution. When you use the `--save` option, after you create the app registration, the command will write its ID and name to the `.m365rc.json` file in the current directory. If the file already exists, it will add the information about the to it, allowing you to track multiple apps. If the file doesn't exist, the command will create it.
|
|
111
112
|
|
|
112
|
-
When specifying `--grantAdminConsent` option,
|
|
113
|
+
When specifying `--grantAdminConsent` option, an enterprise application will be created for the app registration.
|
|
113
114
|
|
|
114
115
|
## Examples
|
|
115
116
|
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
4
|
+
|
|
5
|
+
# entra app permission list
|
|
6
|
+
|
|
7
|
+
Lists the application and delegated permissions for a specified Entra Application Registration
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra app permission list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
m365 aad app permission list [options]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Options
|
|
22
|
+
|
|
23
|
+
```md definition-list
|
|
24
|
+
`-i, --appId [appId]`
|
|
25
|
+
: Client ID of the Application Registration to retrieve the permissions for. Specify `appId` or `appObjectId` but not both.
|
|
26
|
+
|
|
27
|
+
`--appObjectId [appObjectId]`
|
|
28
|
+
: Object ID of the Application Registration to retrieve the permissions for. Specify `appId` or `appObjectId` but not both.
|
|
29
|
+
|
|
30
|
+
`--type [type]`
|
|
31
|
+
: The type of permissions to retrieve. Allowed values: `delegated`, `application`, `all`. Defaults to `all`.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
<Global />
|
|
35
|
+
|
|
36
|
+
## Remarks
|
|
37
|
+
|
|
38
|
+
For best performance use the `objectId` option to reference the Entra application registration to get. If you use `appId`, this command will first need to find the corresponding object ID for that application.
|
|
39
|
+
|
|
40
|
+
## Examples
|
|
41
|
+
|
|
42
|
+
Retrieves all permissions for an Entra app registration
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
m365 entra app permission list --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690'
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Retrieves all delegated permissions for an Entra app registration
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 entra app permission list --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --type delegated
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Response
|
|
55
|
+
|
|
56
|
+
<Tabs>
|
|
57
|
+
<TabItem value="JSON">
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
[
|
|
61
|
+
{
|
|
62
|
+
"resource": "Microsoft Graph",
|
|
63
|
+
"resourceId": "00000003-0000-0000-c000-000000000000",
|
|
64
|
+
"permission": "User.Read",
|
|
65
|
+
"type": "Delegated"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
</TabItem>
|
|
71
|
+
<TabItem value="Text">
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
resource resourceId permission type
|
|
75
|
+
---------------------------- ------------------------------------ --------------------------------- -----------
|
|
76
|
+
Microsoft Graph 00000003-0000-0000-c000-000000000000 User.Read Delegated
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</TabItem>
|
|
80
|
+
<TabItem value="CSV">
|
|
81
|
+
|
|
82
|
+
```csv
|
|
83
|
+
resource,resourceId,permission,type
|
|
84
|
+
Microsoft Graph,00000003-0000-0000-c000-000000000000,User.Read,Delegated
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</TabItem>
|
|
88
|
+
<TabItem value="Markdown">
|
|
89
|
+
|
|
90
|
+
```md
|
|
91
|
+
# entra app permission list --appId "2bf26ae1-9be3-425f-a393-5fe8390e3a36"
|
|
92
|
+
|
|
93
|
+
Date: 27/12/2023
|
|
94
|
+
|
|
95
|
+
Property | Value
|
|
96
|
+
---------|-------
|
|
97
|
+
resource | Microsoft Graph
|
|
98
|
+
resourceId | 00000003-0000-0000-c000-000000000000
|
|
99
|
+
permission | User.Read
|
|
100
|
+
type | Delegated
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
</TabItem>
|
|
104
|
+
</Tabs>
|
|
105
|
+
|
|
@@ -2,33 +2,34 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# entra
|
|
5
|
+
# entra enterpriseapp add
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Creates an enterprise application (or service principal) for a registered Entra app
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 entra
|
|
12
|
+
m365 entra enterpriseapp add [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Alias
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
m365 aad sp add [options]
|
|
19
|
+
m365 entra sp add [options]
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
## Options
|
|
22
23
|
|
|
23
24
|
```md definition-list
|
|
24
25
|
`--appId [appId]`
|
|
25
|
-
: ID of the
|
|
26
|
+
: ID of the app for which the enterprise application should be created
|
|
26
27
|
|
|
27
28
|
`--appName [appName]`
|
|
28
|
-
: Display name of the
|
|
29
|
+
: Display name of the app for which the enterprise application should be created
|
|
29
30
|
|
|
30
31
|
`--objectId [objectId]`
|
|
31
|
-
: ObjectId of the
|
|
32
|
+
: ObjectId of the app for which the enterprise application should be created
|
|
32
33
|
```
|
|
33
34
|
|
|
34
35
|
<Global />
|
|
@@ -37,26 +38,26 @@ m365 aad sp add [options]
|
|
|
37
38
|
|
|
38
39
|
Specify either the `appId`, `appName` or `objectId`. If you specify more than one option value, the command will fail with an error.
|
|
39
40
|
|
|
40
|
-
If you register an application in the portal, an application object as well as
|
|
41
|
+
If you register an application in the portal, an application object as well as an enterprise application object are automatically created in your home tenant. If you register an application using CLI for Microsoft 365 or the Microsoft Graph, you'll need to create the enterprise application separately. To register/create an application using the CLI for Microsoft 365, use the [m365 entra app add](../app/app-add.mdx) command.
|
|
41
42
|
|
|
42
43
|
## Examples
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
Creates an enterprise application for a registered Entra app with appId _b2307a39-e878-458b-bc90-03bc578531d6_.
|
|
45
46
|
|
|
46
47
|
```sh
|
|
47
|
-
m365 entra
|
|
48
|
+
m365 entra enterpriseapp add --appId b2307a39-e878-458b-bc90-03bc578531d6
|
|
48
49
|
```
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
Creates an enterprise application for a registered Entra app with appName _Microsoft Graph_.
|
|
51
52
|
|
|
52
53
|
```sh
|
|
53
|
-
m365 entra
|
|
54
|
+
m365 entra enterpriseapp add --appName "Microsoft Graph"
|
|
54
55
|
```
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
Creates an enterprise application for a registered Entra app with objectId _b2307a39-e878-458b-bc90-03bc578531d6_.
|
|
57
58
|
|
|
58
59
|
```sh
|
|
59
|
-
m365 entra
|
|
60
|
+
m365 entra enterpriseapp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
60
61
|
```
|
|
61
62
|
|
|
62
63
|
## Response
|
|
@@ -171,7 +172,7 @@ m365 entra sp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
171
172
|
<TabItem value="Markdown">
|
|
172
173
|
|
|
173
174
|
```md
|
|
174
|
-
# entra
|
|
175
|
+
# entra enterpriseapp add --appId "8da75b6a-4272-4b17-8ee1-20ba66e2b06f"
|
|
175
176
|
|
|
176
177
|
Date: 2023-06-02
|
|
177
178
|
|
|
@@ -195,5 +196,5 @@ m365 entra sp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
195
196
|
|
|
196
197
|
## More information
|
|
197
198
|
|
|
198
|
-
- Application and
|
|
199
|
+
- Application and enterprise application objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
199
200
|
- Create servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-post-serviceprincipals?view=graph-rest-1.0)
|
|
@@ -2,33 +2,34 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# entra
|
|
5
|
+
# entra enterpriseapp get
|
|
6
6
|
|
|
7
|
-
Gets information about
|
|
7
|
+
Gets information about an enterprise application (or service principal)
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 entra
|
|
12
|
+
m365 entra enterpriseapp get [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Alias
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
m365 aad sp get [options]
|
|
19
|
+
m365 entra sp get [options]
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
## Options
|
|
22
23
|
|
|
23
24
|
```md definition-list
|
|
24
25
|
`-i, --appId [appId]`
|
|
25
|
-
: ID of the application for which the
|
|
26
|
+
: ID of the application for which the enterprise application should be retrieved
|
|
26
27
|
|
|
27
28
|
`-n, --appDisplayName [appDisplayName]`
|
|
28
|
-
: Display name of the application for which the
|
|
29
|
+
: Display name of the application for which the enterprise application should be retrieved
|
|
29
30
|
|
|
30
31
|
`--appObjectId [appObjectId]`
|
|
31
|
-
: ObjectId of the application for which the
|
|
32
|
+
: ObjectId of the application for which the enterprise application should be retrieved
|
|
32
33
|
```
|
|
33
34
|
|
|
34
35
|
<Global />
|
|
@@ -39,22 +40,22 @@ Specify either the `appId`, `appObjectId` or `appDisplayName`. If you specify mo
|
|
|
39
40
|
|
|
40
41
|
## Examples
|
|
41
42
|
|
|
42
|
-
Return details about the
|
|
43
|
+
Return details about the enterprise application with appId _b2307a39-e878-458b-bc90-03bc578531d6_.
|
|
43
44
|
|
|
44
45
|
```sh
|
|
45
|
-
m365 entra
|
|
46
|
+
m365 entra enterpriseapp get --appId b2307a39-e878-458b-bc90-03bc578531d6
|
|
46
47
|
```
|
|
47
48
|
|
|
48
|
-
Return details about the _Microsoft Graph_
|
|
49
|
+
Return details about the _Microsoft Graph_ enterprise application.
|
|
49
50
|
|
|
50
51
|
```sh
|
|
51
|
-
m365 entra
|
|
52
|
+
m365 entra enterpriseapp get --appDisplayName "Microsoft Graph"
|
|
52
53
|
```
|
|
53
54
|
|
|
54
|
-
Return details about the
|
|
55
|
+
Return details about the enterprise application with ObjectId _b2307a39-e878-458b-bc90-03bc578531dd_.
|
|
55
56
|
|
|
56
57
|
```sh
|
|
57
|
-
m365 entra
|
|
58
|
+
m365 entra enterpriseapp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
58
59
|
```
|
|
59
60
|
|
|
60
61
|
## Response
|
|
@@ -197,7 +198,7 @@ m365 entra sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
197
198
|
<TabItem value="Markdown">
|
|
198
199
|
|
|
199
200
|
```md
|
|
200
|
-
# entra
|
|
201
|
+
# entra enterpriseapp get --appId "ac7c9b4b-83b0-4a5e-ace2-a3530162c8f8"
|
|
201
202
|
|
|
202
203
|
Date: 2023-06-02
|
|
203
204
|
|
|
@@ -223,5 +224,5 @@ m365 entra sp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
223
224
|
|
|
224
225
|
## More information
|
|
225
226
|
|
|
226
|
-
- Application and
|
|
227
|
+
- Application and enterprise application objects in Entra ID (Azure AD): [https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects](https://learn.microsoft.com/azure/active-directory/develop/active-directory-application-objects)
|
|
227
228
|
- Get servicePrincipal: [https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0](https://learn.microsoft.com/graph/api/serviceprincipal-get?view=graph-rest-1.0)
|
|
@@ -2,46 +2,47 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
# entra
|
|
5
|
+
# entra enterpriseapp list
|
|
6
6
|
|
|
7
|
-
Lists the service principals in
|
|
7
|
+
Lists the enterprise applications (or service principals) in Entra ID
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
m365 entra
|
|
12
|
+
m365 entra enterpriseapp list [options]
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Alias
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
m365 aad sp list [options]
|
|
19
|
+
m365 entra sp list [options]
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
## Options
|
|
22
23
|
|
|
23
24
|
```md definition-list
|
|
24
25
|
`--displayName [displayName]`
|
|
25
|
-
: Returns only
|
|
26
|
+
: Returns only enterprise applications with the specified name
|
|
26
27
|
|
|
27
28
|
`--tag [tag]`
|
|
28
|
-
: Returns only
|
|
29
|
+
: Returns only enterprise applications with the specified tag
|
|
29
30
|
```
|
|
30
31
|
|
|
31
32
|
<Global />
|
|
32
33
|
|
|
33
34
|
## Examples
|
|
34
35
|
|
|
35
|
-
Return a list of all
|
|
36
|
+
Return a list of all enterprise applications
|
|
36
37
|
|
|
37
38
|
```sh
|
|
38
|
-
m365 entra
|
|
39
|
+
m365 entra enterpriseapp list
|
|
39
40
|
```
|
|
40
41
|
|
|
41
|
-
Return a list of all
|
|
42
|
+
Return a list of all enterprise applications that comply with the display name and the tag parameters
|
|
42
43
|
|
|
43
44
|
```sh
|
|
44
|
-
m365 entra
|
|
45
|
+
m365 entra enterpriseapp list --displayName "My custom enterprise application" --tag "WindowsAzureActiveDirectoryIntegratedApp"
|
|
45
46
|
```
|
|
46
47
|
|
|
47
48
|
## Response
|
|
@@ -56,7 +57,7 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
|
|
|
56
57
|
"deletedDateTime": null,
|
|
57
58
|
"accountEnabled": true,
|
|
58
59
|
"alternativeNames": [],
|
|
59
|
-
"appDisplayName": "My custom
|
|
60
|
+
"appDisplayName": "My custom enterprise application",
|
|
60
61
|
"appDescription": null,
|
|
61
62
|
"appId": "a62ef842-f9ef-49cf-9119-31b85ea58445",
|
|
62
63
|
"applicationTemplateId": null,
|
|
@@ -65,7 +66,7 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
|
|
|
65
66
|
"createdDateTime": "2022-11-28T20:32:11Z",
|
|
66
67
|
"description": null,
|
|
67
68
|
"disabledByMicrosoftStatus": null,
|
|
68
|
-
"displayName": "My custom
|
|
69
|
+
"displayName": "My custom enterprise application",
|
|
69
70
|
"homepage": null,
|
|
70
71
|
"loginUrl": null,
|
|
71
72
|
"logoutUrl": null,
|
|
@@ -102,13 +103,13 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
|
|
|
102
103
|
"keyCredentials": [],
|
|
103
104
|
"oauth2PermissionScopes": [
|
|
104
105
|
{
|
|
105
|
-
"adminConsentDescription": "Allow the application to access My custom
|
|
106
|
-
"adminConsentDisplayName": "Access My custom
|
|
106
|
+
"adminConsentDescription": "Allow the application to access My custom enterprise application on behalf of the signed-in user.",
|
|
107
|
+
"adminConsentDisplayName": "Access My custom enterprise application",
|
|
107
108
|
"id": "907a8cea-411a-461a-bb30-261e52febcca",
|
|
108
109
|
"isEnabled": true,
|
|
109
110
|
"type": "User",
|
|
110
|
-
"userConsentDescription": "Allow the application to access My custom
|
|
111
|
-
"userConsentDisplayName": "Access My custom
|
|
111
|
+
"userConsentDescription": "Allow the application to access My custom enterprise application on your behalf.",
|
|
112
|
+
"userConsentDisplayName": "Access My custom enterprise application",
|
|
112
113
|
"value": "user_impersonation"
|
|
113
114
|
}
|
|
114
115
|
],
|
|
@@ -129,7 +130,7 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
|
|
|
129
130
|
```text
|
|
130
131
|
id displayName tag
|
|
131
132
|
-------------------------------------- ---------------------------- ---------------------------------------
|
|
132
|
-
a62ef842-f9ef-49cf-9119-31b85ea58445 My custom
|
|
133
|
+
a62ef842-f9ef-49cf-9119-31b85ea58445 My custom enterprise application WindowsAzureActiveDirectoryIntegratedApp
|
|
133
134
|
```
|
|
134
135
|
|
|
135
136
|
</TabItem>
|
|
@@ -137,29 +138,29 @@ m365 entra sp list --displayName "My custom service principal" --tag "WindowsAzu
|
|
|
137
138
|
|
|
138
139
|
```csv
|
|
139
140
|
id,accountEnabled,appDisplayName,appId,appOwnerOrganizationId,appRoleAssignmentRequired,createdDateTime,displayName,servicePrincipalType,signInAudience
|
|
140
|
-
226859cc-86f0-40d3-b308-f43b3a729b6e,1,My custom
|
|
141
|
+
226859cc-86f0-40d3-b308-f43b3a729b6e,1,My custom enterprise application,a62ef842-f9ef-49cf-9119-31b85ea58445,fd71909b-55e5-44d2-9f78-dc432421d527,,2022-11-28T20:32:11Z,My custom enterprise application,AzureADMultipleOrgs
|
|
141
142
|
```
|
|
142
143
|
|
|
143
144
|
</TabItem>
|
|
144
145
|
<TabItem value="Markdown">
|
|
145
146
|
|
|
146
147
|
```md
|
|
147
|
-
# entra
|
|
148
|
+
# entra enterpriseapp list
|
|
148
149
|
|
|
149
150
|
Date: 27/4/2023
|
|
150
151
|
|
|
151
|
-
## My custom
|
|
152
|
+
## My custom enterprise application (226859cc-86f0-40d3-b308-f43b3a729b6e)
|
|
152
153
|
|
|
153
154
|
Property | Value
|
|
154
155
|
---------|-------
|
|
155
156
|
id | 226859cc-86f0-40d3-b308-f43b3a729b6e
|
|
156
157
|
accountEnabled | true
|
|
157
|
-
appDisplayName | My custom
|
|
158
|
+
appDisplayName | My custom enterprise application
|
|
158
159
|
appId | a62ef842-f9ef-49cf-9119-31b85ea58445
|
|
159
160
|
appOwnerOrganizationId | fd71909b-55e5-44d2-9f78-dc432421d527
|
|
160
161
|
appRoleAssignmentRequired | false
|
|
161
162
|
createdDateTime | 2022-11-28T20:32:11Z
|
|
162
|
-
displayName | My custom
|
|
163
|
+
displayName | My custom enterprise application
|
|
163
164
|
servicePrincipalType | Application
|
|
164
165
|
signInAudience | AzureADMultipleOrg
|
|
165
166
|
```
|