@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
|
@@ -32,8 +32,13 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
32
32
|
async commandAction(logger, args) {
|
|
33
33
|
try {
|
|
34
34
|
if (args.options.name) {
|
|
35
|
+
let endpoint = `${this.resource}/providers/Microsoft.PowerApps`;
|
|
36
|
+
if (args.options.asAdmin) {
|
|
37
|
+
endpoint += `/scopes/admin/environments/${formatting.encodeQueryParameter(args.options.environmentName)}`;
|
|
38
|
+
}
|
|
39
|
+
endpoint += `/apps/${formatting.encodeQueryParameter(args.options.name)}?api-version=2016-11-01`;
|
|
35
40
|
const requestOptions = {
|
|
36
|
-
url:
|
|
41
|
+
url: endpoint,
|
|
37
42
|
headers: {
|
|
38
43
|
accept: 'application/json'
|
|
39
44
|
},
|
|
@@ -50,8 +55,8 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
50
55
|
await logger.logToStderr(`Retrieving information about Microsoft Power App with displayName '${args.options.displayName}'...`);
|
|
51
56
|
}
|
|
52
57
|
const getAppsOutput = await this.getApps(args, logger);
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
if (getAppsOutput.stdout && JSON.parse(getAppsOutput.stdout).length > 0) {
|
|
59
|
+
const allApps = JSON.parse(getAppsOutput.stdout);
|
|
55
60
|
const app = allApps.find((a) => {
|
|
56
61
|
return a.properties.displayName.toLowerCase() === `${args.options.displayName}`.toLowerCase();
|
|
57
62
|
});
|
|
@@ -59,15 +64,11 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
59
64
|
await logger.log(this.setProperties(app));
|
|
60
65
|
}
|
|
61
66
|
else {
|
|
62
|
-
|
|
63
|
-
await logger.logToStderr(`No app found with displayName '${args.options.displayName}'`);
|
|
64
|
-
}
|
|
67
|
+
throw `No app found with displayName '${args.options.displayName}'.`;
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
else {
|
|
68
|
-
|
|
69
|
-
await logger.logToStderr('No apps found');
|
|
70
|
-
}
|
|
71
|
+
throw 'No apps found.';
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -82,7 +83,9 @@ class PaAppGetCommand extends PowerAppsCommand {
|
|
|
82
83
|
const options = {
|
|
83
84
|
output: 'json',
|
|
84
85
|
debug: this.debug,
|
|
85
|
-
verbose: this.verbose
|
|
86
|
+
verbose: this.verbose,
|
|
87
|
+
environmentName: args.options.environmentName,
|
|
88
|
+
asAdmin: args.options.asAdmin
|
|
86
89
|
};
|
|
87
90
|
return await cli.executeCommandWithOutput(paAppListCommand, { options: { ...options, _: [] } });
|
|
88
91
|
}
|
|
@@ -98,7 +101,9 @@ _PaAppGetCommand_instances = new WeakSet(), _PaAppGetCommand_initTelemetry = fun
|
|
|
98
101
|
this.telemetry.push((args) => {
|
|
99
102
|
Object.assign(this.telemetryProperties, {
|
|
100
103
|
name: typeof args.options.name !== 'undefined',
|
|
101
|
-
displayName: typeof args.options.displayName !== 'undefined'
|
|
104
|
+
displayName: typeof args.options.displayName !== 'undefined',
|
|
105
|
+
asAdmin: !!args.options.asAdmin,
|
|
106
|
+
environmentName: typeof args.options.environmentName !== 'undefined'
|
|
102
107
|
});
|
|
103
108
|
});
|
|
104
109
|
}, _PaAppGetCommand_initOptions = function _PaAppGetCommand_initOptions() {
|
|
@@ -106,12 +111,22 @@ _PaAppGetCommand_instances = new WeakSet(), _PaAppGetCommand_initTelemetry = fun
|
|
|
106
111
|
option: '-n, --name [name]'
|
|
107
112
|
}, {
|
|
108
113
|
option: '-d, --displayName [displayName]'
|
|
114
|
+
}, {
|
|
115
|
+
option: '-e, --environmentName [environmentName]'
|
|
116
|
+
}, {
|
|
117
|
+
option: '--asAdmin'
|
|
109
118
|
});
|
|
110
119
|
}, _PaAppGetCommand_initValidators = function _PaAppGetCommand_initValidators() {
|
|
111
120
|
this.validators.push(async (args) => {
|
|
112
121
|
if (args.options.name && !validation.isValidGuid(args.options.name)) {
|
|
113
122
|
return `${args.options.name} is not a valid GUID`;
|
|
114
123
|
}
|
|
124
|
+
if (args.options.asAdmin && !args.options.environmentName) {
|
|
125
|
+
return 'When specifying the asAdmin option, the environment option is required as well.';
|
|
126
|
+
}
|
|
127
|
+
if (args.options.environmentName && !args.options.asAdmin) {
|
|
128
|
+
return 'When specifying the environment option, the asAdmin option is required as well.';
|
|
129
|
+
}
|
|
115
130
|
return true;
|
|
116
131
|
});
|
|
117
132
|
}, _PaAppGetCommand_initOptionSets = function _PaAppGetCommand_initOptionSets() {
|
|
@@ -30,8 +30,13 @@ class PaAppRemoveCommand extends PowerAppsCommand {
|
|
|
30
30
|
await logger.logToStderr(`Removing Microsoft Power App ${args.options.name}...`);
|
|
31
31
|
}
|
|
32
32
|
const removePaApp = async () => {
|
|
33
|
+
let endpoint = `${this.resource}/providers/Microsoft.PowerApps`;
|
|
34
|
+
if (args.options.asAdmin) {
|
|
35
|
+
endpoint += `/scopes/admin/environments/${formatting.encodeQueryParameter(args.options.environmentName)}`;
|
|
36
|
+
}
|
|
37
|
+
endpoint += `/apps/${formatting.encodeQueryParameter(args.options.name)}?api-version=2017-08-01`;
|
|
33
38
|
const requestOptions = {
|
|
34
|
-
url:
|
|
39
|
+
url: endpoint,
|
|
35
40
|
fullResponse: true,
|
|
36
41
|
headers: {
|
|
37
42
|
accept: 'application/json'
|
|
@@ -64,7 +69,9 @@ class PaAppRemoveCommand extends PowerAppsCommand {
|
|
|
64
69
|
_PaAppRemoveCommand_instances = new WeakSet(), _PaAppRemoveCommand_initTelemetry = function _PaAppRemoveCommand_initTelemetry() {
|
|
65
70
|
this.telemetry.push((args) => {
|
|
66
71
|
Object.assign(this.telemetryProperties, {
|
|
67
|
-
force: typeof args.options.force !== 'undefined'
|
|
72
|
+
force: typeof args.options.force !== 'undefined',
|
|
73
|
+
asAdmin: !!args.options.asAdmin,
|
|
74
|
+
environmentName: typeof args.options.environmentName !== 'undefined'
|
|
68
75
|
});
|
|
69
76
|
});
|
|
70
77
|
}, _PaAppRemoveCommand_initOptions = function _PaAppRemoveCommand_initOptions() {
|
|
@@ -72,12 +79,22 @@ _PaAppRemoveCommand_instances = new WeakSet(), _PaAppRemoveCommand_initTelemetry
|
|
|
72
79
|
option: '-n, --name <name>'
|
|
73
80
|
}, {
|
|
74
81
|
option: '-f, --force'
|
|
82
|
+
}, {
|
|
83
|
+
option: '--asAdmin'
|
|
84
|
+
}, {
|
|
85
|
+
option: '-e, --environmentName [environmentName]'
|
|
75
86
|
});
|
|
76
87
|
}, _PaAppRemoveCommand_initValidators = function _PaAppRemoveCommand_initValidators() {
|
|
77
88
|
this.validators.push(async (args) => {
|
|
78
89
|
if (!validation.isValidGuid(args.options.name)) {
|
|
79
90
|
return `${args.options.name} is not a valid GUID`;
|
|
80
91
|
}
|
|
92
|
+
if (args.options.asAdmin && !args.options.environmentName) {
|
|
93
|
+
return 'When specifying the asAdmin option, the environment option is required as well.';
|
|
94
|
+
}
|
|
95
|
+
if (args.options.environmentName && !args.options.asAdmin) {
|
|
96
|
+
return 'When specifying the environment option, the asAdmin option is required as well.';
|
|
97
|
+
}
|
|
81
98
|
return true;
|
|
82
99
|
});
|
|
83
100
|
};
|
|
@@ -8,7 +8,7 @@ import { cli } from '../../../../cli/cli.js';
|
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
|
-
import aadUserGetCommand from '../../../
|
|
11
|
+
import aadUserGetCommand from '../../../entra/commands/user/user-get.js';
|
|
12
12
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
14
|
import SpoGroupMemberListCommand from './group-member-list.js';
|
|
@@ -7,7 +7,7 @@ var _SpoGroupSetCommand_instances, _SpoGroupSetCommand_initTelemetry, _SpoGroupS
|
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
|
-
import aadUserGetCommand from '../../../
|
|
10
|
+
import aadUserGetCommand from '../../../entra/commands/user/user-get.js';
|
|
11
11
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
13
|
class SpoGroupSetCommand extends SpoCommand {
|
|
@@ -12,7 +12,7 @@ import { formatting } from '../../../../utils/formatting.js';
|
|
|
12
12
|
import { spo } from '../../../../utils/spo.js';
|
|
13
13
|
import { urlUtil } from '../../../../utils/urlUtil.js';
|
|
14
14
|
import { validation } from '../../../../utils/validation.js';
|
|
15
|
-
import aadM365GroupSetCommand from '../../../
|
|
15
|
+
import aadM365GroupSetCommand from '../../../entra/commands/m365group/m365group-set.js';
|
|
16
16
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
17
17
|
import commands from '../../commands.js';
|
|
18
18
|
import { SharingCapabilities } from '../site/SharingCapabilities.js';
|
|
@@ -8,7 +8,7 @@ import { cli } from '../../../../cli/cli.js';
|
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
|
-
import aadUserGetCommand from '../../../
|
|
11
|
+
import aadUserGetCommand from '../../../entra/commands/user/user-get.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
14
|
class TeamsAppInstallCommand extends GraphCommand {
|
|
@@ -9,7 +9,7 @@ import { cli } from '../../../../cli/cli.js';
|
|
|
9
9
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
10
10
|
import { odata } from '../../../../utils/odata.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
|
-
import aadUserGetCommand from '../../../
|
|
12
|
+
import aadUserGetCommand from '../../../entra/commands/user/user-get.js';
|
|
13
13
|
import GraphCommand from "../../../base/GraphCommand.js";
|
|
14
14
|
import commands from '../../commands.js';
|
|
15
15
|
class TeamsMeetingAttendancereportListCommand extends GraphCommand {
|
|
@@ -47,7 +47,7 @@ The predefined card is automatically adjusted based on which options have been s
|
|
|
47
47
|
|
|
48
48
|
If your custom card is a card template (card with placeholders like `${title}`), you can fill it with data either by specifying the complete data object using the `cardData` option, or by passing any number of arbitrary options that will be mapped onto the card. The arbitrary properties should not match any of the global options like `output`, `query`, `debug`, etc. Data options like `title`, `description`, `imageUrl` and `actionUrl` will be mapped onto the card as well.
|
|
49
49
|
|
|
50
|
-
:::warning
|
|
50
|
+
:::warning[Escaping JSON in PowerShell]
|
|
51
51
|
|
|
52
52
|
When using the `--card` and `--cardData` options it's possible to enter a JSON string. In PowerShell 5 to 7.2 [specific escaping rules](./../../user-guide/using-cli.mdx#escaping-double-quotes-in-powershell) apply due to an issue. Remember that you can also use [file tokens](./../../user-guide/using-cli.mdx#passing-complex-content-into-cli-options) instead.
|
|
53
53
|
|
|
@@ -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 administrativeunit add
|
|
6
6
|
|
|
7
7
|
Creates a new administrative unit
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra administrativeunit add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad administrativeunit add [options]
|
|
13
19
|
```
|
|
@@ -40,19 +46,19 @@ To use this command you must be either **Global Administrator** or **Privileged
|
|
|
40
46
|
Create an administrative unit with a specific display name
|
|
41
47
|
|
|
42
48
|
```sh
|
|
43
|
-
m365
|
|
49
|
+
m365 entra administrativeunit add --displayName 'Marketing Division'
|
|
44
50
|
```
|
|
45
51
|
|
|
46
52
|
Create an administrative unit with a specific display name and description
|
|
47
53
|
|
|
48
54
|
```sh
|
|
49
|
-
m365
|
|
55
|
+
m365 entra administrativeunit add --displayName 'Marketing Division' --description 'Marketing department administration'
|
|
50
56
|
```
|
|
51
57
|
|
|
52
58
|
Create a hidden administrative unit with a specific display name
|
|
53
59
|
|
|
54
60
|
```sh
|
|
55
|
-
m365
|
|
61
|
+
m365 entra administrativeunit add --displayName 'Marketing Division' --hiddenMembership
|
|
56
62
|
```
|
|
57
63
|
|
|
58
64
|
## Response
|
|
@@ -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 administrativeunit get
|
|
6
6
|
|
|
7
7
|
Gets information about a specific administrative unit
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra administrativeunit get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad administrativeunit get [options]
|
|
13
19
|
```
|
|
@@ -29,13 +35,13 @@ m365 aad administrativeunit get [options]
|
|
|
29
35
|
Get information about the administrative unit by its id
|
|
30
36
|
|
|
31
37
|
```sh
|
|
32
|
-
m365
|
|
38
|
+
m365 entra administrativeunit get --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
33
39
|
```
|
|
34
40
|
|
|
35
41
|
Get information about the administrative unit by its display name
|
|
36
42
|
|
|
37
43
|
```sh
|
|
38
|
-
m365
|
|
44
|
+
m365 entra administrativeunit get --displayName 'Marketing Division'
|
|
39
45
|
```
|
|
40
46
|
|
|
41
47
|
## Response
|
|
@@ -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 administrativeunit list
|
|
6
6
|
|
|
7
7
|
Retrieves a list of administrative units
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra administrativeunit list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad administrativeunit list [options]
|
|
13
19
|
```
|
|
@@ -21,7 +27,7 @@ m365 aad administrativeunit list [options]
|
|
|
21
27
|
Retrieve a list of administrative units
|
|
22
28
|
|
|
23
29
|
```sh
|
|
24
|
-
m365
|
|
30
|
+
m365 entra administrativeunit list
|
|
25
31
|
```
|
|
26
32
|
|
|
27
33
|
## Response
|
|
@@ -65,7 +71,7 @@ m365 aad administrativeunit list
|
|
|
65
71
|
<TabItem value="Markdown">
|
|
66
72
|
|
|
67
73
|
```md
|
|
68
|
-
#
|
|
74
|
+
# entra administrativeunit list
|
|
69
75
|
|
|
70
76
|
Date: 2023-10-16
|
|
71
77
|
|
|
@@ -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 administrativeunit member add
|
|
6
6
|
|
|
7
7
|
Add a member (user, group, or device) to an administrative unit
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra administrativeunit member add [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad administrativeunit member add [options]
|
|
13
19
|
```
|
|
@@ -55,37 +61,37 @@ To use this command you must be either **Global Administrator** or **Privileged
|
|
|
55
61
|
Add a single user specified by id to an administrative unit specified by id
|
|
56
62
|
|
|
57
63
|
```sh
|
|
58
|
-
m365
|
|
64
|
+
m365 entra administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --userId 1caf7dcd-7e83-4c3a-94f7-932a1299c844
|
|
59
65
|
```
|
|
60
66
|
|
|
61
67
|
Add a single user specified by user principal name to an administrative unit specified by name
|
|
62
68
|
|
|
63
69
|
```sh
|
|
64
|
-
m365
|
|
70
|
+
m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --userName john.doe@contoso.com
|
|
65
71
|
```
|
|
66
72
|
|
|
67
73
|
Add a single group specified by id to an administrative unit specified by id
|
|
68
74
|
|
|
69
75
|
```sh
|
|
70
|
-
m365
|
|
76
|
+
m365 entra administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --groupId b2307a39-e878-458b-bc90-03bc578531d6
|
|
71
77
|
```
|
|
72
78
|
|
|
73
79
|
Add a single group specified by name to an administrative unit specified by name
|
|
74
80
|
|
|
75
81
|
```sh
|
|
76
|
-
m365
|
|
82
|
+
m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --groupName 'Marketing Group'
|
|
77
83
|
```
|
|
78
84
|
|
|
79
85
|
Add a single device specified by id to an administrative unit specified by id
|
|
80
86
|
|
|
81
87
|
```sh
|
|
82
|
-
m365
|
|
88
|
+
m365 entra administrativeunit member add --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --deviceId 810c84a8-4a9e-49e6-bf7d-12d183f40d01
|
|
83
89
|
```
|
|
84
90
|
|
|
85
91
|
Add a single device specified by name to an administrative unit specified by name
|
|
86
92
|
|
|
87
93
|
```sh
|
|
88
|
-
m365
|
|
94
|
+
m365 entra administrativeunit member add --administrativeUnitName 'Marketing Division' --deviceName 'JohnDoe-PC'
|
|
89
95
|
```
|
|
90
96
|
|
|
91
97
|
## More information
|
|
@@ -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 administrativeunit member get
|
|
6
6
|
|
|
7
7
|
Retrieves info about a specific member of an administrative unit
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra administrativeunit member get [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad administrativeunit member get [options]
|
|
13
19
|
```
|
|
@@ -41,13 +47,13 @@ When the `properties` option includes values with a `/`, for example: `manager/d
|
|
|
41
47
|
Get information about a member specified by id from an administrative unit specified by id
|
|
42
48
|
|
|
43
49
|
```sh
|
|
44
|
-
m365
|
|
50
|
+
m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
45
51
|
```
|
|
46
52
|
|
|
47
53
|
Get information about a member specified by id from an administrative unit specified by name
|
|
48
54
|
|
|
49
55
|
```sh
|
|
50
|
-
m365
|
|
56
|
+
m365 entra administrativeunit member get --id 64131a70-beb9-4ccb-b590-4401e58446ec --administrativeUnitName 'Marketing Division'
|
|
51
57
|
```
|
|
52
58
|
|
|
53
59
|
## Response
|
|
@@ -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 administrativeunit member list
|
|
6
6
|
|
|
7
7
|
Retrieves members (users, groups, or devices) of an administrative unit
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
+
```sh
|
|
12
|
+
m365 entra administrativeunit member list [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Alias
|
|
16
|
+
|
|
11
17
|
```sh
|
|
12
18
|
m365 aad administrativeunit member list [options]
|
|
13
19
|
```
|
|
@@ -44,55 +50,55 @@ When the `properties` option includes values with a `/`, for example: `manager/d
|
|
|
44
50
|
List members of an administrative unit specified by id
|
|
45
51
|
|
|
46
52
|
```sh
|
|
47
|
-
m365
|
|
53
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
48
54
|
```
|
|
49
55
|
|
|
50
56
|
List members of an administrative unit specified by id. For each one return the `id` and the `displayName`
|
|
51
57
|
|
|
52
58
|
```sh
|
|
53
|
-
m365
|
|
59
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --properties 'id,displayName'
|
|
54
60
|
```
|
|
55
61
|
|
|
56
62
|
List members of an administrative unit specified by name
|
|
57
63
|
|
|
58
64
|
```sh
|
|
59
|
-
m365
|
|
65
|
+
m365 entra administrativeunit member list --administrativeUnitName 'Marketing Division'
|
|
60
66
|
```
|
|
61
67
|
|
|
62
68
|
List users of an administrative unit specified by id
|
|
63
69
|
|
|
64
70
|
```sh
|
|
65
|
-
m365
|
|
71
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user
|
|
66
72
|
```
|
|
67
73
|
|
|
68
74
|
List users of an administrative unit specified by id that are guest users
|
|
69
75
|
|
|
70
76
|
```sh
|
|
71
|
-
m365
|
|
77
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type user --filter "userType eq 'Guest'"
|
|
72
78
|
```
|
|
73
79
|
|
|
74
80
|
List groups of an administrative unit specified by id
|
|
75
81
|
|
|
76
82
|
```sh
|
|
77
|
-
m365
|
|
83
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group
|
|
78
84
|
```
|
|
79
85
|
|
|
80
86
|
List groups of an administrative unit specified by id and include owners names, for each member return the `id` and the `displayName`
|
|
81
87
|
|
|
82
88
|
```sh
|
|
83
|
-
m365
|
|
89
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type group --properties 'id,displayName,owners/displayName'
|
|
84
90
|
```
|
|
85
91
|
|
|
86
92
|
List devices of an administrative unit specified by id
|
|
87
93
|
|
|
88
94
|
```sh
|
|
89
|
-
m365
|
|
95
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device
|
|
90
96
|
```
|
|
91
97
|
|
|
92
98
|
List devices with linux operating system of an administrative unit specified by id
|
|
93
99
|
|
|
94
100
|
```sh
|
|
95
|
-
m365
|
|
101
|
+
m365 entra administrativeunit member list --administrativeUnitId 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7 --type device --filter "operatingSystem eq 'linux'"
|
|
96
102
|
```
|
|
97
103
|
|
|
98
104
|
## Response
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import Global from '/docs/cmd/_global.mdx';
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# entra administrativeunit remove
|
|
4
4
|
|
|
5
5
|
Removes an administrative unit
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
+
```sh
|
|
10
|
+
m365 entra administrativeunit remove [options]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Alias
|
|
14
|
+
|
|
9
15
|
```sh
|
|
10
16
|
m365 aad administrativeunit remove [options]
|
|
11
17
|
```
|
|
@@ -38,13 +44,13 @@ To use this command you must be either **Global Administrator** or **Privileged
|
|
|
38
44
|
Remove an administrative unit by its id
|
|
39
45
|
|
|
40
46
|
```sh
|
|
41
|
-
m365
|
|
47
|
+
m365 entra administrativeunit remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
|
|
42
48
|
```
|
|
43
49
|
|
|
44
50
|
Remove an administrative unit by it displayName
|
|
45
51
|
|
|
46
52
|
```sh
|
|
47
|
-
m365
|
|
53
|
+
m365 entra administrativeunit remove --displayName 'Marketing Division'
|
|
48
54
|
```
|
|
49
55
|
|
|
50
56
|
## Response
|