@pnp/cli-microsoft365 7.3.0 → 7.4.0-beta.2324d53
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 +186 -432
- package/package.json +10 -10
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0-beta.2324d53",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -256,19 +256,19 @@
|
|
|
256
256
|
"adaptivecards-templating": "^2.3.1",
|
|
257
257
|
"adm-zip": "^0.5.10",
|
|
258
258
|
"applicationinsights": "^2.9.1",
|
|
259
|
-
"axios": "^1.6.
|
|
259
|
+
"axios": "^1.6.3",
|
|
260
260
|
"chalk": "^5.3.0",
|
|
261
261
|
"clipboardy": "^4.0.0",
|
|
262
262
|
"configstore": "^6.0.0",
|
|
263
|
-
"csv-stringify": "^6.4.
|
|
263
|
+
"csv-stringify": "^6.4.5",
|
|
264
264
|
"easy-table": "^1.2.0",
|
|
265
265
|
"jmespath": "^0.16.0",
|
|
266
266
|
"json-to-ast": "^2.1.0",
|
|
267
267
|
"minimist": "^1.2.8",
|
|
268
268
|
"node-forge": "^1.3.1",
|
|
269
269
|
"omelette": "^0.4.17",
|
|
270
|
-
"open": "^
|
|
271
|
-
"ora": "^
|
|
270
|
+
"open": "^10.0.2",
|
|
271
|
+
"ora": "^8.0.1",
|
|
272
272
|
"semver": "^7.5.4",
|
|
273
273
|
"strip-json-comments": "^5.0.1",
|
|
274
274
|
"typescript": "^5.3.3",
|
|
@@ -283,17 +283,17 @@
|
|
|
283
283
|
"@types/json-to-ast": "^2.1.4",
|
|
284
284
|
"@types/minimist": "^1.2.5",
|
|
285
285
|
"@types/mocha": "^10.0.6",
|
|
286
|
-
"@types/node": "^
|
|
286
|
+
"@types/node": "^20.10.6",
|
|
287
287
|
"@types/node-forge": "^1.3.10",
|
|
288
288
|
"@types/omelette": "^0.4.4",
|
|
289
289
|
"@types/semver": "^7.5.6",
|
|
290
290
|
"@types/sinon": "^17.0.2",
|
|
291
291
|
"@types/update-notifier": "^6.0.8",
|
|
292
292
|
"@types/uuid": "^9.0.7",
|
|
293
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
294
|
-
"@typescript-eslint/parser": "^6.
|
|
293
|
+
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
294
|
+
"@typescript-eslint/parser": "^6.16.0",
|
|
295
295
|
"c8": "^8.0.1",
|
|
296
|
-
"eslint": "^8.
|
|
296
|
+
"eslint": "^8.56.0",
|
|
297
297
|
"eslint-plugin-cli-microsoft365": "file:eslint-rules",
|
|
298
298
|
"eslint-plugin-mocha": "^10.2.0",
|
|
299
299
|
"mocha": "^10.2.0",
|
|
@@ -301,4 +301,4 @@
|
|
|
301
301
|
"sinon": "^17.0.0",
|
|
302
302
|
"source-map-support": "^0.5.21"
|
|
303
303
|
}
|
|
304
|
-
}
|
|
304
|
+
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _AadM365GroupUserListCommand_instances, _AadM365GroupUserListCommand_initTelemetry, _AadM365GroupUserListCommand_initOptions, _AadM365GroupUserListCommand_initValidators;
|
|
7
|
-
import { odata } from '../../../../utils/odata.js';
|
|
8
|
-
import { validation } from '../../../../utils/validation.js';
|
|
9
|
-
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
|
-
import commands from '../../commands.js';
|
|
11
|
-
import { aadGroup } from '../../../../utils/aadGroup.js';
|
|
12
|
-
class AadM365GroupUserListCommand extends GraphCommand {
|
|
13
|
-
get name() {
|
|
14
|
-
return commands.M365GROUP_USER_LIST;
|
|
15
|
-
}
|
|
16
|
-
get description() {
|
|
17
|
-
return "Lists users for the specified Microsoft 365 group";
|
|
18
|
-
}
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
_AadM365GroupUserListCommand_instances.add(this);
|
|
22
|
-
__classPrivateFieldGet(this, _AadM365GroupUserListCommand_instances, "m", _AadM365GroupUserListCommand_initTelemetry).call(this);
|
|
23
|
-
__classPrivateFieldGet(this, _AadM365GroupUserListCommand_instances, "m", _AadM365GroupUserListCommand_initOptions).call(this);
|
|
24
|
-
__classPrivateFieldGet(this, _AadM365GroupUserListCommand_instances, "m", _AadM365GroupUserListCommand_initValidators).call(this);
|
|
25
|
-
}
|
|
26
|
-
async commandAction(logger, args) {
|
|
27
|
-
try {
|
|
28
|
-
const isUnifiedGroup = await aadGroup.isUnifiedGroup(args.options.groupId);
|
|
29
|
-
if (!isUnifiedGroup) {
|
|
30
|
-
throw Error(`Specified group with id '${args.options.groupId}' is not a Microsoft 365 group.`);
|
|
31
|
-
}
|
|
32
|
-
let users = await this.getOwners(args.options.groupId, logger);
|
|
33
|
-
if (args.options.role !== 'Owner') {
|
|
34
|
-
const membersAndGuests = await this.getMembersAndGuests(args.options.groupId, logger);
|
|
35
|
-
users = users.concat(membersAndGuests);
|
|
36
|
-
}
|
|
37
|
-
if (args.options.role) {
|
|
38
|
-
users = users.filter(i => i.userType === args.options.role);
|
|
39
|
-
}
|
|
40
|
-
await logger.log(users);
|
|
41
|
-
}
|
|
42
|
-
catch (err) {
|
|
43
|
-
this.handleRejectedODataJsonPromise(err);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
async getOwners(groupId, logger) {
|
|
47
|
-
if (this.verbose) {
|
|
48
|
-
await logger.logToStderr(`Retrieving owners of the group with id ${groupId}`);
|
|
49
|
-
}
|
|
50
|
-
const endpoint = `${this.resource}/v1.0/groups/${groupId}/owners?$select=id,displayName,userPrincipalName,userType`;
|
|
51
|
-
const users = await odata.getAllItems(endpoint);
|
|
52
|
-
// Currently there is a bug in the Microsoft Graph that returns Owners as
|
|
53
|
-
// userType 'member'. We therefore update all returned user as owner
|
|
54
|
-
users.forEach(user => {
|
|
55
|
-
user.userType = 'Owner';
|
|
56
|
-
});
|
|
57
|
-
return users;
|
|
58
|
-
}
|
|
59
|
-
async getMembersAndGuests(groupId, logger) {
|
|
60
|
-
if (this.verbose) {
|
|
61
|
-
await logger.logToStderr(`Retrieving members of the group with id ${groupId}`);
|
|
62
|
-
}
|
|
63
|
-
const endpoint = `${this.resource}/v1.0/groups/${groupId}/members?$select=id,displayName,userPrincipalName,userType`;
|
|
64
|
-
return await odata.getAllItems(endpoint);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
_AadM365GroupUserListCommand_instances = new WeakSet(), _AadM365GroupUserListCommand_initTelemetry = function _AadM365GroupUserListCommand_initTelemetry() {
|
|
68
|
-
this.telemetry.push((args) => {
|
|
69
|
-
Object.assign(this.telemetryProperties, {
|
|
70
|
-
role: args.options.role
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
}, _AadM365GroupUserListCommand_initOptions = function _AadM365GroupUserListCommand_initOptions() {
|
|
74
|
-
this.options.unshift({
|
|
75
|
-
option: "-i, --groupId <groupId>"
|
|
76
|
-
}, {
|
|
77
|
-
option: "-r, --role [type]",
|
|
78
|
-
autocomplete: ["Owner", "Member", "Guest"]
|
|
79
|
-
});
|
|
80
|
-
}, _AadM365GroupUserListCommand_initValidators = function _AadM365GroupUserListCommand_initValidators() {
|
|
81
|
-
this.validators.push(async (args) => {
|
|
82
|
-
if (!validation.isValidGuid(args.options.groupId)) {
|
|
83
|
-
return `${args.options.groupId} is not a valid GUID`;
|
|
84
|
-
}
|
|
85
|
-
if (args.options.role) {
|
|
86
|
-
if (['Owner', 'Member', 'Guest'].indexOf(args.options.role) === -1) {
|
|
87
|
-
return `${args.options.role} is not a valid role value. Allowed values Owner|Member|Guest`;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return true;
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
export default new AadM365GroupUserListCommand();
|
|
94
|
-
//# sourceMappingURL=m365group-user-list.js.map
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
import Tabs from '@theme/Tabs';
|
|
3
|
-
import TabItem from '@theme/TabItem';
|
|
4
|
-
|
|
5
|
-
# aad app permission add
|
|
6
|
-
|
|
7
|
-
Adds the specified application and/or delegated permissions to a specified Entra ID (Azure AD) app
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
m365 aad app permission add [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Options
|
|
16
|
-
|
|
17
|
-
```md definition-list
|
|
18
|
-
`-i, --appId [appId]`
|
|
19
|
-
: Client ID of the Entra ID (Azure AD) app to add the API permissions to. Specify `appId` or `appObjectId` but not both.
|
|
20
|
-
|
|
21
|
-
`--appObjectId [appObjectId]`
|
|
22
|
-
: Object ID of the Entra ID (Azure AD) app to add the API permissions to. Specify `appId` or `appObjectId` but not both.
|
|
23
|
-
|
|
24
|
-
`-a, --applicationPermissions [applicationPermissions]`
|
|
25
|
-
: Space-separated list of application permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
26
|
-
|
|
27
|
-
`-d, --delegatedPermissions [delegatedPermissions]`
|
|
28
|
-
: Space-separated list of delegated permissions to add. Specify at least `applicationPermissions` or `delegatedPermissions`.
|
|
29
|
-
|
|
30
|
-
`--grantAdminConsent`
|
|
31
|
-
: When specified, grants application & delegated permissions through admin consent.
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
<Global />
|
|
35
|
-
|
|
36
|
-
## Remarks
|
|
37
|
-
|
|
38
|
-
Scopes/Roles to grant must be fully-qualified so that we can disambiguate them between the different resources.
|
|
39
|
-
|
|
40
|
-
## Examples
|
|
41
|
-
|
|
42
|
-
Grant multiple delegated API permissions to an Entra ID (Azure AD) app specified by client id
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
m365 aad 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'
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Grant multiple delegated API permissions to an Entra ID (Azure AD) app specified by object id
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
m365 aad 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'
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Grant multiple app-only permissions to an Entra ID (Azure AD) app specified by client id and grant admin consent
|
|
55
|
-
|
|
56
|
-
```sh
|
|
57
|
-
m365 aad 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
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Response
|
|
61
|
-
|
|
62
|
-
The command won't return a response on success.
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# aad app remove
|
|
4
|
-
|
|
5
|
-
Removes an Azure AD app registration
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 aad app remove [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`--appId [appId]`
|
|
17
|
-
: Application (client) ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
18
|
-
|
|
19
|
-
`--objectId [objectId]`
|
|
20
|
-
: Object ID of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
21
|
-
|
|
22
|
-
`--name [name]`
|
|
23
|
-
: Name of the Azure AD application registration to remove. Specify either `appId`, `objectId` or `name` but not multiple.
|
|
24
|
-
|
|
25
|
-
`-f, --force`
|
|
26
|
-
: Don't prompt for confirmation to remove the app.
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
<Global />
|
|
30
|
-
|
|
31
|
-
## Remarks
|
|
32
|
-
|
|
33
|
-
For best performance use the `objectId` option to reference the Azure AD application registration to remove. If you use `appId` or `name`, this command will first need to find the corresponding object ID for that application.
|
|
34
|
-
|
|
35
|
-
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
36
|
-
|
|
37
|
-
## Examples
|
|
38
|
-
|
|
39
|
-
Remove the Azure AD application registration by its app (client) ID.
|
|
40
|
-
|
|
41
|
-
```sh
|
|
42
|
-
m365 aad app remove --appId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Remove the Azure AD application registration by its object ID.
|
|
46
|
-
|
|
47
|
-
```sh
|
|
48
|
-
m365 aad app remove --objectId d75be2e1-0204-4f95-857d-51a37cf40be8
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Remove the Azure AD application registration by its name. Will NOT prompt for confirmation before deleting.
|
|
52
|
-
|
|
53
|
-
```sh
|
|
54
|
-
m365 aad app remove --name "My app" --force
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Response
|
|
58
|
-
|
|
59
|
-
The command won't return a response on success.
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# aad app role add
|
|
4
|
-
|
|
5
|
-
Adds role to the specified Azure AD app registration
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 aad app role add [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`--appId [appId]`
|
|
17
|
-
: Application (client) ID of the Azure AD application registration to which to add the role. Specify either `appId`, `appObjectId` or `appName`
|
|
18
|
-
|
|
19
|
-
`--appObjectId [appObjectId]`
|
|
20
|
-
: Object ID of the Azure AD application registration to which to add the role. Specify either `appId`, `appObjectId` or `appName`
|
|
21
|
-
|
|
22
|
-
`--appName [appName]`
|
|
23
|
-
: Name of the Azure AD application registration to which to add the role. Specify either `appId`, `appObjectId` or `appName`
|
|
24
|
-
|
|
25
|
-
`-n, --name <name>`
|
|
26
|
-
: Name of the role to add
|
|
27
|
-
|
|
28
|
-
`-d, --description <description>`
|
|
29
|
-
: Description of the role to add
|
|
30
|
-
|
|
31
|
-
`-m, --allowedMembers <allowedMembers>`
|
|
32
|
-
: Types of members that can be added to the group. Allowed values: `usersGroups`, `applications`, `both`
|
|
33
|
-
|
|
34
|
-
`-c, --claim <claim>`
|
|
35
|
-
: Claim value
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
<Global />
|
|
39
|
-
|
|
40
|
-
## Remarks
|
|
41
|
-
|
|
42
|
-
For best performance use the `appObjectId` option to reference the Azure AD 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.
|
|
43
|
-
|
|
44
|
-
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
45
|
-
|
|
46
|
-
## Examples
|
|
47
|
-
|
|
48
|
-
Add role to the Azure AD application registration specified by its object ID
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
m365 aad app role add --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --name Managers --description "Managers" --allowedMembers usersGroups --claim managers
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Add role to the Azure AD application registration specified by its app (client) ID
|
|
55
|
-
|
|
56
|
-
```sh
|
|
57
|
-
m365 aad app role add --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --name Managers --description "Managers" --allowedMembers usersGroups --claim managers
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Add role to the Azure AD application registration specified by its name
|
|
61
|
-
|
|
62
|
-
```sh
|
|
63
|
-
m365 aad app role add --appName "My app" --name Managers --description "Managers" --allowedMembers usersGroups --claim managers
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Response
|
|
67
|
-
|
|
68
|
-
The command won't return a response on success.
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# aad app role remove
|
|
4
|
-
|
|
5
|
-
Removes role from the specified Azure AD app registration
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 aad app role remove [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`--appId [appId]`
|
|
17
|
-
: Application (client) ID of the Azure AD application registration from which role should be removed. Specify either `appId`, `appObjectId` or `appName`
|
|
18
|
-
|
|
19
|
-
`--appObjectId [appObjectId]`
|
|
20
|
-
: Object ID of the Azure AD application registration from which role should be removed. Specify either `appId`, `appObjectId` or `appName`
|
|
21
|
-
|
|
22
|
-
`--appName [appName]`
|
|
23
|
-
: Name of the Azure AD application registration from which role should be removed. Specify either `appId`, `appObjectId` or `appName`
|
|
24
|
-
|
|
25
|
-
`-n, --name [name]`
|
|
26
|
-
: Name of the role to remove. Specify either `name`, `id` or `claim`
|
|
27
|
-
|
|
28
|
-
`-i, --id [id]`
|
|
29
|
-
: Id of the role to remove. Specify either `name`, `id` or `claim`
|
|
30
|
-
|
|
31
|
-
`-c, --claim [claim]`
|
|
32
|
-
: Claim value of the role to remove. Specify either `name`, `id` or `claim`
|
|
33
|
-
|
|
34
|
-
`-f, --force`
|
|
35
|
-
: Don't prompt for confirmation to remove the role.
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
<Global />
|
|
39
|
-
|
|
40
|
-
## Remarks
|
|
41
|
-
|
|
42
|
-
For best performance use the `appObjectId` option to reference the Azure AD application registration from which to remove the role. If you use `appId` or `appName`, this command will first need to find the corresponding object ID for that application.
|
|
43
|
-
|
|
44
|
-
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
45
|
-
|
|
46
|
-
If the command finds multiple roles with the specified role name, it will prompt you to disambiguate which role it should use, listing the claim values.
|
|
47
|
-
|
|
48
|
-
If the role to be removed is 'Enabled', this command will disable the role first and then remove.
|
|
49
|
-
|
|
50
|
-
## Examples
|
|
51
|
-
|
|
52
|
-
Remove role from a Azure AD application registration using object ID and role name options. Will prompt for confirmation before deleting the role.
|
|
53
|
-
|
|
54
|
-
```sh
|
|
55
|
-
m365 aad app role remove --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --name "Get Product"
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
Remove role from a Azure AD application registration using app (client) ID and role claim options. Will prompt for confirmation before deleting the role.
|
|
59
|
-
|
|
60
|
-
```sh
|
|
61
|
-
m365 aad app role remove --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --claim "Product.Get"
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Remove role from a Azure AD application registration using app name and role claim options. Will prompt for confirmation before deleting the role.
|
|
65
|
-
|
|
66
|
-
```sh
|
|
67
|
-
m365 aad app role remove --appName "My app" --claim "Product.Get"
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Remove role from a Azure AD application registration using object ID and role id options. Will NOT prompt for confirmation before deleting the role.
|
|
71
|
-
|
|
72
|
-
```sh
|
|
73
|
-
m365 aad app role remove --appObjectId d75be2e1-0204-4f95-857d-51a37cf40be8 --id 15927ce6-1933-4b2f-b029-4dee3d53f4dd --force
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
## Response
|
|
77
|
-
|
|
78
|
-
The command won't return a response on success.
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# aad app set
|
|
4
|
-
|
|
5
|
-
Updates Azure AD app registration
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 aad app set [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`--appId [appId]`
|
|
17
|
-
: Application (client) ID of the Azure AD application registration to update. Specify either `appId`, `objectId` or `name`.
|
|
18
|
-
|
|
19
|
-
`--objectId [objectId]`
|
|
20
|
-
: Object ID of the Azure AD application registration to update. Specify either `appId`, `objectId` or `name`.
|
|
21
|
-
|
|
22
|
-
`--name [name]`
|
|
23
|
-
: Name of the Azure AD application registration to update. Specify either `appId`, `objectId` or `name`.
|
|
24
|
-
|
|
25
|
-
`-u, --uris [uris]`
|
|
26
|
-
: Comma-separated list of Application ID URIs to update.
|
|
27
|
-
|
|
28
|
-
`-r, --redirectUris [redirectUris]`
|
|
29
|
-
: Comma-separated list of redirect URIs to add to the app registration. Requires `platform` to be specified.
|
|
30
|
-
|
|
31
|
-
`-p, --platform [platform]`
|
|
32
|
-
: Platform for which the `redirectUri` should be configured. Allowed values `spa`, `web`, `publicClient`.
|
|
33
|
-
|
|
34
|
-
`--redirectUrisToRemove [redirectUrisToRemove]`
|
|
35
|
-
: Comma-separated list of existing redirect URIs to remove. Specify, when you want to replace existing redirect URIs with another.
|
|
36
|
-
|
|
37
|
-
`--certificateFile [certificateFile]`
|
|
38
|
-
: Path to the file with certificate public key. Specify either `certificateFile` or `certificateBase64Encoded`.
|
|
39
|
-
|
|
40
|
-
`--certificateBase64Encoded [certificateBase64Encoded]`
|
|
41
|
-
: Base64-encoded string with certificate public key. Specify either `certificateFile` or `certificateBase64Encoded`.
|
|
42
|
-
|
|
43
|
-
`--certificateDisplayName [certificateDisplayName]`
|
|
44
|
-
: Display name for the certificate. If not given, the displayName will be set to the certificate subject. When specified, also specify either `certificateFile` or `certificateBase64Encoded`.
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
<Global />
|
|
48
|
-
|
|
49
|
-
## Remarks
|
|
50
|
-
|
|
51
|
-
For best performance use the `objectId` option to reference the Azure AD application registration to update. If you use `appId` or `name`, this command will first need to find the corresponding object ID for that application.
|
|
52
|
-
|
|
53
|
-
If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.
|
|
54
|
-
|
|
55
|
-
When a certificate is specified it will be added to the list of certificates of the app without changing existing certificates.
|
|
56
|
-
|
|
57
|
-
## Examples
|
|
58
|
-
|
|
59
|
-
Update the app URI of the Azure AD application registration specified by its object ID
|
|
60
|
-
|
|
61
|
-
```sh
|
|
62
|
-
m365 aad app set --objectId d75be2e1-0204-4f95-857d-51a37cf40be8 --uris https://contoso.com/e75be2e1-0204-4f95-857d-51a37cf40be8
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Update the app URI of the Azure AD application registration specified by its app (client) ID
|
|
66
|
-
|
|
67
|
-
```sh
|
|
68
|
-
m365 aad app set --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --uris https://contoso.com/e75be2e1-0204-4f95-857d-51a37cf40be8
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Update the app URI of the Azure AD application registration specified by its name
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
m365 aad app set --name "My app" --uris https://contoso.com/e75be2e1-0204-4f95-857d-51a37cf40be8
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Add a new redirect URI for SPA authentication
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris https://contoso.com/auth --platform spa
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Replace one redirect URI with another for SPA authentication
|
|
84
|
-
|
|
85
|
-
```sh
|
|
86
|
-
m365 aad app set --objectId 95cfe30d-ed44-4f9d-b73d-c66560f72e83 --redirectUris https://contoso.com/auth --platform spa --redirectUrisToRemove https://contoso.com/old-auth
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
Add a certificate to the app
|
|
90
|
-
|
|
91
|
-
```sh
|
|
92
|
-
m365 aad app set --appId e75be2e1-0204-4f95-857d-51a37cf40be8 --certificateDisplayName "Some certificate name" --certificateFile "c:\temp\some-certificate.cer"
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Response
|
|
96
|
-
|
|
97
|
-
The command won't return a response on success.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
|
|
3
|
-
# aad group remove
|
|
4
|
-
|
|
5
|
-
Removes an Azure AD group
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
m365 aad group remove [options]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Options
|
|
14
|
-
|
|
15
|
-
```md definition-list
|
|
16
|
-
`-i, --id [id]`
|
|
17
|
-
: The ID of the Azure AD group. Specify either `id` or `displayName` but not both.
|
|
18
|
-
|
|
19
|
-
`-n, --displayName [displayName]`
|
|
20
|
-
: The display name of the Azure AD group. Specify either `id` or `displayName` but not both.
|
|
21
|
-
|
|
22
|
-
`-f, --force`
|
|
23
|
-
: Don't prompt for confirmation.
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
<Global />
|
|
27
|
-
|
|
28
|
-
## Examples
|
|
29
|
-
|
|
30
|
-
Remove an Azure AD group by display name
|
|
31
|
-
|
|
32
|
-
```sh
|
|
33
|
-
m365 aad group remove --displayName Developers
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Remove an Azure AD group by ID
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
m365 aad group remove --id 016bf125-195b-43c5-a1a0-28ccd3192c6d
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Response
|
|
43
|
-
|
|
44
|
-
The command won't return a response on success.
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import Global from '/docs/cmd/_global.mdx';
|
|
2
|
-
import Tabs from '@theme/Tabs';
|
|
3
|
-
import TabItem from '@theme/TabItem';
|
|
4
|
-
|
|
5
|
-
# aad m365group user list
|
|
6
|
-
|
|
7
|
-
Lists users for the specified Microsoft 365 group
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
m365 aad m365group user list [options]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Options
|
|
16
|
-
|
|
17
|
-
```md definition-list
|
|
18
|
-
`-i, --groupId <groupId>`
|
|
19
|
-
: The ID of the Microsoft 365 group for which to list users
|
|
20
|
-
|
|
21
|
-
`-r, --role [role]`
|
|
22
|
-
: Filter the results to only users with the given role: `Owner`, `Member`, `Guest`
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
<Global />
|
|
26
|
-
|
|
27
|
-
## Examples
|
|
28
|
-
|
|
29
|
-
List all users and their role in the specified Microsoft 365 group
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
m365 aad m365group user list --groupId '00000000-0000-0000-0000-000000000000'
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
List all owners and their role in the specified Microsoft 365 group
|
|
36
|
-
|
|
37
|
-
```sh
|
|
38
|
-
m365 aad m365group user list --groupId '00000000-0000-0000-0000-000000000000' --role Owner
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
List all guests and their role in the specified Microsoft 365 group
|
|
42
|
-
|
|
43
|
-
```sh
|
|
44
|
-
m365 aad m365group user list --groupId '00000000-0000-0000-0000-000000000000' --role Guest
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Response
|
|
48
|
-
|
|
49
|
-
<Tabs>
|
|
50
|
-
<TabItem value="JSON">
|
|
51
|
-
|
|
52
|
-
```json
|
|
53
|
-
[
|
|
54
|
-
{
|
|
55
|
-
"id": "da52218e-4822-4ac6-b41d-255e2059655e",
|
|
56
|
-
"displayName": "Adele Vance",
|
|
57
|
-
"userPrincipalName": "AdeleV@contoso.OnMicrosoft.com",
|
|
58
|
-
"userType": "Member"
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
</TabItem>
|
|
64
|
-
<TabItem value="Text">
|
|
65
|
-
|
|
66
|
-
```text
|
|
67
|
-
id displayName userPrincipalName userType
|
|
68
|
-
------------------------------------ -------------------- ------------------------------------ --------
|
|
69
|
-
da52218e-4822-4ac6-b41d-255e2059655e Adele Vance AdeleV@contoso.OnMicrosoft.com Member
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
</TabItem>
|
|
73
|
-
<TabItem value="CSV">
|
|
74
|
-
|
|
75
|
-
```csv
|
|
76
|
-
id,displayName,userPrincipalName,userType
|
|
77
|
-
da52218e-4822-4ac6-b41d-255e2059655e,Adele Vance,AdeleV@contoso.OnMicrosoft.com,Member
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
</TabItem>
|
|
81
|
-
<TabItem value="Markdown">
|
|
82
|
-
|
|
83
|
-
```md
|
|
84
|
-
# aad m365group user list --groupId "1deaa428-8dde-4043-b028-5492226d6114"
|
|
85
|
-
|
|
86
|
-
Date: 2023-06-02
|
|
87
|
-
|
|
88
|
-
## Adele Vance (da52218e-4822-4ac6-b41d-255e2059655e)
|
|
89
|
-
|
|
90
|
-
Property | Value
|
|
91
|
-
---------|-------
|
|
92
|
-
id | da52218e-4822-4ac6-b41d-255e2059655e
|
|
93
|
-
displayName | Adele Vance
|
|
94
|
-
userPrincipalName | AdeleV@contoso.OnMicrosoft.com
|
|
95
|
-
userType | Member
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
</TabItem>
|
|
99
|
-
</Tabs>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|