@pnp/cli-microsoft365 9.0.0-beta.2f8dd1e → 9.0.0-beta.59b026e
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/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/Auth.js +10 -18
- package/dist/Command.js +49 -2
- package/dist/chili/chili.js +0 -23
- package/dist/cli/cli.js +61 -101
- package/dist/config.js +1 -1
- package/dist/m365/app/commands/permission/permission-add.js +9 -9
- package/dist/m365/commands/login.js +44 -96
- package/dist/m365/commands/setup.js +0 -4
- package/dist/m365/commands/status.js +2 -2
- package/dist/m365/connection/commands/connection-remove.js +6 -2
- package/dist/m365/connection/commands/connection-set.js +4 -1
- package/dist/m365/connection/commands/connection-use.js +25 -4
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-add.js +13 -13
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-get.js +18 -18
- package/dist/m365/entra/commands/enterpriseapp/enterpriseapp-list.js +1 -1
- package/dist/m365/entra/commands/group/group-user-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +4 -4
- package/dist/m365/entra/commands/m365group/m365group-recyclebinitem-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-set.js +66 -29
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +6 -9
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
- package/dist/m365/entra/commands/multitenant/MultitenantOrganization.js +2 -0
- package/dist/m365/entra/commands/multitenant/multitenant-add.js +65 -0
- package/dist/m365/entra/commands/multitenant/multitenant-get.js +32 -0
- package/dist/m365/entra/commands/multitenant/multitenant-remove.js +118 -0
- package/dist/m365/entra/commands/multitenant/multitenant-set.js +72 -0
- package/dist/m365/entra/commands.js +4 -0
- package/dist/m365/external/commands/connection/connection-doctor.js +10 -24
- package/dist/m365/flow/commands/flow-get.js +1 -1
- package/dist/m365/flow/commands/flow-list.js +23 -24
- package/dist/m365/graph/commands/subscription/subscription-add.js +4 -2
- package/dist/m365/outlook/commands/message/message-get.js +11 -11
- package/dist/m365/spe/ContainerTypeProperties.js +2 -0
- package/dist/m365/spe/commands/containertype/containertype-list.js +49 -0
- package/dist/m365/spe/commands.js +2 -1
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +1 -1
- package/dist/m365/spfx/commands/project/base-project-command.js +36 -126
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -10
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +16 -21
- package/dist/m365/spo/commands/cdn/cdn-get.js +12 -15
- package/dist/m365/spo/commands/cdn/cdn-set.js +6 -4
- package/dist/m365/spo/commands/commandset/commandset-get.js +31 -17
- package/dist/m365/spo/commands/contenttype/contenttype-field-list.js +124 -0
- package/dist/m365/spo/commands/field/field-list.js +1 -1
- package/dist/m365/spo/commands/file/file-copy.js +55 -34
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-set.js +0 -4
- package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
- package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
- package/dist/m365/spo/commands/group/group-member-add.js +103 -99
- package/dist/m365/spo/commands/list/ListInstance.js +6 -1
- package/dist/m365/spo/commands/list/list-get.js +9 -3
- package/dist/m365/spo/commands/list/list-list.js +1 -4
- package/dist/m365/spo/commands/list/list-roleassignment-add.js +46 -21
- package/dist/m365/spo/commands/list/list-roleassignment-remove.js +48 -46
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -3
- package/dist/m365/spo/commands/page/page-text-add.js +2 -3
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +48 -24
- package/dist/m365/spo/commands/site/site-remove.js +1 -7
- package/dist/m365/spo/commands/spo-search.js +3 -4
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +19 -5
- package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +20 -6
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +2 -22
- package/dist/m365/spo/commands.js +3 -1
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +119 -0
- package/dist/m365/teams/commands/message/message-remove.js +112 -0
- package/dist/m365/teams/commands.js +2 -0
- package/dist/m365/viva/commands/engage/engage-community-add.js +166 -0
- package/dist/m365/viva/commands.js +1 -0
- package/dist/utils/drive.js +61 -0
- package/dist/utils/formatting.js +30 -1
- package/dist/utils/spo.js +143 -6
- package/dist/utils/teams.js +49 -0
- package/dist/utils/validation.js +19 -0
- package/dist/utils/zod.js +124 -0
- package/docs/docs/cmd/app/permission/permission-add.mdx +5 -5
- package/docs/docs/cmd/connection/connection-use.mdx +8 -2
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-add.mdx +12 -12
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-get.mdx +14 -14
- package/docs/docs/cmd/entra/enterpriseapp/enterpriseapp-list.mdx +5 -5
- package/docs/docs/cmd/entra/group/group-user-list.mdx +7 -7
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +5 -5
- package/docs/docs/cmd/entra/m365group/m365group-recyclebinitem-list.mdx +3 -3
- package/docs/docs/cmd/entra/m365group/m365group-set.mdx +37 -7
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +1 -1
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
- package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +107 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +94 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +58 -0
- package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +53 -0
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +9 -9
- package/docs/docs/cmd/flow/flow-get.mdx +149 -283
- package/docs/docs/cmd/flow/flow-list.mdx +114 -56
- package/docs/docs/cmd/graph/subscription/subscription-add.mdx +18 -0
- package/docs/docs/cmd/outlook/message/message-get.mdx +5 -5
- package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
- package/docs/docs/cmd/spe/containertype/containertype-list.mdx +102 -0
- package/docs/docs/cmd/spfx/project/project-github-workflow-add.mdx +11 -12
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +87 -38
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +22 -28
- package/docs/docs/cmd/spo/cdn/cdn-set.mdx +3 -3
- package/docs/docs/cmd/spo/commandset/commandset-get.mdx +75 -24
- package/docs/docs/cmd/spo/commandset/commandset-list.mdx +26 -32
- package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +172 -0
- package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +3 -3
- package/docs/docs/cmd/spo/field/field-list.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-copy.mdx +119 -12
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-set.mdx +0 -6
- package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
- package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
- package/docs/docs/cmd/spo/group/group-member-add.mdx +34 -27
- package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
- package/docs/docs/cmd/spo/list/list-list.mdx +5 -7
- package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +15 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +15 -3
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +4 -4
- package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +9 -9
- package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +7 -7
- package/docs/docs/cmd/spo/site/site-appcatalog-remove.mdx +11 -2
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-remove.mdx +0 -3
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +79 -30
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +20 -19
- package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +84 -38
- package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +20 -19
- package/docs/docs/cmd/spo/tenant/tenant-recyclebinitem-restore.mdx +2 -49
- package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +138 -0
- package/docs/docs/cmd/teams/meeting/meeting-list.mdx +7 -3
- package/docs/docs/cmd/teams/message/message-remove.mdx +63 -0
- package/docs/docs/cmd/viva/engage/engage-community-add.mdx +168 -0
- package/npm-shrinkwrap.json +588 -1022
- package/package.json +7 -3
package/dist/utils/formatting.js
CHANGED
|
@@ -9,6 +9,8 @@ export var CheckStatus;
|
|
|
9
9
|
(function (CheckStatus) {
|
|
10
10
|
CheckStatus[CheckStatus["Success"] = 0] = "Success";
|
|
11
11
|
CheckStatus[CheckStatus["Failure"] = 1] = "Failure";
|
|
12
|
+
CheckStatus[CheckStatus["Information"] = 2] = "Information";
|
|
13
|
+
CheckStatus[CheckStatus["Warning"] = 3] = "Warning";
|
|
12
14
|
})(CheckStatus || (CheckStatus = {}));
|
|
13
15
|
export const formatting = {
|
|
14
16
|
escapeXml(s) {
|
|
@@ -37,6 +39,22 @@ export const formatting = {
|
|
|
37
39
|
parseJsonWithBom(s) {
|
|
38
40
|
return JSON.parse(s.replace(/^\uFEFF/, ''));
|
|
39
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* Tries to parse a string as JSON. If it fails, returns the original string.
|
|
44
|
+
* @param value JSON string to parse.
|
|
45
|
+
* @returns JSON object or the original string if parsing fails.
|
|
46
|
+
*/
|
|
47
|
+
tryParseJson(value) {
|
|
48
|
+
try {
|
|
49
|
+
if (typeof value !== 'string') {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return JSON.parse(value);
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
40
58
|
filterObject(obj, propertiesToInclude) {
|
|
41
59
|
const objKeys = Object.keys(obj);
|
|
42
60
|
return propertiesToInclude
|
|
@@ -152,7 +170,18 @@ export const formatting = {
|
|
|
152
170
|
process.env.TERM === 'xterm-256color';
|
|
153
171
|
const success = primarySupported ? '✔' : '√';
|
|
154
172
|
const failure = primarySupported ? '✖' : '×';
|
|
155
|
-
|
|
173
|
+
const information = 'i';
|
|
174
|
+
const warning = '!';
|
|
175
|
+
switch (result) {
|
|
176
|
+
case CheckStatus.Success:
|
|
177
|
+
return `${chalk.green(success)} ${message}`;
|
|
178
|
+
case CheckStatus.Failure:
|
|
179
|
+
return `${chalk.red(failure)} ${message}`;
|
|
180
|
+
case CheckStatus.Information:
|
|
181
|
+
return `${chalk.blue(information)} ${message}`;
|
|
182
|
+
case CheckStatus.Warning:
|
|
183
|
+
return `${chalk.yellow(warning)} ${message}`;
|
|
184
|
+
}
|
|
156
185
|
},
|
|
157
186
|
convertArrayToHashTable(key, array) {
|
|
158
187
|
const resultAsKeyValuePair = {};
|
package/dist/utils/spo.js
CHANGED
|
@@ -12,6 +12,16 @@ import { RoleType } from '../m365/spo/commands/roledefinition/RoleType.js';
|
|
|
12
12
|
import { entraGroup } from './entraGroup.js';
|
|
13
13
|
import { SharingCapabilities } from '../m365/spo/commands/site/SharingCapabilities.js';
|
|
14
14
|
import { setTimeout } from 'timers/promises';
|
|
15
|
+
export var CreateCopyJobsNameConflictBehavior;
|
|
16
|
+
(function (CreateCopyJobsNameConflictBehavior) {
|
|
17
|
+
CreateCopyJobsNameConflictBehavior[CreateCopyJobsNameConflictBehavior["Fail"] = 0] = "Fail";
|
|
18
|
+
CreateCopyJobsNameConflictBehavior[CreateCopyJobsNameConflictBehavior["Replace"] = 1] = "Replace";
|
|
19
|
+
CreateCopyJobsNameConflictBehavior[CreateCopyJobsNameConflictBehavior["Rename"] = 2] = "Rename";
|
|
20
|
+
})(CreateCopyJobsNameConflictBehavior || (CreateCopyJobsNameConflictBehavior = {}));
|
|
21
|
+
// Wrapping this into a settings object so we can alter the values in tests
|
|
22
|
+
export const settings = {
|
|
23
|
+
pollingInterval: 3000
|
|
24
|
+
};
|
|
15
25
|
export const spo = {
|
|
16
26
|
async getRequestDigest(siteUrl) {
|
|
17
27
|
const requestOptions = {
|
|
@@ -454,15 +464,46 @@ export const spo = {
|
|
|
454
464
|
const res = await request.get(requestOptions);
|
|
455
465
|
return res.AadObjectId.NameId;
|
|
456
466
|
},
|
|
467
|
+
/**
|
|
468
|
+
* Ensure a user exists on a specific SharePoint site.
|
|
469
|
+
* @param webUrl URL of the SharePoint site.
|
|
470
|
+
* @param logonName Logon name of the user to ensure on the SharePoint site.
|
|
471
|
+
* @returns SharePoint user object.
|
|
472
|
+
*/
|
|
473
|
+
async ensureUser(webUrl, logonName) {
|
|
474
|
+
const requestOptions = {
|
|
475
|
+
url: `${webUrl}/_api/web/EnsureUser`,
|
|
476
|
+
headers: {
|
|
477
|
+
accept: 'application/json;odata=nometadata'
|
|
478
|
+
},
|
|
479
|
+
responseType: 'json',
|
|
480
|
+
data: {
|
|
481
|
+
logonName: logonName
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
return request.post(requestOptions);
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
* Ensure a Microsoft Entra ID group exists on a specific SharePoint site.
|
|
488
|
+
* @param webUrl URL of the SharePoint site.
|
|
489
|
+
* @param group Microsoft Entra ID group.
|
|
490
|
+
* @returns SharePoint user object.
|
|
491
|
+
*/
|
|
492
|
+
async ensureEntraGroup(webUrl, group) {
|
|
493
|
+
if (!group.securityEnabled) {
|
|
494
|
+
throw new Error('Cannot ensure a Microsoft Entra ID group that is not security enabled.');
|
|
495
|
+
}
|
|
496
|
+
return this.ensureUser(webUrl, group.mailEnabled ? `c:0o.c|federateddirectoryclaimprovider|${group.id}` : `c:0t.c|tenant|${group.id}`);
|
|
497
|
+
},
|
|
457
498
|
/**
|
|
458
499
|
* Retrieves the spo user by email.
|
|
459
500
|
* @param webUrl Web url
|
|
460
501
|
* @param email The email of the user
|
|
461
502
|
* @param logger the Logger object
|
|
462
|
-
* @param
|
|
503
|
+
* @param verbose set if verbose logging should be logged
|
|
463
504
|
*/
|
|
464
|
-
async getUserByEmail(webUrl, email, logger,
|
|
465
|
-
if (
|
|
505
|
+
async getUserByEmail(webUrl, email, logger, verbose) {
|
|
506
|
+
if (verbose) {
|
|
466
507
|
await logger.logToStderr(`Retrieving the spo user by email ${email}`);
|
|
467
508
|
}
|
|
468
509
|
const requestUrl = `${webUrl}/_api/web/siteusers/GetByEmail('${formatting.encodeQueryParameter(email)}')`;
|
|
@@ -533,10 +574,10 @@ export const spo = {
|
|
|
533
574
|
* @param webUrl Web url
|
|
534
575
|
* @param name The name of the group
|
|
535
576
|
* @param logger the Logger object
|
|
536
|
-
* @param
|
|
577
|
+
* @param verbose set if verbose logging should be logged
|
|
537
578
|
*/
|
|
538
|
-
async getGroupByName(webUrl, name, logger,
|
|
539
|
-
if (
|
|
579
|
+
async getGroupByName(webUrl, name, logger, verbose) {
|
|
580
|
+
if (verbose) {
|
|
540
581
|
await logger.logToStderr(`Retrieving the group by name ${name}`);
|
|
541
582
|
}
|
|
542
583
|
const requestUrl = `${webUrl}/_api/web/sitegroups/GetByName('${formatting.encodeQueryParameter(name)}')`;
|
|
@@ -1374,6 +1415,38 @@ export const spo = {
|
|
|
1374
1415
|
const site = await request.get(requestOptions);
|
|
1375
1416
|
return site.id;
|
|
1376
1417
|
},
|
|
1418
|
+
/**
|
|
1419
|
+
* Retrieves the server-relative URL of a folder.
|
|
1420
|
+
* @param webUrl Web URL
|
|
1421
|
+
* @param folderUrl Folder URL
|
|
1422
|
+
* @param folderId Folder ID
|
|
1423
|
+
* @param logger The logger object
|
|
1424
|
+
* @param verbose Set for verbose logging
|
|
1425
|
+
* @returns The server-relative URL of the folder
|
|
1426
|
+
*/
|
|
1427
|
+
async getFolderServerRelativeUrl(webUrl, folderUrl, folderId, logger, verbose) {
|
|
1428
|
+
if (verbose && logger) {
|
|
1429
|
+
await logger.logToStderr(`Retrieving server-relative URL for folder ${folderUrl ? `URL: ${folderUrl}` : `ID: ${folderId}`}`);
|
|
1430
|
+
}
|
|
1431
|
+
let requestUrl = `${webUrl}/_api/web/`;
|
|
1432
|
+
if (folderUrl) {
|
|
1433
|
+
const folderServerRelativeUrl = urlUtil.getServerRelativePath(webUrl, folderUrl);
|
|
1434
|
+
requestUrl += `GetFolderByServerRelativePath(decodedUrl='${formatting.encodeQueryParameter(folderServerRelativeUrl)}')`;
|
|
1435
|
+
}
|
|
1436
|
+
else {
|
|
1437
|
+
requestUrl += `GetFolderById('${folderId}')`;
|
|
1438
|
+
}
|
|
1439
|
+
requestUrl += '?$select=ServerRelativeUrl';
|
|
1440
|
+
const requestOptions = {
|
|
1441
|
+
url: requestUrl,
|
|
1442
|
+
headers: {
|
|
1443
|
+
accept: 'application/json;odata=nometadata'
|
|
1444
|
+
},
|
|
1445
|
+
responseType: 'json'
|
|
1446
|
+
};
|
|
1447
|
+
const res = await request.get(requestOptions);
|
|
1448
|
+
return res.ServerRelativeUrl;
|
|
1449
|
+
},
|
|
1377
1450
|
/**
|
|
1378
1451
|
* Retrieves the ObjectIdentity from a SharePoint site
|
|
1379
1452
|
* @param webUrl web url
|
|
@@ -1453,6 +1526,70 @@ export const spo = {
|
|
|
1453
1526
|
};
|
|
1454
1527
|
const itemsResponse = await request.get(requestOptionsItems);
|
|
1455
1528
|
return (itemsResponse);
|
|
1529
|
+
},
|
|
1530
|
+
/**
|
|
1531
|
+
* Create a SharePoint copy job to copy a file/folder to another location.
|
|
1532
|
+
* @param webUrl Absolute web URL where the source file/folder is located.
|
|
1533
|
+
* @param sourceUrl Absolute URL of the source file/folder.
|
|
1534
|
+
* @param destinationUrl Absolute URL of the destination folder.
|
|
1535
|
+
* @param options Options for the copy job.
|
|
1536
|
+
* @returns Copy job information. Use {@link spo.getCopyJobResult} to get the result of the copy job.
|
|
1537
|
+
*/
|
|
1538
|
+
async createCopyJob(webUrl, sourceUrl, destinationUrl, options) {
|
|
1539
|
+
const requestOptions = {
|
|
1540
|
+
url: `${webUrl}/_api/Site/CreateCopyJobs`,
|
|
1541
|
+
headers: {
|
|
1542
|
+
accept: 'application/json;odata=nometadata'
|
|
1543
|
+
},
|
|
1544
|
+
responseType: 'json',
|
|
1545
|
+
data: {
|
|
1546
|
+
destinationUri: destinationUrl,
|
|
1547
|
+
exportObjectUris: [sourceUrl],
|
|
1548
|
+
options: {
|
|
1549
|
+
NameConflictBehavior: options?.nameConflictBehavior ?? CreateCopyJobsNameConflictBehavior.Fail,
|
|
1550
|
+
AllowSchemaMismatch: true,
|
|
1551
|
+
BypassSharedLock: !!options?.bypassSharedLock,
|
|
1552
|
+
IgnoreVersionHistory: !!options?.ignoreVersionHistory,
|
|
1553
|
+
CustomizedItemName: options?.newName ? [options.newName] : undefined,
|
|
1554
|
+
SameWebCopyMoveOptimization: true
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
const response = await request.post(requestOptions);
|
|
1559
|
+
return response.value[0];
|
|
1560
|
+
},
|
|
1561
|
+
/**
|
|
1562
|
+
* Poll until the copy job is finished and return the result.
|
|
1563
|
+
* @param webUrl Absolute web URL where the copy job was created.
|
|
1564
|
+
* @param copyJobInfo Information about the copy job.
|
|
1565
|
+
* @throws Error if the copy job has failed.
|
|
1566
|
+
* @returns Information about the destination object.
|
|
1567
|
+
*/
|
|
1568
|
+
async getCopyJobResult(webUrl, copyJobInfo) {
|
|
1569
|
+
const requestOptions = {
|
|
1570
|
+
url: `${webUrl}/_api/Site/GetCopyJobProgress`,
|
|
1571
|
+
headers: {
|
|
1572
|
+
accept: 'application/json;odata=nometadata'
|
|
1573
|
+
},
|
|
1574
|
+
responseType: 'json',
|
|
1575
|
+
data: {
|
|
1576
|
+
copyJobInfo: copyJobInfo
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1579
|
+
let progress = await request.post(requestOptions);
|
|
1580
|
+
while (progress.JobState !== 0) {
|
|
1581
|
+
await setTimeout(settings.pollingInterval);
|
|
1582
|
+
progress = await request.post(requestOptions);
|
|
1583
|
+
}
|
|
1584
|
+
const logs = progress.Logs.map(l => JSON.parse(l));
|
|
1585
|
+
// Check if the job has failed
|
|
1586
|
+
const errorLog = logs.find(l => l.Event === 'JobError');
|
|
1587
|
+
if (errorLog) {
|
|
1588
|
+
throw new Error(errorLog.Message);
|
|
1589
|
+
}
|
|
1590
|
+
// Get the destination object information
|
|
1591
|
+
const objectInfo = logs.find(l => l.Event === 'JobFinishedObjectInfo');
|
|
1592
|
+
return objectInfo;
|
|
1456
1593
|
}
|
|
1457
1594
|
};
|
|
1458
1595
|
//# sourceMappingURL=spo.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { formatting } from './formatting.js';
|
|
2
|
+
import { odata } from './odata.js';
|
|
3
|
+
import { cli } from '../cli/cli.js';
|
|
4
|
+
const graphResource = 'https://graph.microsoft.com';
|
|
5
|
+
export const teams = {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieve the id of a team by its name.
|
|
8
|
+
* @param displayName Name of the team to retrieve.
|
|
9
|
+
* @throws Error if the team cannot be found.
|
|
10
|
+
* @throws Error when multiple teams with the same name and prompting is disabled.
|
|
11
|
+
* @returns The ID of the team.
|
|
12
|
+
*/
|
|
13
|
+
async getTeamIdByDisplayName(displayName) {
|
|
14
|
+
const teams = await odata.getAllItems(`${graphResource}/v1.0/teams?$filter=displayName eq '${formatting.encodeQueryParameter(displayName)}'&$select=id`);
|
|
15
|
+
if (!teams.length) {
|
|
16
|
+
throw Error(`The specified team '${displayName}' does not exist.`);
|
|
17
|
+
}
|
|
18
|
+
if (teams.length > 1) {
|
|
19
|
+
const resultAsKeyValuePair = formatting.convertArrayToHashTable('id', teams);
|
|
20
|
+
const result = await cli.handleMultipleResultsFound(`Multiple teams with name '${displayName}' found.`, resultAsKeyValuePair);
|
|
21
|
+
return result.id;
|
|
22
|
+
}
|
|
23
|
+
return teams[0].id;
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the channel ID by its name in a Microsoft Teams team.
|
|
27
|
+
* @param teamId The ID of the team.
|
|
28
|
+
* @param name The name of the channel.
|
|
29
|
+
* @returns The ID of the channel.
|
|
30
|
+
* @throws Throws an error if the specified channel does not exist in the team.
|
|
31
|
+
*/
|
|
32
|
+
async getChannelIdByDisplayName(teamId, name) {
|
|
33
|
+
const channelRequestOptions = {
|
|
34
|
+
url: `${graphResource}/v1.0/teams/${teamId}/channels?$filter=displayName eq '${formatting.encodeQueryParameter(name)}'&$select=id`,
|
|
35
|
+
headers: {
|
|
36
|
+
accept: 'application/json;odata.metadata=none'
|
|
37
|
+
},
|
|
38
|
+
responseType: 'json'
|
|
39
|
+
};
|
|
40
|
+
const response = await odata.getAllItems(channelRequestOptions);
|
|
41
|
+
// Only one channel can have the same name in a team
|
|
42
|
+
const channelItem = response[0];
|
|
43
|
+
if (!channelItem) {
|
|
44
|
+
throw Error(`The channel '${name}' does not exist in the Microsoft Teams team with ID '${teamId}'.`);
|
|
45
|
+
}
|
|
46
|
+
return channelItem.id;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=teams.js.map
|
package/dist/utils/validation.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatting } from "./formatting.js";
|
|
1
2
|
export const validation = {
|
|
2
3
|
isValidGuidArray(guidsString) {
|
|
3
4
|
const guids = guidsString.split(',').map(guid => guid.trim());
|
|
@@ -33,6 +34,24 @@ export const validation = {
|
|
|
33
34
|
// verify if the upn is a valid upn. @meusername will be replaced in a later stage with the actual username of the logged in user
|
|
34
35
|
return upnRegEx.test(upn) || upn.toLowerCase().trim() === '@meusername';
|
|
35
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* Validates if the provided number is a valid positive integer (1 or higher).
|
|
39
|
+
* @param integer Integer value.
|
|
40
|
+
* @returns True if integer, false otherwise.
|
|
41
|
+
*/
|
|
42
|
+
isValidPositiveInteger(integer) {
|
|
43
|
+
return !isNaN(Number(integer)) && Number.isInteger(+integer) && +integer > 0;
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Validates an array of integers. The integers must be positive (1 or higher).
|
|
47
|
+
* @param integerString Comma-separated string of integers.
|
|
48
|
+
* @returns True if the integers are valid, an error message with the invalid integers otherwise.
|
|
49
|
+
*/
|
|
50
|
+
isValidPositiveIntegerArray(integerString) {
|
|
51
|
+
const integers = formatting.splitAndTrim(integerString);
|
|
52
|
+
const invalidIntegers = integers.filter(integer => !this.isValidPositiveInteger(integer));
|
|
53
|
+
return invalidIntegers.length > 0 ? invalidIntegers.join(', ') : true;
|
|
54
|
+
},
|
|
36
55
|
isDateInRange(date, monthOffset) {
|
|
37
56
|
const d = new Date(date);
|
|
38
57
|
const cutoffDate = new Date();
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
function parseEffect(def, _options, _currentOption) {
|
|
3
|
+
return def.schema._def;
|
|
4
|
+
}
|
|
5
|
+
function parseIntersection(def, _options, _currentOption) {
|
|
6
|
+
if (def.left._def.typeName !== z.ZodFirstPartyTypeKind.ZodAny) {
|
|
7
|
+
return def.left._def;
|
|
8
|
+
}
|
|
9
|
+
if (def.right._def.typeName !== z.ZodFirstPartyTypeKind.ZodAny) {
|
|
10
|
+
return def.right._def;
|
|
11
|
+
}
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
function parseObject(def, options, _currentOption) {
|
|
15
|
+
const properties = def.shape();
|
|
16
|
+
for (const key in properties) {
|
|
17
|
+
const property = properties[key];
|
|
18
|
+
const option = {
|
|
19
|
+
name: key,
|
|
20
|
+
long: key,
|
|
21
|
+
short: property._def.alias,
|
|
22
|
+
required: true,
|
|
23
|
+
type: 'string'
|
|
24
|
+
};
|
|
25
|
+
parseDef(property._def, options, option);
|
|
26
|
+
options.push(option);
|
|
27
|
+
}
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
function parseString(_def, _options, currentOption) {
|
|
31
|
+
if (currentOption) {
|
|
32
|
+
currentOption.type = 'string';
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
function parseNumber(_def, _options, currentOption) {
|
|
37
|
+
if (currentOption) {
|
|
38
|
+
currentOption.type = 'number';
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
function parseBoolean(_def, _options, currentOption) {
|
|
43
|
+
if (currentOption) {
|
|
44
|
+
currentOption.type = 'boolean';
|
|
45
|
+
}
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
function parseOptional(def, _options, currentOption) {
|
|
49
|
+
if (currentOption) {
|
|
50
|
+
currentOption.required = false;
|
|
51
|
+
}
|
|
52
|
+
return def.innerType._def;
|
|
53
|
+
}
|
|
54
|
+
function parseDefault(def, _options, currentOption) {
|
|
55
|
+
if (currentOption) {
|
|
56
|
+
currentOption.required = false;
|
|
57
|
+
}
|
|
58
|
+
return def.innerType._def;
|
|
59
|
+
}
|
|
60
|
+
function parseEnum(def, _options, currentOption) {
|
|
61
|
+
if (currentOption) {
|
|
62
|
+
currentOption.type = 'string';
|
|
63
|
+
currentOption.autocomplete = def.values;
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
function parseNativeEnum(def, _options, currentOption) {
|
|
68
|
+
if (currentOption) {
|
|
69
|
+
currentOption.type = 'string';
|
|
70
|
+
currentOption.autocomplete = Object.getOwnPropertyNames(def.values);
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
function getParseFn(typeName) {
|
|
75
|
+
switch (typeName) {
|
|
76
|
+
case z.ZodFirstPartyTypeKind.ZodEffects:
|
|
77
|
+
return parseEffect;
|
|
78
|
+
case z.ZodFirstPartyTypeKind.ZodObject:
|
|
79
|
+
return parseObject;
|
|
80
|
+
case z.ZodFirstPartyTypeKind.ZodOptional:
|
|
81
|
+
return parseOptional;
|
|
82
|
+
case z.ZodFirstPartyTypeKind.ZodString:
|
|
83
|
+
return parseString;
|
|
84
|
+
case z.ZodFirstPartyTypeKind.ZodNumber:
|
|
85
|
+
return parseNumber;
|
|
86
|
+
case z.ZodFirstPartyTypeKind.ZodBoolean:
|
|
87
|
+
return parseBoolean;
|
|
88
|
+
case z.ZodFirstPartyTypeKind.ZodEnum:
|
|
89
|
+
return parseEnum;
|
|
90
|
+
case z.ZodFirstPartyTypeKind.ZodNativeEnum:
|
|
91
|
+
return parseNativeEnum;
|
|
92
|
+
case z.ZodFirstPartyTypeKind.ZodDefault:
|
|
93
|
+
return parseDefault;
|
|
94
|
+
case z.ZodFirstPartyTypeKind.ZodIntersection:
|
|
95
|
+
return parseIntersection;
|
|
96
|
+
default:
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function parseDef(def, options, currentOption) {
|
|
101
|
+
let parsedDef = def;
|
|
102
|
+
do {
|
|
103
|
+
const parse = getParseFn(parsedDef.typeName);
|
|
104
|
+
if (!parse) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
parsedDef = parse(parsedDef, options, currentOption);
|
|
108
|
+
if (!parsedDef) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
} while (parsedDef);
|
|
112
|
+
}
|
|
113
|
+
export const zod = {
|
|
114
|
+
alias(alias, type) {
|
|
115
|
+
type._def.alias = alias;
|
|
116
|
+
return type;
|
|
117
|
+
},
|
|
118
|
+
schemaToOptions(schema) {
|
|
119
|
+
const options = [];
|
|
120
|
+
parseDef(schema._def, options);
|
|
121
|
+
return options;
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=zod.js.map
|
|
@@ -16,10 +16,10 @@ m365 app permission add [options]
|
|
|
16
16
|
`--appId [appId]`
|
|
17
17
|
: Client ID of the Microsoft Entra app registered in the .m365rc.json file to retrieve API permissions for.
|
|
18
18
|
|
|
19
|
-
`--
|
|
19
|
+
`--applicationPermissions [applicationPermissions]`
|
|
20
20
|
: Space-separated list of application permissions to add.
|
|
21
21
|
|
|
22
|
-
`--
|
|
22
|
+
`--delegatedPermissions [delegatedPermissions]`
|
|
23
23
|
: Space-separated list of delegated permissions to add.
|
|
24
24
|
|
|
25
25
|
`--grantAdminConsent`
|
|
@@ -37,19 +37,19 @@ If you have multiple apps registered in your .m365rc.json file, you can specify
|
|
|
37
37
|
Adds the specified application permissions to the default app registered in the _.m365rc.json_ file while granting admin consent.
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
|
-
m365 app permission add --
|
|
40
|
+
m365 app permission add --applicationPermissions 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --grantAdminConsent
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Adds the specified delegated permissions to the default app registered in the _.m365rc.json_ file without granting admin consent.
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
m365 app permission add --
|
|
46
|
+
m365 app permission add --delegatedPermissions 'https://graph.microsoft.com/offline_access'
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Adds the specified application and delegated permissions to a specific app registered in the _.m365rc.json_ file while granting admin consent.
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
|
-
m365 app permission add --appId '1663767b-4172-4519-bfd1-28e6ff19055b' --
|
|
52
|
+
m365 app permission add --appId '1663767b-4172-4519-bfd1-28e6ff19055b' --applicationPermissions 'https://graph.microsoft.com/User.ReadWrite.All https://graph.microsoft.com/User.Read.All' --delegatedPermissions 'https://graph.microsoft.com/offline_access' --grantAdminConsent
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
## Response
|
|
@@ -15,7 +15,7 @@ m365 connection use [options]
|
|
|
15
15
|
## Options
|
|
16
16
|
|
|
17
17
|
```md definition-list
|
|
18
|
-
`-n, --name
|
|
18
|
+
`-n, --name [name]`
|
|
19
19
|
: The name of the connection to switch to.
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -23,7 +23,13 @@ m365 connection use [options]
|
|
|
23
23
|
|
|
24
24
|
## Remarks
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
:::tip
|
|
27
|
+
|
|
28
|
+
If you haven't disabled the "prompt" setting, running this command without options will show a list of available connections. You can then select the connection to activate it.
|
|
29
|
+
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
You can update the name of a connection by running [m365 connection set](connection-set.mdx).
|
|
27
33
|
|
|
28
34
|
## Examples
|
|
29
35
|
|
|
@@ -22,39 +22,39 @@ m365 entra sp add [options]
|
|
|
22
22
|
## Options
|
|
23
23
|
|
|
24
24
|
```md definition-list
|
|
25
|
-
|
|
26
|
-
: ID of the app for which the enterprise application should be created
|
|
25
|
+
`-i, --id [id]`
|
|
26
|
+
: ID of the app for which the enterprise application should be created.
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
: Display name of the app for which the enterprise application should be created
|
|
28
|
+
`-n, --displayName [displayName]`
|
|
29
|
+
: Display name of the app for which the enterprise application should be created.
|
|
30
30
|
|
|
31
31
|
`--objectId [objectId]`
|
|
32
|
-
: ObjectId of the app for which the enterprise application should be created
|
|
32
|
+
: ObjectId of the app for which the enterprise application should be created.
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
<Global />
|
|
36
36
|
|
|
37
37
|
## Remarks
|
|
38
38
|
|
|
39
|
-
Specify either the `
|
|
39
|
+
Specify either the `id`, `displayName` or `objectId`. If you specify more than one option value, the command will fail with an error.
|
|
40
40
|
|
|
41
41
|
If you register an application in the portal, an application object as well as an enterprise application object are automatically created in your home tenant. If you register an application using CLI for Microsoft 365 or the Microsoft Graph, you'll need to create the enterprise application separately. To register/create an application using the CLI for Microsoft 365, use the [m365 entra app add](../app/app-add.mdx) command.
|
|
42
42
|
|
|
43
43
|
## Examples
|
|
44
44
|
|
|
45
|
-
Creates an enterprise application for a registered Entra app with
|
|
45
|
+
Creates an enterprise application for a registered Entra app with the specified id.
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
m365 entra enterpriseapp add --
|
|
48
|
+
m365 entra enterpriseapp add --id b2307a39-e878-458b-bc90-03bc578531d6
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Creates an enterprise application for a registered Entra app with
|
|
51
|
+
Creates an enterprise application for a registered Entra app with the specified displayName.
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
m365 entra enterpriseapp add --
|
|
54
|
+
m365 entra enterpriseapp add --displayName "Microsoft Graph"
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Creates an enterprise application for a registered Entra app with objectId
|
|
57
|
+
Creates an enterprise application for a registered Entra app with the specified objectId.
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
60
|
m365 entra enterpriseapp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
@@ -172,7 +172,7 @@ m365 entra enterpriseapp add --objectId b2307a39-e878-458b-bc90-03bc578531d6
|
|
|
172
172
|
<TabItem value="Markdown">
|
|
173
173
|
|
|
174
174
|
```md
|
|
175
|
-
# entra enterpriseapp add --
|
|
175
|
+
# entra enterpriseapp add --id "8da75b6a-4272-4b17-8ee1-20ba66e2b06f"
|
|
176
176
|
|
|
177
177
|
Date: 2023-06-02
|
|
178
178
|
|
|
@@ -22,40 +22,40 @@ m365 entra sp get [options]
|
|
|
22
22
|
## Options
|
|
23
23
|
|
|
24
24
|
```md definition-list
|
|
25
|
-
`-i, --
|
|
26
|
-
: ID of the application for which the enterprise application should be retrieved
|
|
25
|
+
`-i, --id [id]`
|
|
26
|
+
: ID of the application for which the enterprise application should be retrieved.
|
|
27
27
|
|
|
28
|
-
`-n, --
|
|
29
|
-
: Display name of the application for which the enterprise application should be retrieved
|
|
28
|
+
`-n, --displayName [displayName]`
|
|
29
|
+
: Display name of the application for which the enterprise application should be retrieved.
|
|
30
30
|
|
|
31
|
-
`--
|
|
32
|
-
: ObjectId of the application for which the enterprise application should be retrieved
|
|
31
|
+
`--objectId [objectId]`
|
|
32
|
+
: ObjectId of the application for which the enterprise application should be retrieved.
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
<Global />
|
|
36
36
|
|
|
37
37
|
## Remarks
|
|
38
38
|
|
|
39
|
-
Specify either the `
|
|
39
|
+
Specify either the `id`, `objectId` or `displayName`. If you specify more than one option value, the command will fail with an error.
|
|
40
40
|
|
|
41
41
|
## Examples
|
|
42
42
|
|
|
43
|
-
Return details about the enterprise application with
|
|
43
|
+
Return details about the enterprise application with the specified id.
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
m365 entra enterpriseapp get --
|
|
46
|
+
m365 entra enterpriseapp get --id b2307a39-e878-458b-bc90-03bc578531d6
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Return details about the
|
|
49
|
+
Return details about the enterprise application with the specified displayName.
|
|
50
50
|
|
|
51
51
|
```sh
|
|
52
|
-
m365 entra enterpriseapp get --
|
|
52
|
+
m365 entra enterpriseapp get --displayName "Microsoft Graph"
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
Return details about the enterprise application with ObjectId
|
|
55
|
+
Return details about the enterprise application with the specified ObjectId.
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
m365 entra enterpriseapp get --
|
|
58
|
+
m365 entra enterpriseapp get --objectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
## Response
|
|
@@ -198,7 +198,7 @@ m365 entra enterpriseapp get --appObjectId b2307a39-e878-458b-bc90-03bc578531dd
|
|
|
198
198
|
<TabItem value="Markdown">
|
|
199
199
|
|
|
200
200
|
```md
|
|
201
|
-
# entra enterpriseapp get --
|
|
201
|
+
# entra enterpriseapp get --id "ac7c9b4b-83b0-4a5e-ace2-a3530162c8f8"
|
|
202
202
|
|
|
203
203
|
Date: 2023-06-02
|
|
204
204
|
|
|
@@ -22,24 +22,24 @@ m365 entra sp list [options]
|
|
|
22
22
|
## Options
|
|
23
23
|
|
|
24
24
|
```md definition-list
|
|
25
|
-
|
|
26
|
-
: Returns only enterprise applications with the specified name
|
|
25
|
+
`-n, --displayName [displayName]`
|
|
26
|
+
: Returns only enterprise applications with the specified name.
|
|
27
27
|
|
|
28
28
|
`--tag [tag]`
|
|
29
|
-
: Returns only enterprise applications with the specified tag
|
|
29
|
+
: Returns only enterprise applications with the specified tag.
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
<Global />
|
|
33
33
|
|
|
34
34
|
## Examples
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Returns a list of all enterprise applications.
|
|
37
37
|
|
|
38
38
|
```sh
|
|
39
39
|
m365 entra enterpriseapp list
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Returns a list of all enterprise applications that comply with the specified display name and the tag parameters.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 entra enterpriseapp list --displayName "My custom enterprise application" --tag "WindowsAzureActiveDirectoryIntegratedApp"
|