@pnp/cli-microsoft365 11.0.0-beta.88d51e6 → 11.0.0
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Command.js +4 -0
- package/dist/config.js +1 -0
- package/dist/m365/adaptivecard/commands/adaptivecard-send.js +1 -1
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-add.js +13 -27
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +18 -43
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-list.js +10 -21
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +25 -49
- package/dist/m365/entra/commands/group/group-member-add.js +6 -27
- package/dist/m365/entra/commands/group/group-member-set.js +5 -26
- package/dist/m365/entra/commands/m365group/m365group-get.js +1 -7
- package/dist/m365/entra/commands/m365group/m365group-list.js +1 -7
- package/dist/m365/entra/commands/pim/pim-role-assignment-eligibility-list.js +1 -7
- package/dist/m365/entra/commands/pim/pim-role-assignment-list.js +1 -7
- package/dist/m365/entra/commands/pim/pim-role-request-list.js +1 -7
- package/dist/m365/entra/commands/roleassignment/roleassignment-add.js +146 -0
- package/dist/m365/entra/commands.js +1 -0
- package/dist/m365/flow/commands/flow-list.js +7 -14
- package/dist/m365/flow/commands/run/run-get.js +1 -7
- package/dist/m365/graph/commands/openextension/openextension-add.js +2 -2
- package/dist/m365/graph/commands/openextension/openextension-set.js +2 -6
- package/dist/m365/graph/commands/subscription/subscription-add.js +3 -10
- package/dist/m365/pp/commands/copilot/copilot-get.js +0 -4
- package/dist/m365/pp/commands/copilot/copilot-list.js +0 -4
- package/dist/m365/pp/commands/copilot/copilot-remove.js +0 -4
- package/dist/m365/pp/commands/solution/solution-publisher-list.js +1 -8
- package/dist/m365/pp/commands.js +0 -3
- package/dist/m365/purview/commands/threatassessment/threatassessment-get.js +1 -7
- package/dist/m365/spe/commands/container/container-add.js +1 -3
- package/dist/m365/spe/commands/container/container-list.js +1 -3
- package/dist/m365/spe/commands/container/container-recyclebinitem-list.js +1 -3
- package/dist/m365/spe/commands/container/container-recyclebinitem-restore.js +1 -3
- package/dist/m365/spe/commands/container/container-remove.js +1 -3
- package/dist/m365/spe/commands/containertype/containertype-add.js +67 -90
- package/dist/m365/spe/commands/containertype/containertype-get.js +53 -81
- package/dist/m365/spe/commands/containertype/containertype-list.js +8 -19
- package/dist/m365/spe/commands/containertype/containertype-remove.js +27 -5
- package/dist/m365/spfx/commands/project/project-upgrade.js +23 -66
- package/dist/m365/spo/commands/file/file-move.js +2 -8
- package/dist/m365/spo/commands/homesite/homesite-add.js +26 -2
- package/dist/m365/spo/commands/homesite/homesite-get.js +28 -14
- package/dist/m365/spo/commands/homesite/homesite-list.js +1 -12
- package/dist/m365/spo/commands/homesite/homesite-remove.js +6 -34
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +4 -13
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +1 -8
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +17 -25
- package/dist/m365/spo/commands/{tenant/tenant-site-archive.js → site/site-archive.js} +14 -14
- package/dist/m365/spo/commands/{tenant/tenant-site-list.js → site/site-list.js} +16 -27
- package/dist/m365/spo/commands/{tenant/tenant-site-membership-list.js → site/site-membership-list.js} +15 -15
- package/dist/m365/spo/commands/{tenant/tenant-site-rename.js → site/site-rename.js} +14 -14
- package/dist/m365/spo/commands/{tenant/tenant-site-unarchive.js → site/site-unarchive.js} +14 -14
- package/dist/m365/spo/commands/term/term-list.js +1 -7
- package/dist/m365/spo/commands.js +4 -6
- package/dist/m365/teams/commands/chat/chat-member-add.js +3 -9
- package/dist/m365/viva/commands/engage/engage-network-list.js +1 -7
- package/dist/utils/entraAdministrativeUnit.js +1 -1
- package/dist/utils/spe.js +5 -39
- package/docs/docs/cmd/entra/group/group-member-add.mdx +7 -26
- package/docs/docs/cmd/entra/group/group-member-set.mdx +5 -23
- package/docs/docs/cmd/entra/m365group/m365group-get.mdx +0 -3
- package/docs/docs/cmd/entra/m365group/m365group-list.mdx +0 -3
- package/docs/docs/cmd/entra/pim/pim-role-assignment-eligibility-list.mdx +0 -3
- package/docs/docs/cmd/entra/pim/pim-role-assignment-list.mdx +0 -3
- package/docs/docs/cmd/entra/pim/pim-role-request-list.mdx +0 -3
- package/docs/docs/cmd/entra/roleassignment/roleassignment-add.mdx +163 -0
- package/docs/docs/cmd/flow/flow-list.mdx +0 -3
- package/docs/docs/cmd/flow/run/run-get.mdx +0 -3
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +0 -3
- package/docs/docs/cmd/pp/copilot/copilot-get.mdx +0 -6
- package/docs/docs/cmd/pp/copilot/copilot-list.mdx +0 -6
- package/docs/docs/cmd/pp/copilot/copilot-remove.mdx +0 -6
- package/docs/docs/cmd/pp/solution/solution-publisher-list.mdx +0 -3
- package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +0 -3
- package/docs/docs/cmd/spe/container/container-activate.mdx +21 -0
- package/docs/docs/cmd/spe/container/container-add.mdx +29 -0
- package/docs/docs/cmd/spe/container/container-get.mdx +20 -1
- package/docs/docs/cmd/spe/container/container-list.mdx +29 -0
- package/docs/docs/cmd/spe/container/container-permission-list.mdx +19 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-list.mdx +29 -0
- package/docs/docs/cmd/spe/container/container-recyclebinitem-restore.mdx +31 -0
- package/docs/docs/cmd/spe/container/container-remove.mdx +31 -0
- package/docs/docs/cmd/spe/containertype/containertype-add.mdx +111 -55
- package/docs/docs/cmd/spe/containertype/containertype-get.mdx +69 -38
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +59 -31
- package/docs/docs/cmd/spe/containertype/containertype-remove.mdx +31 -4
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +18 -5
- package/docs/docs/cmd/spo/file/file-move.mdx +0 -3
- package/docs/docs/cmd/spo/homesite/homesite-add.mdx +13 -4
- package/docs/docs/cmd/spo/homesite/homesite-get.mdx +44 -23
- package/docs/docs/cmd/spo/homesite/homesite-list.mdx +0 -6
- package/docs/docs/cmd/spo/homesite/homesite-remove.mdx +10 -35
- package/docs/docs/cmd/spo/homesite/homesite-set.mdx +1 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-get.mdx +0 -3
- package/docs/docs/cmd/spo/hubsite/hubsite-list.mdx +0 -3
- package/docs/docs/cmd/spo/serviceprincipal/serviceprincipal-grant-list.mdx +18 -18
- package/docs/docs/cmd/spo/{tenant/tenant-site-archive.mdx → site/site-archive.mdx} +4 -4
- package/docs/docs/cmd/spo/{tenant/tenant-site-list.mdx → site/site-list.mdx} +7 -16
- package/docs/docs/cmd/spo/{tenant/tenant-site-membership-list.mdx → site/site-membership-list.mdx} +5 -5
- package/docs/docs/cmd/spo/{tenant/tenant-site-rename.mdx → site/site-rename.mdx} +7 -7
- package/docs/docs/cmd/spo/{tenant/tenant-site-unarchive.mdx → site/site-unarchive.mdx} +4 -4
- package/docs/docs/cmd/spo/term/term-list.mdx +0 -3
- package/docs/docs/cmd/teams/chat/chat-member-add.mdx +2 -5
- package/docs/docs/cmd/viva/engage/engage-network-list.mdx +0 -3
- package/package.json +2 -2
- package/dist/m365/spo/commands/tenant/SPOTenantSitePropertiesEnumerable.js +0 -2
- package/dist/m365/spo/commands/tenant/TenantSiteProperties.js +0 -2
|
@@ -3,26 +3,26 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _SpoSiteRenameCommand_instances, _SpoSiteRenameCommand_initTelemetry, _SpoSiteRenameCommand_initOptions, _SpoSiteRenameCommand_initValidators;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
8
|
import { formatting } from '../../../../utils/formatting.js';
|
|
9
9
|
import { spo } from '../../../../utils/spo.js';
|
|
10
10
|
import { timersUtil } from '../../../../utils/timersUtil.js';
|
|
11
11
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
12
12
|
import commands from '../../commands.js';
|
|
13
|
-
class
|
|
13
|
+
class SpoSiteRenameCommand extends SpoCommand {
|
|
14
14
|
get name() {
|
|
15
|
-
return commands.
|
|
15
|
+
return commands.SITE_RENAME;
|
|
16
16
|
}
|
|
17
17
|
get description() {
|
|
18
18
|
return 'Renames the URL and title of a site collection';
|
|
19
19
|
}
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
|
|
23
|
-
__classPrivateFieldGet(this,
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
22
|
+
_SpoSiteRenameCommand_instances.add(this);
|
|
23
|
+
__classPrivateFieldGet(this, _SpoSiteRenameCommand_instances, "m", _SpoSiteRenameCommand_initTelemetry).call(this);
|
|
24
|
+
__classPrivateFieldGet(this, _SpoSiteRenameCommand_instances, "m", _SpoSiteRenameCommand_initOptions).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _SpoSiteRenameCommand_instances, "m", _SpoSiteRenameCommand_initValidators).call(this);
|
|
26
26
|
}
|
|
27
27
|
async commandAction(logger, args) {
|
|
28
28
|
try {
|
|
@@ -92,11 +92,11 @@ class SpoTenantSiteRenameCommand extends SpoCommand {
|
|
|
92
92
|
if (this.operationData.JobState === "Success") {
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
await timersUtil.setTimeout(
|
|
95
|
+
await timersUtil.setTimeout(SpoSiteRenameCommand.checkIntervalInMs);
|
|
96
96
|
await command.waitForRenameCompletion(command, isVerbose, spoAdminUrl, siteUrl, iteration);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_SpoSiteRenameCommand_instances = new WeakSet(), _SpoSiteRenameCommand_initTelemetry = function _SpoSiteRenameCommand_initTelemetry() {
|
|
100
100
|
this.telemetry.push((args) => {
|
|
101
101
|
Object.assign(this.telemetryProperties, {
|
|
102
102
|
newTitle: typeof args.options.newTitle !== 'undefined',
|
|
@@ -105,7 +105,7 @@ _SpoTenantSiteRenameCommand_instances = new WeakSet(), _SpoTenantSiteRenameComma
|
|
|
105
105
|
wait: !!args.options.wait
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, _SpoSiteRenameCommand_initOptions = function _SpoSiteRenameCommand_initOptions() {
|
|
109
109
|
this.options.unshift({
|
|
110
110
|
option: '-u, --url <url>'
|
|
111
111
|
}, {
|
|
@@ -119,7 +119,7 @@ _SpoTenantSiteRenameCommand_instances = new WeakSet(), _SpoTenantSiteRenameComma
|
|
|
119
119
|
}, {
|
|
120
120
|
option: '--wait'
|
|
121
121
|
});
|
|
122
|
-
},
|
|
122
|
+
}, _SpoSiteRenameCommand_initValidators = function _SpoSiteRenameCommand_initValidators() {
|
|
123
123
|
this.validators.push(async (args) => {
|
|
124
124
|
if (args.options.url.toLowerCase() === args.options.newUrl.toLowerCase()) {
|
|
125
125
|
return 'The new URL cannot be the same as the target URL.';
|
|
@@ -127,6 +127,6 @@ _SpoTenantSiteRenameCommand_instances = new WeakSet(), _SpoTenantSiteRenameComma
|
|
|
127
127
|
return true;
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
|
-
|
|
131
|
-
export default new
|
|
132
|
-
//# sourceMappingURL=
|
|
130
|
+
SpoSiteRenameCommand.checkIntervalInMs = 5000;
|
|
131
|
+
export default new SpoSiteRenameCommand();
|
|
132
|
+
//# sourceMappingURL=site-rename.js.map
|
|
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
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
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var
|
|
6
|
+
var _SpoSiteUnarchiveCommand_instances, _SpoSiteUnarchiveCommand_initTelemetry, _SpoSiteUnarchiveCommand_initOptions, _SpoSiteUnarchiveCommand_initValidators, _SpoSiteUnarchiveCommand_initTypes;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import config from '../../../../config.js';
|
|
9
9
|
import request from '../../../../request.js';
|
|
@@ -11,20 +11,20 @@ import { spo } from '../../../../utils/spo.js';
|
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
13
13
|
import commands from '../../commands.js';
|
|
14
|
-
class
|
|
14
|
+
class SpoSiteUnarchiveCommand extends SpoCommand {
|
|
15
15
|
get name() {
|
|
16
|
-
return commands.
|
|
16
|
+
return commands.SITE_UNARCHIVE;
|
|
17
17
|
}
|
|
18
18
|
get description() {
|
|
19
19
|
return 'Unarchives a site collection';
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
|
-
|
|
24
|
-
__classPrivateFieldGet(this,
|
|
25
|
-
__classPrivateFieldGet(this,
|
|
26
|
-
__classPrivateFieldGet(this,
|
|
27
|
-
__classPrivateFieldGet(this,
|
|
23
|
+
_SpoSiteUnarchiveCommand_instances.add(this);
|
|
24
|
+
__classPrivateFieldGet(this, _SpoSiteUnarchiveCommand_instances, "m", _SpoSiteUnarchiveCommand_initTelemetry).call(this);
|
|
25
|
+
__classPrivateFieldGet(this, _SpoSiteUnarchiveCommand_instances, "m", _SpoSiteUnarchiveCommand_initOptions).call(this);
|
|
26
|
+
__classPrivateFieldGet(this, _SpoSiteUnarchiveCommand_instances, "m", _SpoSiteUnarchiveCommand_initValidators).call(this);
|
|
27
|
+
__classPrivateFieldGet(this, _SpoSiteUnarchiveCommand_instances, "m", _SpoSiteUnarchiveCommand_initTypes).call(this);
|
|
28
28
|
}
|
|
29
29
|
async commandAction(logger, args) {
|
|
30
30
|
if (args.options.force) {
|
|
@@ -76,23 +76,23 @@ class SpoTenantSiteUnarchiveCommand extends SpoCommand {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
_SpoSiteUnarchiveCommand_instances = new WeakSet(), _SpoSiteUnarchiveCommand_initTelemetry = function _SpoSiteUnarchiveCommand_initTelemetry() {
|
|
80
80
|
this.telemetry.push((args) => {
|
|
81
81
|
Object.assign(this.telemetryProperties, {
|
|
82
82
|
force: !!args.options.force
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
|
-
},
|
|
85
|
+
}, _SpoSiteUnarchiveCommand_initOptions = function _SpoSiteUnarchiveCommand_initOptions() {
|
|
86
86
|
this.options.unshift({
|
|
87
87
|
option: '-u, --url <url>'
|
|
88
88
|
}, {
|
|
89
89
|
option: '-f, --force'
|
|
90
90
|
});
|
|
91
|
-
},
|
|
91
|
+
}, _SpoSiteUnarchiveCommand_initValidators = function _SpoSiteUnarchiveCommand_initValidators() {
|
|
92
92
|
this.validators.push(async (args) => validation.isValidSharePointUrl(args.options.url));
|
|
93
|
-
},
|
|
93
|
+
}, _SpoSiteUnarchiveCommand_initTypes = function _SpoSiteUnarchiveCommand_initTypes() {
|
|
94
94
|
this.types.string.push('url');
|
|
95
95
|
this.types.boolean.push('force');
|
|
96
96
|
};
|
|
97
|
-
export default new
|
|
98
|
-
//# sourceMappingURL=
|
|
97
|
+
export default new SpoSiteUnarchiveCommand();
|
|
98
|
+
//# sourceMappingURL=site-unarchive.js.map
|
|
@@ -31,9 +31,6 @@ class SpoTermListCommand extends SpoCommand {
|
|
|
31
31
|
__classPrivateFieldGet(this, _SpoTermListCommand_instances, "m", _SpoTermListCommand_initOptionSets).call(this);
|
|
32
32
|
}
|
|
33
33
|
async commandAction(logger, args) {
|
|
34
|
-
if (args.options.includeChildTerms) {
|
|
35
|
-
await this.warn(logger, `Parameter 'includeChildTerms' is deprecated. Please use 'withChildTerms' instead`);
|
|
36
|
-
}
|
|
37
34
|
try {
|
|
38
35
|
const spoWebUrl = args.options.webUrl ? args.options.webUrl : await spo.getSpoAdminUrl(logger, this.debug);
|
|
39
36
|
const res = await spo.getRequestDigest(spoWebUrl);
|
|
@@ -43,7 +40,7 @@ class SpoTermListCommand extends SpoCommand {
|
|
|
43
40
|
const termGroupQuery = args.options.termGroupId ? `<Method Id="77" ParentId="75" Name="GetById"><Parameters><Parameter Type="Guid">{${args.options.termGroupId}}</Parameter></Parameters></Method>` : `<Method Id="77" ParentId="75" Name="GetByName"><Parameters><Parameter Type="String">${formatting.escapeXml(args.options.termGroupName)}</Parameter></Parameters></Method>`;
|
|
44
41
|
const termSetQuery = args.options.termSetId ? `<Method Id="82" ParentId="80" Name="GetById"><Parameters><Parameter Type="Guid">{${args.options.termSetId}}</Parameter></Parameters></Method>` : `<Method Id="82" ParentId="80" Name="GetByName"><Parameters><Parameter Type="String">${formatting.escapeXml(args.options.termSetName)}</Parameter></Parameters></Method>`;
|
|
45
42
|
const data = `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="70" ObjectPathId="69" /><ObjectIdentityQuery Id="71" ObjectPathId="69" /><ObjectPath Id="73" ObjectPathId="72" /><ObjectIdentityQuery Id="74" ObjectPathId="72" /><ObjectPath Id="76" ObjectPathId="75" /><ObjectPath Id="78" ObjectPathId="77" /><ObjectIdentityQuery Id="79" ObjectPathId="77" /><ObjectPath Id="81" ObjectPathId="80" /><ObjectPath Id="83" ObjectPathId="82" /><ObjectIdentityQuery Id="84" ObjectPathId="82" /><ObjectPath Id="86" ObjectPathId="85" /><Query Id="87" ObjectPathId="85"><Query SelectAllProperties="false"><Properties /></Query><ChildItemQuery SelectAllProperties="true"><Properties><Property Name="Name" ScalarProperty="true" /><Property Name="Id" ScalarProperty="true" /></Properties></ChildItemQuery></Query></Actions><ObjectPaths><StaticMethod Id="69" Name="GetTaxonomySession" TypeId="{981cbc68-9edc-4f8d-872f-71146fcbb84f}" /><Method Id="72" ParentId="69" Name="GetDefaultSiteCollectionTermStore" /><Property Id="75" ParentId="72" Name="Groups" />${termGroupQuery}<Property Id="80" ParentId="77" Name="TermSets" />${termSetQuery}<Property Id="85" ParentId="82" Name="Terms" /></ObjectPaths></Request>`;
|
|
46
|
-
const shouldIncludeChildTerms = args.options.
|
|
43
|
+
const shouldIncludeChildTerms = args.options.withChildTerms;
|
|
47
44
|
const result = await this.executeCsomCall(data, spoWebUrl, res);
|
|
48
45
|
const terms = [];
|
|
49
46
|
if (result._Child_Items_ && result._Child_Items_.length > 0) {
|
|
@@ -146,7 +143,6 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
|
|
|
146
143
|
termGroupName: typeof args.options.termGroupName !== 'undefined',
|
|
147
144
|
termSetId: typeof args.options.termSetId !== 'undefined',
|
|
148
145
|
termSetName: typeof args.options.termSetName !== 'undefined',
|
|
149
|
-
includeChildTerms: !!args.options.includeChildTerms,
|
|
150
146
|
withChildTerms: !!args.options.withChildTerms
|
|
151
147
|
});
|
|
152
148
|
});
|
|
@@ -161,8 +157,6 @@ _SpoTermListCommand_instances = new WeakSet(), _SpoTermListCommand_initTelemetry
|
|
|
161
157
|
option: '--termSetId [termSetId]'
|
|
162
158
|
}, {
|
|
163
159
|
option: '--termSetName [termSetName]'
|
|
164
|
-
}, {
|
|
165
|
-
option: '--includeChildTerms'
|
|
166
160
|
}, {
|
|
167
161
|
option: '--withChildTerms'
|
|
168
162
|
});
|
|
@@ -265,6 +265,7 @@ export default {
|
|
|
265
265
|
SITE_APPPERMISSION_LIST: `${prefix} site apppermission list`,
|
|
266
266
|
SITE_APPPERMISSION_REMOVE: `${prefix} site apppermission remove`,
|
|
267
267
|
SITE_APPPERMISSION_SET: `${prefix} site apppermission set`,
|
|
268
|
+
SITE_ARCHIVE: `${prefix} site archive`,
|
|
268
269
|
SITE_COMMSITE_ENABLE: `${prefix} site commsite enable`,
|
|
269
270
|
SITE_ENSURE: `${prefix} site ensure`,
|
|
270
271
|
SITE_GET: `${prefix} site get`,
|
|
@@ -273,6 +274,7 @@ export default {
|
|
|
273
274
|
SITE_HUBSITE_DISCONNECT: `${prefix} site hubsite disconnect`,
|
|
274
275
|
SITE_HUBSITE_THEME_SYNC: `${prefix} site hubsite theme sync`,
|
|
275
276
|
SITE_LIST: `${prefix} site list`,
|
|
277
|
+
SITE_MEMBERSHIP_LIST: `${prefix} site membership list`,
|
|
276
278
|
SITE_INPLACERECORDSMANAGEMENT_SET: `${prefix} site inplacerecordsmanagement set`,
|
|
277
279
|
SITE_RECYCLEBINITEM_CLEAR: `${prefix} site recyclebinitem clear`,
|
|
278
280
|
SITE_RECYCLEBINITEM_LIST: `${prefix} site recyclebinitem list`,
|
|
@@ -280,9 +282,11 @@ export default {
|
|
|
280
282
|
SITE_RECYCLEBINITEM_REMOVE: `${prefix} site recyclebinitem remove`,
|
|
281
283
|
SITE_RECYCLEBINITEM_RESTORE: `${prefix} site recyclebinitem restore`,
|
|
282
284
|
SITE_REMOVE: `${prefix} site remove`,
|
|
285
|
+
SITE_RENAME: `${prefix} site rename`,
|
|
283
286
|
SITE_SET: `${prefix} site set`,
|
|
284
287
|
SITE_SHARINGPERMISSION_SET: `${prefix} site sharingpermission set`,
|
|
285
288
|
SITE_CHROME_SET: `${prefix} site chrome set`,
|
|
289
|
+
SITE_UNARCHIVE: `${prefix} site unarchive`,
|
|
286
290
|
SITEDESIGN_ADD: `${prefix} sitedesign add`,
|
|
287
291
|
SITEDESIGN_APPLY: `${prefix} sitedesign apply`,
|
|
288
292
|
SITEDESIGN_GET: `${prefix} sitedesign get`,
|
|
@@ -325,17 +329,11 @@ export default {
|
|
|
325
329
|
TENANT_COMMANDSET_LIST: `${prefix} tenant commandset list`,
|
|
326
330
|
TENANT_COMMANDSET_REMOVE: `${prefix} tenant commandset remove`,
|
|
327
331
|
TENANT_COMMANDSET_SET: `${prefix} tenant commandset set`,
|
|
328
|
-
TENANT_HOMESITE_LIST: `${prefix} tenant homesite list`,
|
|
329
332
|
TENANT_RECYCLEBINITEM_LIST: `${prefix} tenant recyclebinitem list`,
|
|
330
333
|
TENANT_RECYCLEBINITEM_REMOVE: `${prefix} tenant recyclebinitem remove`,
|
|
331
334
|
TENANT_RECYCLEBINITEM_RESTORE: `${prefix} tenant recyclebinitem restore`,
|
|
332
335
|
TENANT_SETTINGS_LIST: `${prefix} tenant settings list`,
|
|
333
336
|
TENANT_SETTINGS_SET: `${prefix} tenant settings set`,
|
|
334
|
-
TENANT_SITE_ARCHIVE: `${prefix} tenant site archive`,
|
|
335
|
-
TENANT_SITE_LIST: `${prefix} tenant site list`,
|
|
336
|
-
TENANT_SITE_RENAME: `${prefix} tenant site rename`,
|
|
337
|
-
TENANT_SITE_MEMBERSHIP_LIST: `${prefix} tenant site membership list`,
|
|
338
|
-
TENANT_SITE_UNARCHIVE: `${prefix} tenant site unarchive`,
|
|
339
337
|
TERM_ADD: `${prefix} term add`,
|
|
340
338
|
TERM_GET: `${prefix} term get`,
|
|
341
339
|
TERM_LIST: `${prefix} term list`,
|
|
@@ -29,9 +29,6 @@ class TeamsChatMemberAddCommand extends GraphCommand {
|
|
|
29
29
|
if (this.verbose) {
|
|
30
30
|
await logger.logToStderr(`Adding member ${args.options.userId || args.options.userName} to chat with id ${args.options.chatId}...`);
|
|
31
31
|
}
|
|
32
|
-
if (args.options.includeAllHistory) {
|
|
33
|
-
await this.warn(logger, `Parameter 'includeAllHistory' is deprecated. Please use 'withAllHistory' instead`);
|
|
34
|
-
}
|
|
35
32
|
const chatMemberAddOptions = {
|
|
36
33
|
url: `${this.resource}/v1.0/chats/${args.options.chatId}/members`,
|
|
37
34
|
headers: {
|
|
@@ -41,7 +38,7 @@ class TeamsChatMemberAddCommand extends GraphCommand {
|
|
|
41
38
|
data: {
|
|
42
39
|
'@odata.type': '#microsoft.graph.aadUserConversationMember',
|
|
43
40
|
'user@odata.bind': `https://graph.microsoft.com/v1.0/users/${args.options.userId || formatting.encodeQueryParameter(args.options.userName)}`,
|
|
44
|
-
visibleHistoryStartDateTime:
|
|
41
|
+
visibleHistoryStartDateTime: args.options.withAllHistory ? '0001-01-01T00:00:00Z' : args.options.visibleHistoryStartDateTime,
|
|
45
42
|
roles: [args.options.role || 'owner']
|
|
46
43
|
}
|
|
47
44
|
};
|
|
@@ -59,7 +56,6 @@ _a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakS
|
|
|
59
56
|
userName: typeof args.options.userName !== 'undefined',
|
|
60
57
|
role: typeof args.options.role !== 'undefined',
|
|
61
58
|
visibleHistoryStartDateTime: typeof args.options.visibleHistoryStartDateTime !== 'undefined',
|
|
62
|
-
includeAllHistory: !!args.options.includeAllHistory,
|
|
63
59
|
withAllHistory: !!args.options.withAllHistory
|
|
64
60
|
});
|
|
65
61
|
});
|
|
@@ -75,8 +71,6 @@ _a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakS
|
|
|
75
71
|
autocomplete: _a.roles
|
|
76
72
|
}, {
|
|
77
73
|
option: '--visibleHistoryStartDateTime [visibleHistoryStartDateTime]'
|
|
78
|
-
}, {
|
|
79
|
-
option: '--includeAllHistory'
|
|
80
74
|
}, {
|
|
81
75
|
option: '--withAllHistory'
|
|
82
76
|
});
|
|
@@ -101,8 +95,8 @@ _a = TeamsChatMemberAddCommand, _TeamsChatMemberAddCommand_instances = new WeakS
|
|
|
101
95
|
});
|
|
102
96
|
}, _TeamsChatMemberAddCommand_initOptionSets = function _TeamsChatMemberAddCommand_initOptionSets() {
|
|
103
97
|
this.optionSets.push({ options: ['userId', 'userName'] }, {
|
|
104
|
-
options: ['visibleHistoryStartDateTime', '
|
|
105
|
-
runsWhen: (args) => args.options.visibleHistoryStartDateTime || args.options.
|
|
98
|
+
options: ['visibleHistoryStartDateTime', 'withAllHistory'],
|
|
99
|
+
runsWhen: (args) => args.options.visibleHistoryStartDateTime || args.options.withAllHistory
|
|
106
100
|
});
|
|
107
101
|
};
|
|
108
102
|
TeamsChatMemberAddCommand.roles = ['owner', 'guest'];
|
|
@@ -24,9 +24,6 @@ class VivaEngageNetworkListCommand extends VivaEngageCommand {
|
|
|
24
24
|
__classPrivateFieldGet(this, _VivaEngageNetworkListCommand_instances, "m", _VivaEngageNetworkListCommand_initOptions).call(this);
|
|
25
25
|
}
|
|
26
26
|
async commandAction(logger, args) {
|
|
27
|
-
if (args.options.includeSuspended) {
|
|
28
|
-
await this.warn(logger, `Parameter 'includeSuspended' is deprecated. Please use 'withSuspended' instead`);
|
|
29
|
-
}
|
|
30
27
|
const requestOptions = {
|
|
31
28
|
url: `${this.resource}/v1/networks/current.json`,
|
|
32
29
|
headers: {
|
|
@@ -35,7 +32,7 @@ class VivaEngageNetworkListCommand extends VivaEngageCommand {
|
|
|
35
32
|
},
|
|
36
33
|
responseType: 'json',
|
|
37
34
|
data: {
|
|
38
|
-
includeSuspended: (args.options.
|
|
35
|
+
includeSuspended: (args.options.withSuspended !== undefined && args.options.withSuspended !== false)
|
|
39
36
|
}
|
|
40
37
|
};
|
|
41
38
|
try {
|
|
@@ -50,14 +47,11 @@ class VivaEngageNetworkListCommand extends VivaEngageCommand {
|
|
|
50
47
|
_VivaEngageNetworkListCommand_instances = new WeakSet(), _VivaEngageNetworkListCommand_initTelemetry = function _VivaEngageNetworkListCommand_initTelemetry() {
|
|
51
48
|
this.telemetry.push((args) => {
|
|
52
49
|
Object.assign(this.telemetryProperties, {
|
|
53
|
-
includeSuspended: args.options.includeSuspended,
|
|
54
50
|
withSuspended: args.options.withSuspended
|
|
55
51
|
});
|
|
56
52
|
});
|
|
57
53
|
}, _VivaEngageNetworkListCommand_initOptions = function _VivaEngageNetworkListCommand_initOptions() {
|
|
58
54
|
this.options.unshift({
|
|
59
|
-
option: '--includeSuspended'
|
|
60
|
-
}, {
|
|
61
55
|
option: '--withSuspended'
|
|
62
56
|
});
|
|
63
57
|
};
|
|
@@ -19,7 +19,7 @@ export const entraAdministrativeUnit = {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
const queryString = queryParameters.length > 0
|
|
22
|
-
?
|
|
22
|
+
? `&${queryParameters.join('&')}`
|
|
23
23
|
: '';
|
|
24
24
|
const graphResource = 'https://graph.microsoft.com';
|
|
25
25
|
const administrativeUnits = await odata.getAllItems(`${graphResource}/v1.0/directory/administrativeUnits?$filter=displayName eq '${formatting.encodeQueryParameter(displayName)}'${queryString}`);
|
package/dist/utils/spe.js
CHANGED
|
@@ -1,58 +1,24 @@
|
|
|
1
|
-
import request from '../request.js';
|
|
2
1
|
import { formatting } from './formatting.js';
|
|
3
2
|
import { cli } from '../cli/cli.js';
|
|
4
|
-
import config from '../config.js';
|
|
5
3
|
import { odata } from './odata.js';
|
|
6
4
|
const graphResource = 'https://graph.microsoft.com';
|
|
7
5
|
export const spe = {
|
|
8
|
-
/**
|
|
9
|
-
* Get all container types.
|
|
10
|
-
* @param spoAdminUrl The URL of the SharePoint Online admin center site (e.g. https://contoso-admin.sharepoint.com)
|
|
11
|
-
* @returns Array of container types
|
|
12
|
-
*/
|
|
13
|
-
async getAllContainerTypes(spoAdminUrl) {
|
|
14
|
-
const requestOptions = {
|
|
15
|
-
url: `${spoAdminUrl}/_vti_bin/client.svc/ProcessQuery`,
|
|
16
|
-
headers: {
|
|
17
|
-
accept: 'application/json;odata=nometadata'
|
|
18
|
-
},
|
|
19
|
-
responseType: 'json',
|
|
20
|
-
data: `<Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="${config.applicationName}" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="46" ObjectPathId="45" /><Method Name="GetSPOContainerTypes" Id="47" ObjectPathId="45"><Parameters><Parameter Type="Enum">1</Parameter></Parameters></Method></Actions><ObjectPaths><Constructor Id="45" TypeId="{268004ae-ef6b-4e9b-8425-127220d84719}" /></ObjectPaths></Request>`
|
|
21
|
-
};
|
|
22
|
-
const json = await request.post(requestOptions);
|
|
23
|
-
const response = json[0];
|
|
24
|
-
if (response.ErrorInfo) {
|
|
25
|
-
throw new Error(response.ErrorInfo.ErrorMessage);
|
|
26
|
-
}
|
|
27
|
-
const containerTypes = json[json.length - 1];
|
|
28
|
-
// Format the response to remove CSOM GUIDs and convert them to real GUIDs
|
|
29
|
-
containerTypes.forEach(ct => {
|
|
30
|
-
delete ct._ObjectType_;
|
|
31
|
-
ct.AzureSubscriptionId = formatting.extractCsomGuid(ct.AzureSubscriptionId);
|
|
32
|
-
ct.ContainerTypeId = formatting.extractCsomGuid(ct.ContainerTypeId);
|
|
33
|
-
ct.OwningAppId = formatting.extractCsomGuid(ct.OwningAppId);
|
|
34
|
-
ct.OwningTenantId = formatting.extractCsomGuid(ct.OwningTenantId);
|
|
35
|
-
});
|
|
36
|
-
return containerTypes;
|
|
37
|
-
},
|
|
38
6
|
/**
|
|
39
7
|
* Get the ID of a container type by its name.
|
|
40
|
-
* @param spoAdminUrl SharePoint Online admin center URL (e.g. https://contoso-admin.sharepoint.com)
|
|
41
8
|
* @param name Name of the container type to search for
|
|
42
9
|
* @returns ID of the container type
|
|
43
10
|
*/
|
|
44
|
-
async getContainerTypeIdByName(
|
|
45
|
-
const
|
|
46
|
-
const containerTypes = allContainerTypes.filter(ct => ct.DisplayName.toLowerCase() === name.toLowerCase());
|
|
11
|
+
async getContainerTypeIdByName(name) {
|
|
12
|
+
const containerTypes = await odata.getAllItems(`${graphResource}/beta/storage/fileStorage/containerTypes?$select=id,name&$filter=name eq '${formatting.encodeQueryParameter(name)}'`);
|
|
47
13
|
if (containerTypes.length === 0) {
|
|
48
14
|
throw new Error(`The specified container type '${name}' does not exist.`);
|
|
49
15
|
}
|
|
50
16
|
if (containerTypes.length > 1) {
|
|
51
|
-
const containerTypeKeyValuePair = formatting.convertArrayToHashTable('
|
|
17
|
+
const containerTypeKeyValuePair = formatting.convertArrayToHashTable('id', containerTypes);
|
|
52
18
|
const containerType = await cli.handleMultipleResultsFound(`Multiple container types with name '${name}' found.`, containerTypeKeyValuePair);
|
|
53
|
-
return containerType.
|
|
19
|
+
return containerType.id;
|
|
54
20
|
}
|
|
55
|
-
return containerTypes[0].
|
|
21
|
+
return containerTypes[0].id;
|
|
56
22
|
},
|
|
57
23
|
/**
|
|
58
24
|
* Get the ID of a container by its name.
|
|
@@ -14,28 +14,21 @@ m365 entra group member add [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-i, --groupId [groupId]`
|
|
17
|
-
: The ID of the Microsoft Entra group. Specify `groupId
|
|
18
|
-
|
|
19
|
-
`-n, --groupDisplayName [groupDisplayName]`
|
|
20
|
-
: (deprecated. Use option `groupName` instead) The display name of the Microsoft Entra group. Specify `groupId`, `groupDisplayName` or `groupName` but not multiple.
|
|
21
|
-
|
|
22
|
-
`--groupName [groupName]`
|
|
23
|
-
: The display name of the Microsoft Entra group. Specify `groupId`, `groupDisplayName` or `groupName` but not multiple.
|
|
24
|
-
|
|
25
|
-
`--ids [ids]`
|
|
26
|
-
: (deprecated. Use option `userIds` instead) Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `ids`, `userIds`,`userNames`, `subgroupIds`, or `subgroupNames` but not multiple.
|
|
17
|
+
: The ID of the Microsoft Entra group. Specify `groupId` or `groupName` but not both.
|
|
27
18
|
|
|
19
|
+
`-n, --groupName [groupName]`
|
|
20
|
+
: The display name of the Microsoft Entra group. Specify `groupId` or `groupName` but not both.
|
|
28
21
|
`--userIds [userIds]`
|
|
29
|
-
: Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `
|
|
22
|
+
: Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify either `userIds`,`userNames`, `subgroupIds`, or `subgroupNames` but not multiple.
|
|
30
23
|
|
|
31
24
|
`--userNames [userNames]`
|
|
32
|
-
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `
|
|
25
|
+
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `userIds`,`userNames`, `subgroupIds`, or `subgroupNames` but not multiple.
|
|
33
26
|
|
|
34
27
|
`--subgroupIds [subgroupIds]`
|
|
35
|
-
: Comma-separated list of Microsoft Entra group IDs to add. Specify either `
|
|
28
|
+
: Comma-separated list of Microsoft Entra group IDs to add. Specify either `userIds`,`userNames`, `subgroupIds`, or `subgroupNames` but not multiple.
|
|
36
29
|
|
|
37
30
|
`--subgroupNames [subgroupNames]`
|
|
38
|
-
: Comma-separated list of Microsoft Entra group titles to add. Specify either `
|
|
31
|
+
: Comma-separated list of Microsoft Entra group titles to add. Specify either `userIds`,`userNames`, `subgroupIds`, or `subgroupNames` but not multiple.
|
|
39
32
|
|
|
40
33
|
`-r, --role <role>`
|
|
41
34
|
: The role to be assigned to the new users. Valid values: `Owner`, `Member`.
|
|
@@ -45,12 +38,6 @@ m365 entra group member add [options]
|
|
|
45
38
|
|
|
46
39
|
## Examples
|
|
47
40
|
|
|
48
|
-
Add a single member specified by ID as a member to a group specified by display name.
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
m365 entra group member add --groupDisplayName Developers --userIds 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
|
|
52
|
-
```
|
|
53
|
-
|
|
54
41
|
Add a single member specified by ID as a member to a group specified by group name.
|
|
55
42
|
|
|
56
43
|
```sh
|
|
@@ -63,12 +50,6 @@ Add multiple members specified by ID as members to a group specified by ID.
|
|
|
63
50
|
m365 entra group member add --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userIds "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
|
|
64
51
|
```
|
|
65
52
|
|
|
66
|
-
Add a single member specified by UPN as an owner to a group specified by display name.
|
|
67
|
-
|
|
68
|
-
```sh
|
|
69
|
-
m365 entra group member add --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
|
|
70
|
-
```
|
|
71
|
-
|
|
72
53
|
Add a single member specified by UPN as an owner to a group specified by group name.
|
|
73
54
|
|
|
74
55
|
```sh
|
|
@@ -14,22 +14,16 @@ m365 entra group member set [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-i, --groupId [groupId]`
|
|
17
|
-
: The ID of the Entra ID group. Specify `groupId`,
|
|
17
|
+
: The ID of the Entra ID group. Specify `groupId`, or `groupName` but not both.
|
|
18
18
|
|
|
19
|
-
`-n, --
|
|
20
|
-
:
|
|
21
|
-
|
|
22
|
-
`--groupName [groupName]`
|
|
23
|
-
: The display name of the Microsoft Entra group. Specify `groupId`, `groupDisplayName` or `groupName` but not multiple.
|
|
24
|
-
|
|
25
|
-
`--ids [ids]`
|
|
26
|
-
: (deprecated. Use option `userIds` instead) Comma-separated list of user IDs. Specify either `ids`, `userIds` or `userNames` but not multiple.
|
|
19
|
+
`-n, --groupName [groupName]`
|
|
20
|
+
: The display name of the Microsoft Entra group. Specify `groupId`, `groupName` but not both.
|
|
27
21
|
|
|
28
22
|
`--userIds [userIds]`
|
|
29
|
-
: Comma-separated list of user IDs. Specify either `
|
|
23
|
+
: Comma-separated list of user IDs. Specify either `userIds` or `userNames` but not multiple.
|
|
30
24
|
|
|
31
25
|
`--userNames [userNames]`
|
|
32
|
-
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `
|
|
26
|
+
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify either `userIds` or `userNames` but not both.
|
|
33
27
|
|
|
34
28
|
`-r, --role <role>`
|
|
35
29
|
: The new role to be assigned to the members. Valid values: `Owner`, `Member`.
|
|
@@ -39,12 +33,6 @@ m365 entra group member set [options]
|
|
|
39
33
|
|
|
40
34
|
## Examples
|
|
41
35
|
|
|
42
|
-
Update a single member specified by ID to a member of a group specified by display name
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
m365 entra group member set --groupDisplayName Developers --userIds 098b9f52-f48c-4401-819f-29c33794c3f5 --role Member
|
|
46
|
-
```
|
|
47
|
-
|
|
48
36
|
Update a single member specified by ID to a member of a group specified by group name
|
|
49
37
|
|
|
50
38
|
```sh
|
|
@@ -57,12 +45,6 @@ Update multiple members specified by ID to members of a group specified by ID
|
|
|
57
45
|
m365 entra group member set --groupId a03c0c35-ef9a-419b-8cab-f89e0a8d2d2a --userIds "098b9f52-f48c-4401-819f-29c33794c3f5,f1e06e31-3abf-4746-83c2-1513d71f38b8" --role Member
|
|
58
46
|
```
|
|
59
47
|
|
|
60
|
-
Update a single member specified by UPN to an owner of a group specified by display name
|
|
61
|
-
|
|
62
|
-
```sh
|
|
63
|
-
m365 entra group member set --groupDisplayName Developers --userNames john.doe@contoso.com --role Owner
|
|
64
|
-
```
|
|
65
|
-
|
|
66
48
|
Update a single member specified by UPN to an owner of a group specified by group name
|
|
67
49
|
|
|
68
50
|
```sh
|
|
@@ -21,9 +21,6 @@ m365 entra m365group get [options]
|
|
|
21
21
|
`-n, --displayName [displayName]`
|
|
22
22
|
: Display name of the Microsoft 365 Group or Microsoft Teams team to retrieve information for. Specify either `id` or `displayName`, but not both.
|
|
23
23
|
|
|
24
|
-
`--includeSiteUrl`
|
|
25
|
-
: (deprecated. Use option `withSiteUrl` instead) Set to retrieve the site URL for the group.
|
|
26
|
-
|
|
27
24
|
`--withSiteUrl`
|
|
28
25
|
: Set to retrieve the site URL for the group.
|
|
29
26
|
```
|
|
@@ -21,9 +21,6 @@ m365 entra m365group list [options]
|
|
|
21
21
|
`-m, --mailNickname [displayName]`
|
|
22
22
|
: Retrieve only groups with mailNickname starting with the specified value.
|
|
23
23
|
|
|
24
|
-
`--includeSiteUrl`
|
|
25
|
-
: (deprecated. Use option `withSiteUrl` instead) Set to retrieve the site URL for each group.
|
|
26
|
-
|
|
27
24
|
`--withSiteUrl`
|
|
28
25
|
: Set to retrieve the site URL for each group.
|
|
29
26
|
|
|
@@ -27,9 +27,6 @@ m365 entra pim role assignment eligibility list [options]
|
|
|
27
27
|
`--groupName [groupName]`
|
|
28
28
|
: Display name of the group for which to list eligible roles. Specify either `userId`, `userName`, `groupId` or `groupName`. If not specified, all eligible roles will be listed.
|
|
29
29
|
|
|
30
|
-
`--includePrincipalDetails`
|
|
31
|
-
: (deprecated. Use option `withPrincipalDetails` instead) An optional flag to include details of the principals that were eligible for a role.
|
|
32
|
-
|
|
33
30
|
`--withPrincipalDetails`
|
|
34
31
|
: An optional flag to include details of the principals that were eligible for a role.
|
|
35
32
|
```
|
|
@@ -30,9 +30,6 @@ m365 entra pim role assignment list [options]
|
|
|
30
30
|
`-s, --startDateTime [startDateTime]`
|
|
31
31
|
: An optional ISO 8601 formatted date filter to search from.
|
|
32
32
|
|
|
33
|
-
`--includePrincipalDetails`
|
|
34
|
-
: (deprecated. Use option `withPrincipalDetails` instead) An optional flag to include details of the principals that were assigned a role.
|
|
35
|
-
|
|
36
33
|
`--withPrincipalDetails`
|
|
37
34
|
: An optional flag to include details of the principals that were assigned a role.
|
|
38
35
|
```
|
|
@@ -33,9 +33,6 @@ m365 entra pim role request list [options]
|
|
|
33
33
|
`-s, --status [status]`
|
|
34
34
|
: An optional value to filter the list of requests. Allowed values are: `Canceled`, `Denied`, `Failed`, `Granted`, `PendingAdminDecision`, `PendingApproval`, `PendingProvisioning`, `PendingScheduleCreation`, `Provisioned`, `Revoked`, and `ScheduleCreated`.
|
|
35
35
|
|
|
36
|
-
`--includePrincipalDetails`
|
|
37
|
-
: (deprecated. Use option `withPrincipalDetails` instead) An optional flag to include details of the principals that were assigned a role.
|
|
38
|
-
|
|
39
36
|
`--withPrincipalDetails`
|
|
40
37
|
: An optional flag to include details of the principals that were assigned a role.
|
|
41
38
|
```
|