@pnp/cli-microsoft365 7.3.0 → 7.4.0-beta.4388d3c
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 +1 -0
- package/README.md +1 -1
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/m365/app/commands/app-get.js +1 -1
- package/dist/m365/app/commands/permission/permission-list.js +1 -1
- package/dist/m365/{aad/commands.js → entra/aadCommands.js} +1 -1
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-get.js +18 -14
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-member-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/administrativeunit/administrativeunit-remove.js +18 -14
- package/dist/m365/{aad → entra}/commands/app/app-add.js +25 -21
- package/dist/m365/{aad → entra}/commands/app/app-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/app/app-permission-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/app/app-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-role-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/app/app-role-list.js +15 -11
- package/dist/m365/{aad → entra}/commands/app/app-role-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/app/app-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/approleassignment/approleassignment-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/group/group-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/group/group-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/group/group-remove.js +19 -15
- package/dist/m365/{aad → entra}/commands/group/group-user-list.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/groupsetting/groupsetting-set.js +12 -8
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-get.js +17 -13
- package/dist/m365/{aad → entra}/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -3
- package/dist/m365/{aad → entra}/commands/license/license-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/m365group/m365group-add.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-conversation-post-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-get.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-recyclebinitem-restore.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-remove.js +17 -13
- package/dist/m365/{aad → entra}/commands/m365group/m365group-renew.js +12 -8
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitycounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitydetail.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activityfilecounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitygroupcounts.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-report-activitystorage.js +4 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-set.js +19 -15
- package/dist/m365/{aad → entra}/commands/m365group/m365group-teamify.js +16 -12
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-add.js +14 -13
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +154 -0
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-remove.js +14 -13
- package/dist/m365/{aad → entra}/commands/m365group/m365group-user-set.js +14 -13
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-remove.js +10 -6
- package/dist/m365/{aad → entra}/commands/oauth2grant/oauth2grant-set.js +10 -6
- package/dist/m365/{aad → entra}/commands/policy/policy-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-disable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-enable.js +12 -8
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-get.js +6 -2
- package/dist/m365/{aad → entra}/commands/siteclassification/siteclassification-set.js +14 -10
- package/dist/m365/{aad → entra}/commands/sp/sp-add.js +17 -13
- package/dist/m365/{aad → entra}/commands/sp/sp-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/sp/sp-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-add.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-get.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-guest-add.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-hibp.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-license-add.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-list.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-license-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-list.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-password-validate.js +10 -6
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-clear.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-list.js +6 -2
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-remove.js +14 -10
- package/dist/m365/{aad → entra}/commands/user/user-recyclebinitem-restore.js +12 -8
- package/dist/m365/{aad → entra}/commands/user/user-remove.js +16 -12
- package/dist/m365/{aad → entra}/commands/user/user-set.js +18 -14
- package/dist/m365/{aad → entra}/commands/user/user-signin-list.js +15 -11
- package/dist/m365/entra/commands.js +85 -0
- package/dist/m365/pa/commands/app/app-get.js +26 -11
- package/dist/m365/pa/commands/app/app-remove.js +19 -2
- package/dist/m365/spo/commands/group/group-member-remove.js +1 -1
- package/dist/m365/spo/commands/group/group-set.js +1 -1
- package/dist/m365/spo/commands/site/site-set.js +1 -1
- package/dist/m365/teams/commands/app/app-install.js +1 -1
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +1 -1
- package/docs/docs/cmd/adaptivecard/adaptivecard-send.mdx +1 -1
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-add.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-member-list.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/administrativeunit/administrativeunit-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/app/app-add.mdx +44 -38
- package/docs/docs/cmd/{aad → entra}/app/app-get.mdx +23 -17
- package/docs/docs/cmd/{aad → entra}/app/app-list.mdx +11 -5
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +68 -0
- package/docs/docs/cmd/entra/app/app-remove.mdx +65 -0
- package/docs/docs/cmd/entra/app/app-role-add.mdx +74 -0
- package/docs/docs/cmd/{aad → entra}/app/app-role-list.mdx +20 -14
- package/docs/docs/cmd/entra/app/app-role-remove.mdx +84 -0
- package/docs/docs/cmd/entra/app/app-set.mdx +103 -0
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-add.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/approleassignment/approleassignment-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/group/group-get.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/group/group-list.mdx +13 -7
- package/docs/docs/cmd/entra/group/group-remove.mdx +50 -0
- package/docs/docs/cmd/{aad → entra}/group/group-user-list.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/groupsetting/groupsetting-set.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-get.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/groupsettingtemplate/groupsettingtemplate-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/license/license-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-add.mdx +17 -11
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-conversation-post-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-get.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-list.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-recyclebinitem-restore.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-remove.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-renew.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitycounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitydetail.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activityfilecounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitygroupcounts.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-report-activitystorage.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-teamify.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-add.mdx +9 -3
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +131 -0
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-remove.mdx +9 -5
- package/docs/docs/cmd/{aad → entra}/m365group/m365group-user-set.mdx +10 -6
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-add.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-remove.mdx +13 -7
- package/docs/docs/cmd/{aad → entra}/oauth2grant/oauth2grant-set.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/policy/policy-list.mdx +14 -8
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-disable.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-enable.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-get.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/siteclassification/siteclassification-set.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/sp/sp-add.mdx +25 -19
- package/docs/docs/cmd/{aad → entra}/sp/sp-get.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/sp/sp-list.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-add.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-get.mdx +16 -10
- package/docs/docs/cmd/{aad → entra}/user/user-guest-add.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-hibp.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-add.mdx +10 -4
- package/docs/docs/cmd/{aad → entra}/user/user-license-list.mdx +11 -5
- package/docs/docs/cmd/{aad → entra}/user/user-license-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-list.mdx +12 -6
- package/docs/docs/cmd/{aad → entra}/user/user-password-validate.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-clear.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-list.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-recyclebinitem-restore.mdx +8 -2
- package/docs/docs/cmd/{aad → entra}/user/user-remove.mdx +9 -3
- package/docs/docs/cmd/{aad → entra}/user/user-set.mdx +15 -9
- package/docs/docs/cmd/{aad → entra}/user/user-signin-list.mdx +19 -13
- package/docs/docs/cmd/graph/schemaextension/schemaextension-add.mdx +1 -1
- package/docs/docs/cmd/graph/schemaextension/schemaextension-set.mdx +1 -1
- package/docs/docs/cmd/pa/app/app-get.mdx +15 -0
- package/docs/docs/cmd/pa/app/app-remove.mdx +14 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/commandset/commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-add.mdx +1 -1
- package/docs/docs/cmd/spo/customaction/customaction-set.mdx +1 -1
- package/docs/docs/cmd/spo/field/field-set.mdx +1 -1
- package/docs/docs/cmd/spo/list/list-view-set.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-batch-add.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-clientsidewebpart-add.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-control-set.mdx +1 -1
- package/docs/docs/cmd/spo/page/page-set.mdx +2 -2
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-group-add.mdx +1 -1
- package/docs/docs/cmd/spo/term/term-set-add.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/npm-shrinkwrap.json +6 -14
- package/package.json +3 -3
- package/dist/m365/aad/commands/m365group/m365group-user-list.js +0 -94
- package/docs/docs/cmd/aad/app/app-permission-add.mdx +0 -62
- package/docs/docs/cmd/aad/app/app-remove.mdx +0 -59
- package/docs/docs/cmd/aad/app/app-role-add.mdx +0 -68
- package/docs/docs/cmd/aad/app/app-role-remove.mdx +0 -78
- package/docs/docs/cmd/aad/app/app-set.mdx +0 -97
- package/docs/docs/cmd/aad/group/group-remove.mdx +0 -44
- package/docs/docs/cmd/aad/m365group/m365group-user-list.mdx +0 -99
- /package/dist/m365/{aad → entra}/commands/approleassignment/ServicePrincipal.js +0 -0
- /package/dist/m365/{aad → entra}/commands/m365group/GroupExtended.js +0 -0
- /package/dist/m365/{aad → entra}/commands/siteclassification/SiteClassificationSettings.js +0 -0
|
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# entra app add
|
|
6
6
|
|
|
7
|
-
Creates new
|
|
7
|
+
Creates new Entra app registration
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra app add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad app add [options]
|
|
13
19
|
```
|
|
@@ -67,7 +73,7 @@ m365 aad app add [options]
|
|
|
67
73
|
: When specified, grants application & delegated permissions through admin consent.
|
|
68
74
|
|
|
69
75
|
`--manifest [manifest]`
|
|
70
|
-
:
|
|
76
|
+
: App manifest as retrieved from Entra ID to create the app registration from. Specify either `name` or `manifest` but not both.
|
|
71
77
|
|
|
72
78
|
`--save`
|
|
73
79
|
: Use to store the information about the created app in a local file.
|
|
@@ -77,15 +83,15 @@ m365 aad app add [options]
|
|
|
77
83
|
|
|
78
84
|
## Remarks
|
|
79
85
|
|
|
80
|
-
You can use this command to create a new
|
|
86
|
+
You can use this command to create a new Entra app registration either by specifying the different configuration settings through the corresponding options or by using the manifest.
|
|
81
87
|
|
|
82
|
-
If you don't use the manifest, you must specify the name of the
|
|
88
|
+
If you don't use the manifest, you must specify the name of the Entra app registration using the `name` option. If you use the manifest, you can skip the `name` option assuming the manifest contains the `displayName` property.
|
|
83
89
|
|
|
84
|
-
You can also use the manifest to provision some of the configuration settings of your
|
|
90
|
+
You can also use the manifest to provision some of the configuration settings of your Entra app. All properties specified in the manifest are optional and will set if specified.
|
|
85
91
|
|
|
86
92
|
If you specify the manifest along with some options, values specified in the options will override settings from the manifest. One exception is the name specified in the `name` option which will be overridden by the `displayName` property from the manifest if specified.
|
|
87
93
|
|
|
88
|
-
The following properties specified in the manifest retrieved from
|
|
94
|
+
The following properties specified in the manifest retrieved from Entra ID are not supported by this command:
|
|
89
95
|
|
|
90
96
|
- accessTokenAcceptedVersion
|
|
91
97
|
- disabledByMicrosoftStatus
|
|
@@ -95,94 +101,94 @@ The following properties specified in the manifest retrieved from Azure AD are n
|
|
|
95
101
|
- orgRestrictions
|
|
96
102
|
- samlMetadataUrl
|
|
97
103
|
|
|
98
|
-
When specifying the value for the `uri`, you can use the `_appId_` token, to include the ID of the newly generated
|
|
104
|
+
When specifying the value for the `uri`, you can use the `_appId_` token, to include the ID of the newly generated Entra app registration in the Application ID URI, eg. URI `api://caf406b91cd4.ngrok.io/_appId_` will become `api://caf406b91cd4.ngrok.io/ab3bd119-faf7-4db5-ba99-eb7e748f778a` where the last portion is the app ID of the created Entra app registration.
|
|
99
105
|
|
|
100
106
|
When using the `withSecret` option, this command will automatically generate a secret named `Default` and set it to expire 1 year in the future.
|
|
101
107
|
|
|
102
|
-
After creating the
|
|
108
|
+
After creating the Entra app registration, this command returns the app ID and object ID of the created app registration. If you used the `withSecret` option, it will also return the generated secret.
|
|
103
109
|
|
|
104
|
-
If you want to store the information about the created
|
|
110
|
+
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.
|
|
105
111
|
|
|
106
112
|
When specifying `--grantAdminConsent` option, a service principal will be created for the app registration.
|
|
107
113
|
|
|
108
114
|
## Examples
|
|
109
115
|
|
|
110
|
-
Create new
|
|
116
|
+
Create new Entra app registration with the specified name
|
|
111
117
|
|
|
112
118
|
```sh
|
|
113
|
-
m365
|
|
119
|
+
m365 entra app add --name 'My Entra app'
|
|
114
120
|
```
|
|
115
121
|
|
|
116
|
-
Create new
|
|
122
|
+
Create new Entra app registration from the manifest retrieved from the Azure Portal stored in a local file named _manifest.json_
|
|
117
123
|
|
|
118
124
|
```sh
|
|
119
|
-
m365
|
|
125
|
+
m365 entra app add --manifest @manifest.json
|
|
120
126
|
```
|
|
121
127
|
|
|
122
|
-
Create new multitenant
|
|
128
|
+
Create new multitenant Entra app registration
|
|
123
129
|
|
|
124
130
|
```sh
|
|
125
|
-
m365
|
|
131
|
+
m365 entra app add --name 'My Entra app' --multitenant
|
|
126
132
|
```
|
|
127
133
|
|
|
128
|
-
Create new
|
|
134
|
+
Create new Entra app registration for a web app with the specified redirect URIs
|
|
129
135
|
|
|
130
136
|
```sh
|
|
131
|
-
m365
|
|
137
|
+
m365 entra app add --name 'My Entra app' --redirectUris 'https://myapp.azurewebsites.net,http://localhost:4000' --platform web
|
|
132
138
|
```
|
|
133
139
|
|
|
134
|
-
Create new
|
|
140
|
+
Create new Entra app registration for a desktop app
|
|
135
141
|
|
|
136
142
|
```sh
|
|
137
|
-
m365
|
|
143
|
+
m365 entra app add --name 'My Entra app' --redirectUris 'https://login.microsoftonline.com/common/oauth2/nativeclient' --platform publicClient
|
|
138
144
|
```
|
|
139
145
|
|
|
140
|
-
Create new
|
|
146
|
+
Create new Entra app registration with an auto-generated secret (secret returned in the command output)
|
|
141
147
|
|
|
142
148
|
```sh
|
|
143
|
-
m365
|
|
149
|
+
m365 entra app add --name 'My Entra app' --withSecret
|
|
144
150
|
```
|
|
145
151
|
|
|
146
|
-
Create new
|
|
152
|
+
Create new Entra app registration for a daemon app with specified Microsoft Graph application permissions
|
|
147
153
|
|
|
148
154
|
```sh
|
|
149
|
-
m365
|
|
155
|
+
m365 entra app add --name 'My Entra app' --withSecret --apisApplication 'https://graph.microsoft.com/Group.ReadWrite.All,https://graph.microsoft.com/Directory.Read.All'
|
|
150
156
|
```
|
|
151
157
|
|
|
152
|
-
Create new
|
|
158
|
+
Create new Entra app registration for a single-page app with specified Microsoft Graph delegated permissions
|
|
153
159
|
|
|
154
160
|
```sh
|
|
155
|
-
m365
|
|
161
|
+
m365 entra app add --name 'My Entra app' --platform spa --redirectUris 'https://myspa.azurewebsites.net,http://localhost:8080' --apisDelegated 'https://graph.microsoft.com/Calendars.Read,https://graph.microsoft.com/Directory.Read.All' --implicitFlow
|
|
156
162
|
```
|
|
157
163
|
|
|
158
|
-
Create new
|
|
164
|
+
Create new Entra app registration with Application ID URI set to a fixed value
|
|
159
165
|
|
|
160
166
|
```sh
|
|
161
|
-
m365
|
|
167
|
+
m365 entra app add --name 'My Entra app' --uri https://contoso.onmicrosoft.com/myapp
|
|
162
168
|
```
|
|
163
169
|
|
|
164
|
-
Create new
|
|
170
|
+
Create new Entra app registration with Application ID URI set to a value that contains the ID of the app registration, designated with the `_appId_` token and a custom API scope that can be consented by both admins and users
|
|
165
171
|
|
|
166
172
|
```sh
|
|
167
|
-
m365
|
|
173
|
+
m365 entra app add --name 'My Entra app' --uri api://caf406b91cd4.ngrok.io/_appId_ --scopeName access_as_user --scopeAdminConsentDescription 'Access as a user' --scopeAdminConsentDisplayName 'Access as a user' --scopeConsentBy adminsAndUsers
|
|
168
174
|
```
|
|
169
175
|
|
|
170
|
-
Create new
|
|
176
|
+
Create new Entra app registration for a daemon app with specified Microsoft Graph application permissions, including admin consent
|
|
171
177
|
|
|
172
178
|
```sh
|
|
173
|
-
m365
|
|
179
|
+
m365 entra app add --name 'My Entra app' --apisApplication 'https://graph.microsoft.com/Group.ReadWrite.All' --grantAdminConsent
|
|
174
180
|
```
|
|
175
181
|
|
|
176
|
-
Create new
|
|
182
|
+
Create new Entra app registration with the specified name. Store information about the created app registration in the _.m365rc.json_ file in the current directory.
|
|
177
183
|
|
|
178
184
|
```sh
|
|
179
|
-
m365
|
|
185
|
+
m365 entra app add --name 'My Entra app' --save
|
|
180
186
|
```
|
|
181
187
|
|
|
182
|
-
Create new
|
|
188
|
+
Create new Entra app registration with a certificate
|
|
183
189
|
|
|
184
190
|
```sh
|
|
185
|
-
m365
|
|
191
|
+
m365 entra app add --name 'My Entra app' --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
|
|
186
192
|
```
|
|
187
193
|
|
|
188
194
|
## Response
|
|
@@ -221,7 +227,7 @@ m365 aad app add --name 'My AAD app' --certificateDisplayName "Some certificate
|
|
|
221
227
|
<TabItem value="Markdown">
|
|
222
228
|
|
|
223
229
|
```md
|
|
224
|
-
#
|
|
230
|
+
# entra app add --name "My Entra app"
|
|
225
231
|
|
|
226
232
|
Date: 2023-06-01
|
|
227
233
|
|
|
@@ -280,7 +286,7 @@ When we make use of the option `withSecret` the response will differ.
|
|
|
280
286
|
<TabItem value="Markdown">
|
|
281
287
|
|
|
282
288
|
```md
|
|
283
|
-
#
|
|
289
|
+
# entra app add --name "My Entra app" --withSecret "true"
|
|
284
290
|
|
|
285
291
|
Date: 2023-06-01
|
|
286
292
|
|
|
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# entra app get
|
|
6
6
|
|
|
7
|
-
Gets an
|
|
7
|
+
Gets an Entra app registration
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra app get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad app get [options]
|
|
13
19
|
```
|
|
@@ -16,13 +22,13 @@ m365 aad app get [options]
|
|
|
16
22
|
|
|
17
23
|
```md definition-list
|
|
18
24
|
`--appId [appId]`
|
|
19
|
-
: Application (client) ID of the
|
|
25
|
+
: Application (client) ID of the Entra application registration to get. Specify either `appId`, `objectId` or `name`
|
|
20
26
|
|
|
21
27
|
`--objectId [objectId]`
|
|
22
|
-
: Object ID of the
|
|
28
|
+
: Object ID of the Entra application registration to get. Specify either `appId`, `objectId` or `name`
|
|
23
29
|
|
|
24
30
|
`--name [name]`
|
|
25
|
-
: Name of the
|
|
31
|
+
: Name of the Entra application registration to get. Specify either `appId`, `objectId` or `name`
|
|
26
32
|
|
|
27
33
|
`--save`
|
|
28
34
|
: Use to store the information about the created app in a local file
|
|
@@ -32,36 +38,36 @@ m365 aad app get [options]
|
|
|
32
38
|
|
|
33
39
|
## Remarks
|
|
34
40
|
|
|
35
|
-
For best performance use the `objectId` option to reference the
|
|
41
|
+
For best performance use the `objectId` option to reference the Entra application registration to get. If you use `appId` or `name`, this command will first need to find the corresponding object ID for that application.
|
|
36
42
|
|
|
37
|
-
If the command finds multiple
|
|
43
|
+
If the command finds multiple Entra application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
38
44
|
|
|
39
|
-
If you want to store the information about the
|
|
45
|
+
If you want to store the information about the 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 get 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 App registration to it if it's not already present, allowing you to track multiple apps. If the file doesn't exist, the command will create it.
|
|
40
46
|
|
|
41
47
|
## Examples
|
|
42
48
|
|
|
43
|
-
Get the
|
|
49
|
+
Get the Entra application registration by its app (client) ID
|
|
44
50
|
|
|
45
51
|
```sh
|
|
46
|
-
m365
|
|
52
|
+
m365 entra app get --appId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
47
53
|
```
|
|
48
54
|
|
|
49
|
-
Get the
|
|
55
|
+
Get the Entra application registration by its object ID
|
|
50
56
|
|
|
51
57
|
```sh
|
|
52
|
-
m365
|
|
58
|
+
m365 entra app get --objectId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
53
59
|
```
|
|
54
60
|
|
|
55
|
-
Get the
|
|
61
|
+
Get the Entra application registration by its name
|
|
56
62
|
|
|
57
63
|
```sh
|
|
58
|
-
m365
|
|
64
|
+
m365 entra app get --name "My app"
|
|
59
65
|
```
|
|
60
66
|
|
|
61
|
-
Get the
|
|
67
|
+
Get the Entra application registration by its name. Store information about the retrieved app registration in the _.m365rc.json_ file in the current directory.
|
|
62
68
|
|
|
63
69
|
```sh
|
|
64
|
-
m365
|
|
70
|
+
m365 entra app get --name "My app" --save
|
|
65
71
|
```
|
|
66
72
|
|
|
67
73
|
## Response
|
|
@@ -260,7 +266,7 @@ m365 aad app get --name "My app" --save
|
|
|
260
266
|
<TabItem value="Markdown">
|
|
261
267
|
|
|
262
268
|
```md
|
|
263
|
-
#
|
|
269
|
+
# entra app get --appId "9eb465b4-eed9-4fb2-aa7a-4dfe18a52a4d"
|
|
264
270
|
|
|
265
271
|
Date: 2023-06-01
|
|
266
272
|
|
|
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# entra app list
|
|
6
6
|
|
|
7
|
-
Retrieves a list of
|
|
7
|
+
Retrieves a list of Entra app registrations
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra app list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad app list [options]
|
|
13
19
|
```
|
|
@@ -18,10 +24,10 @@ m365 aad app list [options]
|
|
|
18
24
|
|
|
19
25
|
## Examples
|
|
20
26
|
|
|
21
|
-
Retrieve a list of
|
|
27
|
+
Retrieve a list of Entra app registrations
|
|
22
28
|
|
|
23
29
|
```sh
|
|
24
|
-
m365
|
|
30
|
+
m365 entra app list
|
|
25
31
|
```
|
|
26
32
|
|
|
27
33
|
## Response
|
|
@@ -162,7 +168,7 @@ m365 aad app list
|
|
|
162
168
|
<TabItem value="Markdown">
|
|
163
169
|
|
|
164
170
|
```md
|
|
165
|
-
#
|
|
171
|
+
# entra app list
|
|
166
172
|
|
|
167
173
|
Date: 2023-06-01
|
|
168
174
|
|
|
@@ -0,0 +1,68 @@
|
|
|
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 add
|
|
6
|
+
|
|
7
|
+
Adds the specified application and/or delegated permissions to a specified Entra (Azure AD) app
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra app permission add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
m365 aad app permission add [options]
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Options
|
|
22
|
+
|
|
23
|
+
```md definition-list
|
|
24
|
+
`-i, --appId [appId]`
|
|
25
|
+
: Client ID of the Entra (Azure AD) app to add the API permissions to. Specify `appId` or `appObjectId` but not both.
|
|
26
|
+
|
|
27
|
+
`--appObjectId [appObjectId]`
|
|
28
|
+
: Object ID of the Entra (Azure AD) app to add the API permissions to. Specify `appId` or `appObjectId` but not both.
|
|
29
|
+
|
|
30
|
+
`-a, --applicationPermissions [applicationPermissions]`
|
|
31
|
+
: Space-separated list of application permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
32
|
+
|
|
33
|
+
`-d, --delegatedPermissions [delegatedPermissions]`
|
|
34
|
+
: Space-separated list of delegated permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
35
|
+
|
|
36
|
+
`--grantAdminConsent`
|
|
37
|
+
: When specified, grants application & delegated permissions through admin consent.
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
<Global />
|
|
41
|
+
|
|
42
|
+
## Remarks
|
|
43
|
+
|
|
44
|
+
Scopes/Roles to grant must be fully-qualified so that we can disambiguate them between the different resources.
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
Grant multiple delegated API permissions to an Entra (Azure AD) app specified by client id
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
m365 entra app permission add --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --delegatedPermissions 'https://management.azure.com/user_impersonation https://service.flow.microsoft.com/Flows.Read.All https://graph.microsoft.com/Agreement.Read.All'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Grant multiple delegated API permissions to an Entra (Azure AD) app specified by object id
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 entra app permission add --appObjectId 'e0306bb2-bf0b-4cc5-a845-a0b2cf11f690' --delegatedPermissions 'https://management.azure.com/user_impersonation https://service.flow.microsoft.com/Flows.Read.All https://graph.microsoft.com/Agreement.Read.All'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Grant multiple app-only permissions to an Entra (Azure AD) app specified by client id and grant admin consent
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 entra app permission add --appId 'f1417aa3-bf0b-4cc5-a845-a0b2cf11f690' --applicationPermissions 'https://graph.microsoft.com/Sites.FullControl.All https://microsoft.sharepoint-df.com/Sites.FullControl.All' --grandAdminConsent
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Response
|
|
67
|
+
|
|
68
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# entra app remove
|
|
4
|
+
|
|
5
|
+
Removes an Entra app registration
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra app remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
m365 aad app remove [options]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```md definition-list
|
|
22
|
+
`--appId [appId]`
|
|
23
|
+
: Application (client) ID of the Entra application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
24
|
+
|
|
25
|
+
`--objectId [objectId]`
|
|
26
|
+
: Object ID of the Entra application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
27
|
+
|
|
28
|
+
`--name [name]`
|
|
29
|
+
: Name of the Entra application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
30
|
+
|
|
31
|
+
`-f, --force`
|
|
32
|
+
: Don't prompt for confirmation to remove the app.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<Global />
|
|
36
|
+
|
|
37
|
+
## Remarks
|
|
38
|
+
|
|
39
|
+
For best performance use the `objectId` option to reference the Entra application registration to remove. If you use `appId` or `name`, this command will first need to find the corresponding object ID for that application.
|
|
40
|
+
|
|
41
|
+
If the command finds multiple Entra application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
44
|
+
|
|
45
|
+
Remove the Entra application registration by its app (client) ID.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
m365 entra app remove --appId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Remove the Entra application registration by its object ID.
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
m365 entra app remove --objectId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Remove the Entra application registration by its name. Will NOT prompt for confirmation before deleting.
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
m365 entra app remove --name "My app" --force
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Response
|
|
64
|
+
|
|
65
|
+
The command won't return a response on success.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
+
|
|
3
|
+
# entra app role add
|
|
4
|
+
|
|
5
|
+
Adds role to the specified Entra app registration
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra app role add [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
m365 aad app role add [options]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Options
|
|
20
|
+
|
|
21
|
+
```md definition-list
|
|
22
|
+
`--appId [appId]`
|
|
23
|
+
: Application (client) ID of the Entra application registration to which to add the role. Specify either `appId`, `appObjectId` or `appName`
|
|
24
|
+
|
|
25
|
+
`--appObjectId [appObjectId]`
|
|
26
|
+
: Object ID of the Entra application registration to which to add the role. Specify either `appId`, `appObjectId` or `appName`
|
|
27
|
+
|
|
28
|
+
`--appName [appName]`
|
|
29
|
+
: Name of the Entra application registration to which to add the role. Specify either `appId`, `appObjectId` or `appName`
|
|
30
|
+
|
|
31
|
+
`-n, --name <name>`
|
|
32
|
+
: Name of the role to add
|
|
33
|
+
|
|
34
|
+
`-d, --description <description>`
|
|
35
|
+
: Description of the role to add
|
|
36
|
+
|
|
37
|
+
`-m, --allowedMembers <allowedMembers>`
|
|
38
|
+
: Types of members that can be added to the group. Allowed values: `usersGroups`, `applications`, `both`
|
|
39
|
+
|
|
40
|
+
`-c, --claim <claim>`
|
|
41
|
+
: Claim value
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
<Global />
|
|
45
|
+
|
|
46
|
+
## Remarks
|
|
47
|
+
|
|
48
|
+
For best performance use the `appObjectId` option to reference the Entra application registration for which to add the role. If you use `appId` or `appName`, this command will first need to find the corresponding object ID for that application.
|
|
49
|
+
|
|
50
|
+
If the command finds multiple Entra application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
Add role to the Entra application registration specified by its object ID
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
m365 entra app role add --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --name Managers --description "Managers" --allowedMembers usersGroups --claim managers
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Add role to the Entra application registration specified by its app (client) ID
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
m365 entra app role add --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --name Managers --description "Managers" --allowedMembers usersGroups --claim managers
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Add role to the Entra application registration specified by its name
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
m365 entra app role add --appName "My app" --name Managers --description "Managers" --allowedMembers usersGroups --claim managers
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Response
|
|
73
|
+
|
|
74
|
+
The command won't return a response on success.
|
|
@@ -2,12 +2,18 @@ import Global from '/docs/cmd/_global.mdx';
|
|
|
2
2
|
import Tabs from '@theme/Tabs';
|
|
3
3
|
import TabItem from '@theme/TabItem';
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# entra app role list
|
|
6
6
|
|
|
7
|
-
Gets
|
|
7
|
+
Gets Entra app registration roles
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra app role list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad app role list [options]
|
|
13
19
|
```
|
|
@@ -16,41 +22,41 @@ m365 aad app role list [options]
|
|
|
16
22
|
|
|
17
23
|
```md definition-list
|
|
18
24
|
`--appId [appId]`
|
|
19
|
-
: Application (client) ID of the
|
|
25
|
+
: Application (client) ID of the Entra application registration for which to retrieve roles. Specify either `appId`, `appObjectId` or `appName`
|
|
20
26
|
|
|
21
27
|
`--appObjectId [appObjectId]`
|
|
22
|
-
: Object ID of the
|
|
28
|
+
: Object ID of the Entra application registration for which to retrieve roles. Specify either `appId`, `appObjectId` or `appName`
|
|
23
29
|
|
|
24
30
|
`--appName [appName]`
|
|
25
|
-
: Name of the
|
|
31
|
+
: Name of the Entra application registration for which to retrieve roles. Specify either `appId`, `appObjectId` or `appName`
|
|
26
32
|
```
|
|
27
33
|
|
|
28
34
|
<Global />
|
|
29
35
|
|
|
30
36
|
## Remarks
|
|
31
37
|
|
|
32
|
-
For best performance use the `appObjectId` option to reference the
|
|
38
|
+
For best performance use the `appObjectId` option to reference the Entra application registration for which to retrieve roles. If you use `appId` or `appName`, this command will first need to find the corresponding object ID for that application.
|
|
33
39
|
|
|
34
|
-
If the command finds multiple
|
|
40
|
+
If the command finds multiple Entra application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
35
41
|
|
|
36
42
|
## Examples
|
|
37
43
|
|
|
38
|
-
Get roles for the
|
|
44
|
+
Get roles for the Entra application registration specified by its object ID
|
|
39
45
|
|
|
40
46
|
```sh
|
|
41
|
-
m365
|
|
47
|
+
m365 entra app role list --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
42
48
|
```
|
|
43
49
|
|
|
44
|
-
Get roles for the
|
|
50
|
+
Get roles for the Entra application registration specified by its app (client) ID
|
|
45
51
|
|
|
46
52
|
```sh
|
|
47
|
-
m365
|
|
53
|
+
m365 entra app role list --appId e75be2e1-0204-4f95-857d-51a37cf40be8
|
|
48
54
|
```
|
|
49
55
|
|
|
50
|
-
Get roles for the
|
|
56
|
+
Get roles for the Entra application registration specified by its name
|
|
51
57
|
|
|
52
58
|
```sh
|
|
53
|
-
m365
|
|
59
|
+
m365 entra app role list --appName "My app"
|
|
54
60
|
```
|
|
55
61
|
|
|
56
62
|
## Response
|
|
@@ -95,7 +101,7 @@ m365 aad app role list --appName "My app"
|
|
|
95
101
|
<TabItem value="Markdown">
|
|
96
102
|
|
|
97
103
|
```md
|
|
98
|
-
#
|
|
104
|
+
# entra app role list --appObjectId "29d99e17-96b7-46aa-816d-b52bfeeafeb9"
|
|
99
105
|
|
|
100
106
|
Date: 2023-06-01
|
|
101
107
|
|