@pnp/cli-microsoft365 7.4.0 → 7.5.0-beta.d4d820f
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/m365/app/commands/app-get.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-get.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-add.js +8 -8
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-get.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-member-list.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-remove.js +2 -2
- package/dist/m365/entra/commands/administrativeunit/administrativeunit-roleassignment-add.js +4 -4
- package/dist/m365/entra/commands/app/app-permission-add.js +3 -7
- package/dist/m365/entra/commands/group/group-get.js +3 -3
- package/dist/m365/entra/commands/group/group-remove.js +2 -2
- package/dist/m365/entra/commands/group/group-user-list.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-conversation-list.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-conversation-post-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-get.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-remove.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-renew.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-set.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-teamify.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-add.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-list.js +3 -3
- package/dist/m365/entra/commands/m365group/m365group-user-remove.js +2 -2
- package/dist/m365/entra/commands/m365group/m365group-user-set.js +2 -2
- package/dist/m365/flow/commands/owner/owner-ensure.js +4 -4
- package/dist/m365/flow/commands/owner/owner-remove.js +4 -4
- package/dist/m365/onenote/commands/notebook/notebook-list.js +2 -2
- package/dist/m365/onenote/commands/page/page-list.js +2 -2
- package/dist/m365/pa/commands/app/app-owner-set.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-ensure.js +4 -4
- package/dist/m365/pa/commands/app/app-permission-remove.js +4 -4
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-add.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +2 -2
- package/dist/m365/planner/commands/plan/plan-list.js +2 -2
- package/dist/m365/planner/commands/plan/plan-remove.js +2 -2
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-add.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-get.js +2 -2
- package/dist/m365/planner/commands/roster/roster-member-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +2 -2
- package/dist/m365/planner/commands/task/task-get.js +2 -2
- package/dist/m365/planner/commands/task/task-list.js +2 -2
- package/dist/m365/planner/commands/task/task-remove.js +2 -2
- package/dist/m365/planner/commands/task/task-set.js +2 -2
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +1 -1
- package/dist/m365/spo/commands/group/group-member-add.js +4 -4
- package/dist/m365/spo/commands/group/group-member-remove.js +2 -2
- package/dist/m365/spo/commands/group/group-set.js +2 -2
- package/dist/m365/spo/commands/site/site-remove.js +2 -2
- package/dist/m365/spo/commands/site/site-set.js +2 -2
- package/dist/m365/spo/commands/user/user-ensure.js +2 -2
- package/dist/m365/teams/commands/app/app-install.js +2 -2
- package/dist/m365/teams/commands/channel/channel-get.js +2 -2
- package/dist/m365/teams/commands/channel/channel-list.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-list.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-member-set.js +2 -2
- package/dist/m365/teams/commands/channel/channel-remove.js +2 -2
- package/dist/m365/teams/commands/channel/channel-set.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-add.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-attendancereport-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-get.js +3 -3
- package/dist/m365/teams/commands/meeting/meeting-list.js +2 -2
- package/dist/m365/teams/commands/meeting/meeting-transcript-list.js +2 -2
- package/dist/m365/teams/commands/tab/tab-get.js +2 -2
- package/dist/m365/teams/commands/team/team-add.js +6 -6
- package/dist/m365/teams/commands/team/team-archive.js +2 -2
- package/dist/m365/teams/commands/team/team-get.js +2 -2
- package/dist/m365/teams/commands/team/team-remove.js +2 -2
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
- package/dist/utils/{aadAdministrativeUnit.js → entraAdministrativeUnit.js} +2 -2
- package/dist/utils/{aadDevice.js → entraDevice.js} +2 -2
- package/dist/utils/{aadGroup.js → entraGroup.js} +2 -2
- package/dist/utils/{aadUser.js → entraUser.js} +2 -2
- package/dist/utils/spo.js +2 -2
- package/docs/docs/cmd/entra/app/app-permission-add.mdx +2 -2
- package/docs/docs/cmd/spo/listitem/listitem-list.mdx +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
|
@@ -6,8 +6,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _PaAppPermissionEnsureCommand_instances, _a, _PaAppPermissionEnsureCommand_initTelemetry, _PaAppPermissionEnsureCommand_initOptions, _PaAppPermissionEnsureCommand_initValidators, _PaAppPermissionEnsureCommand_initOptionSets, _PaAppPermissionEnsureCommand_initTypes;
|
|
7
7
|
import Auth from '../../../../Auth.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
11
11
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
12
12
|
import { validation } from '../../../../utils/validation.js';
|
|
13
13
|
import PowerAppsCommand from '../../../base/PowerAppsCommand.js';
|
|
@@ -78,11 +78,11 @@ class PaAppPermissionEnsureCommand extends PowerAppsCommand {
|
|
|
78
78
|
return options.userId;
|
|
79
79
|
}
|
|
80
80
|
if (options.groupName) {
|
|
81
|
-
const group = await
|
|
81
|
+
const group = await entraGroup.getGroupByDisplayName(options.groupName);
|
|
82
82
|
return group.id;
|
|
83
83
|
}
|
|
84
84
|
if (options.userName) {
|
|
85
|
-
const userId = await
|
|
85
|
+
const userId = await entraUser.getUserIdByUpn(options.userName);
|
|
86
86
|
return userId;
|
|
87
87
|
}
|
|
88
88
|
return accessToken.getTenantIdFromAccessToken(Auth.service.accessTokens[Auth.defaultResource].accessToken);
|
|
@@ -7,8 +7,8 @@ var _PaAppPermissionRemoveCommand_instances, _PaAppPermissionRemoveCommand_initT
|
|
|
7
7
|
import Auth from '../../../../Auth.js';
|
|
8
8
|
import { cli } from '../../../../cli/cli.js';
|
|
9
9
|
import request from '../../../../request.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
11
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
12
12
|
import { accessToken } from '../../../../utils/accessToken.js';
|
|
13
13
|
import { validation } from '../../../../utils/validation.js';
|
|
14
14
|
import PowerAppsCommand from '../../../base/PowerAppsCommand.js';
|
|
@@ -74,11 +74,11 @@ class PaAppPermissionRemoveCommand extends PowerAppsCommand {
|
|
|
74
74
|
return options.userId;
|
|
75
75
|
}
|
|
76
76
|
if (options.groupName) {
|
|
77
|
-
const group = await
|
|
77
|
+
const group = await entraGroup.getGroupByDisplayName(options.groupName);
|
|
78
78
|
return group.id;
|
|
79
79
|
}
|
|
80
80
|
if (options.userName) {
|
|
81
|
-
const userId = await
|
|
81
|
+
const userId = await entraUser.getUserIdByUpn(options.userName);
|
|
82
82
|
return userId;
|
|
83
83
|
}
|
|
84
84
|
return `tenant-${accessToken.getTenantIdFromAccessToken(Auth.service.accessTokens[Auth.defaultResource].accessToken)}`;
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerBucketAddCommand_instances, _PlannerBucketAddCommand_initTelemetry, _PlannerBucketAddCommand_initOptions, _PlannerBucketAddCommand_initValidators, _PlannerBucketAddCommand_initOptionSets, _PlannerBucketAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -67,7 +67,7 @@ class PlannerBucketAddCommand extends GraphCommand {
|
|
|
67
67
|
if (args.options.ownerGroupId) {
|
|
68
68
|
return args.options.ownerGroupId;
|
|
69
69
|
}
|
|
70
|
-
const group = await
|
|
70
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
71
71
|
return group.id;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerBucketGetCommand_instances, _PlannerBucketGetCommand_initTelemetry, _PlannerBucketGetCommand_initOptions, _PlannerBucketGetCommand_initValidators, _PlannerBucketGetCommand_initOptionSets, _PlannerBucketGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -91,7 +91,7 @@ class PlannerBucketGetCommand extends GraphCommand {
|
|
|
91
91
|
if (ownerGroupId) {
|
|
92
92
|
return ownerGroupId;
|
|
93
93
|
}
|
|
94
|
-
const group = await
|
|
94
|
+
const group = await entraGroup.getGroupByDisplayName(ownerGroupName);
|
|
95
95
|
return group.id;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _PlannerBucketListCommand_instances, _PlannerBucketListCommand_initTelemetry, _PlannerBucketListCommand_initOptions, _PlannerBucketListCommand_initValidators, _PlannerBucketListCommand_initOptionSets, _PlannerBucketListCommand_initTypes;
|
|
7
|
-
import {
|
|
7
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -55,7 +55,7 @@ class PlannerBucketListCommand extends GraphCommand {
|
|
|
55
55
|
if (args.options.ownerGroupId) {
|
|
56
56
|
return args.options.ownerGroupId;
|
|
57
57
|
}
|
|
58
|
-
const group = await
|
|
58
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
59
59
|
return group.id;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _PlannerBucketRemoveCommand_instances, _PlannerBucketRemoveCommand_initTelemetry, _PlannerBucketRemoveCommand_initOptions, _PlannerBucketRemoveCommand_initValidators, _PlannerBucketRemoveCommand_initOptionSets, _PlannerBucketRemoveCommand_initTypes;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import {
|
|
9
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
10
|
import { planner } from '../../../../utils/planner.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -104,7 +104,7 @@ class PlannerBucketRemoveCommand extends GraphCommand {
|
|
|
104
104
|
if (ownerGroupId) {
|
|
105
105
|
return ownerGroupId;
|
|
106
106
|
}
|
|
107
|
-
const group = await
|
|
107
|
+
const group = await entraGroup.getGroupByDisplayName(ownerGroupName);
|
|
108
108
|
return group.id;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerBucketSetCommand_instances, _PlannerBucketSetCommand_initTelemetry, _PlannerBucketSetCommand_initOptions, _PlannerBucketSetCommand_initValidators, _PlannerBucketSetCommand_initOptionSets, _PlannerBucketSetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -101,7 +101,7 @@ class PlannerBucketSetCommand extends GraphCommand {
|
|
|
101
101
|
if (ownerGroupId) {
|
|
102
102
|
return ownerGroupId;
|
|
103
103
|
}
|
|
104
|
-
const group = await
|
|
104
|
+
const group = await entraGroup.getGroupByDisplayName(ownerGroupName);
|
|
105
105
|
return group.id;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _PlannerPlanAddCommand_instances, _PlannerPlanAddCommand_initTelemetry, _PlannerPlanAddCommand_initOptions, _PlannerPlanAddCommand_initValidators, _PlannerPlanAddCommand_initOptionSets, _PlannerPlanAddCommand_initTypes;
|
|
7
7
|
import { CommandError } from '../../../../Command.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import {
|
|
9
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
10
|
import { formatting } from '../../../../utils/formatting.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -134,7 +134,7 @@ class PlannerPlanAddCommand extends GraphCommand {
|
|
|
134
134
|
if (args.options.ownerGroupId) {
|
|
135
135
|
return args.options.ownerGroupId;
|
|
136
136
|
}
|
|
137
|
-
const group = await
|
|
137
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
138
138
|
return group.id;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerPlanGetCommand_instances, _PlannerPlanGetCommand_initTelemetry, _PlannerPlanGetCommand_initOptions, _PlannerPlanGetCommand_initValidators, _PlannerPlanGetCommand_initOptionSets, _PlannerPlanGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { planner } from '../../../../utils/planner.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -74,7 +74,7 @@ class PlannerPlanGetCommand extends GraphCommand {
|
|
|
74
74
|
if (args.options.ownerGroupId) {
|
|
75
75
|
return args.options.ownerGroupId;
|
|
76
76
|
}
|
|
77
|
-
const group = await
|
|
77
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
78
78
|
return group.id;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _PlannerPlanListCommand_instances, _PlannerPlanListCommand_initTelemetry, _PlannerPlanListCommand_initOptions, _PlannerPlanListCommand_initValidators, _PlannerPlanListCommand_initOptionSets, _PlannerPlanListCommand_initTypes;
|
|
7
|
-
import {
|
|
7
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
8
8
|
import { planner } from '../../../../utils/planner.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -49,7 +49,7 @@ class PlannerPlanListCommand extends GraphCommand {
|
|
|
49
49
|
if (args.options.ownerGroupId) {
|
|
50
50
|
return args.options.ownerGroupId;
|
|
51
51
|
}
|
|
52
|
-
const group = await
|
|
52
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
53
53
|
return group.id;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _PlannerPlanRemoveCommand_instances, _PlannerPlanRemoveCommand_initTelemetry, _PlannerPlanRemoveCommand_initOptions, _PlannerPlanRemoveCommand_initValidators, _PlannerPlanRemoveCommand_initOptionSets, _PlannerPlanRemoveCommand_initTypes;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import {
|
|
9
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
10
|
import { planner } from '../../../../utils/planner.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -68,7 +68,7 @@ class PlannerPlanRemoveCommand extends GraphCommand {
|
|
|
68
68
|
if (ownerGroupId) {
|
|
69
69
|
return ownerGroupId;
|
|
70
70
|
}
|
|
71
|
-
const group = await
|
|
71
|
+
const group = await entraGroup.getGroupByDisplayName(ownerGroupName);
|
|
72
72
|
return group.id;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerPlanSetCommand_instances, _PlannerPlanSetCommand_initTelemetry, _PlannerPlanSetCommand_initOptions, _PlannerPlanSetCommand_initValidators, _PlannerPlanSetCommand_initOptionSets, _PlannerPlanSetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { planner } from '../../../../utils/planner.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -38,7 +38,7 @@ class PlannerPlanSetCommand extends GraphCommand {
|
|
|
38
38
|
if (ownerGroupId) {
|
|
39
39
|
return ownerGroupId;
|
|
40
40
|
}
|
|
41
|
-
const group = await
|
|
41
|
+
const group = await entraGroup.getGroupByDisplayName(ownerGroupName);
|
|
42
42
|
return group.id;
|
|
43
43
|
}
|
|
44
44
|
async getPlanId(args) {
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerRosterMemberAddCommand_instances, _PlannerRosterMemberAddCommand_initTelemetry, _PlannerRosterMemberAddCommand_initOptions, _PlannerRosterMemberAddCommand_initOptionSets, _PlannerRosterMemberAddCommand_initValidators, _PlannerRosterMemberAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
@@ -55,7 +55,7 @@ class PlannerRosterMemberAddCommand extends GraphCommand {
|
|
|
55
55
|
if (args.options.userId) {
|
|
56
56
|
return args.options.userId;
|
|
57
57
|
}
|
|
58
|
-
const userId = await
|
|
58
|
+
const userId = await entraUser.getUserIdByUpn(args.options.userName);
|
|
59
59
|
return userId;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -8,7 +8,7 @@ import request from '../../../../request.js';
|
|
|
8
8
|
import { validation } from '../../../../utils/validation.js';
|
|
9
9
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
10
10
|
import commands from '../../commands.js';
|
|
11
|
-
import {
|
|
11
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
12
12
|
class PlannerRosterMemberGetCommand extends GraphCommand {
|
|
13
13
|
get name() {
|
|
14
14
|
return commands.ROSTER_MEMBER_GET;
|
|
@@ -49,7 +49,7 @@ class PlannerRosterMemberGetCommand extends GraphCommand {
|
|
|
49
49
|
if (args.options.userId) {
|
|
50
50
|
return args.options.userId;
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return entraUser.getUserIdByUpn(args.options.userName);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
_PlannerRosterMemberGetCommand_instances = new WeakSet(), _PlannerRosterMemberGetCommand_initTelemetry = function _PlannerRosterMemberGetCommand_initTelemetry() {
|
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _PlannerRosterMemberRemoveCommand_instances, _PlannerRosterMemberRemoveCommand_initTelemetry, _PlannerRosterMemberRemoveCommand_initOptions, _PlannerRosterMemberRemoveCommand_initOptionSets, _PlannerRosterMemberRemoveCommand_initValidators, _PlannerRosterMemberRemoveCommand_initTypes;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import {
|
|
9
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
10
10
|
import { odata } from '../../../../utils/odata.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
12
12
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -45,7 +45,7 @@ class PlannerRosterMemberRemoveCommand extends GraphCommand {
|
|
|
45
45
|
if (args.options.userId) {
|
|
46
46
|
return args.options.userId;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return entraUser.getUserIdByUpn(args.options.userName);
|
|
49
49
|
}
|
|
50
50
|
async removeRosterMember(args) {
|
|
51
51
|
try {
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerTaskAddCommand_instances, _PlannerTaskAddCommand_initTelemetry, _PlannerTaskAddCommand_initOptions, _PlannerTaskAddCommand_initValidators, _PlannerTaskAddCommand_initOptionSets, _PlannerTaskAddCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { planner } from '../../../../utils/planner.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -156,7 +156,7 @@ class PlannerTaskAddCommand extends GraphCommand {
|
|
|
156
156
|
if (args.options.ownerGroupId) {
|
|
157
157
|
return args.options.ownerGroupId;
|
|
158
158
|
}
|
|
159
|
-
const group = await
|
|
159
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
160
160
|
return group.id;
|
|
161
161
|
}
|
|
162
162
|
async getUserIds(options) {
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerTaskGetCommand_instances, _PlannerTaskGetCommand_initTelemetry, _PlannerTaskGetCommand_initOptions, _PlannerTaskGetCommand_initValidators, _PlannerTaskGetCommand_initOptionSets, _PlannerTaskGetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { planner } from '../../../../utils/planner.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -129,7 +129,7 @@ class PlannerTaskGetCommand extends GraphCommand {
|
|
|
129
129
|
if (options.ownerGroupId) {
|
|
130
130
|
return options.ownerGroupId;
|
|
131
131
|
}
|
|
132
|
-
const group = await
|
|
132
|
+
const group = await entraGroup.getGroupByDisplayName(options.ownerGroupName);
|
|
133
133
|
return group.id;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerTaskListCommand_instances, _PlannerTaskListCommand_initTelemetry, _PlannerTaskListCommand_initOptions, _PlannerTaskListCommand_initValidators, _PlannerTaskListCommand_initOptionSets, _PlannerTaskListCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { odata } from '../../../../utils/odata.js';
|
|
11
11
|
import { planner } from '../../../../utils/planner.js';
|
|
@@ -107,7 +107,7 @@ class PlannerTaskListCommand extends GraphCommand {
|
|
|
107
107
|
if (args.options.ownerGroupId) {
|
|
108
108
|
return formatting.encodeQueryParameter(args.options.ownerGroupId);
|
|
109
109
|
}
|
|
110
|
-
const group = await
|
|
110
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.ownerGroupName);
|
|
111
111
|
return group.id;
|
|
112
112
|
}
|
|
113
113
|
mergeTaskPriority(taskItems, betaTaskItems) {
|
|
@@ -6,7 +6,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
6
6
|
var _PlannerTaskRemoveCommand_instances, _PlannerTaskRemoveCommand_initTelemetry, _PlannerTaskRemoveCommand_initOptions, _PlannerTaskRemoveCommand_initValidators, _PlannerTaskRemoveCommand_initOptionSets, _PlannerTaskRemoveCommand_initTypes;
|
|
7
7
|
import { cli } from '../../../../cli/cli.js';
|
|
8
8
|
import request from '../../../../request.js';
|
|
9
|
-
import {
|
|
9
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
10
10
|
import { odata } from '../../../../utils/odata.js';
|
|
11
11
|
import { planner } from '../../../../utils/planner.js';
|
|
12
12
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -127,7 +127,7 @@ class PlannerTaskRemoveCommand extends GraphCommand {
|
|
|
127
127
|
if (ownerGroupId) {
|
|
128
128
|
return ownerGroupId;
|
|
129
129
|
}
|
|
130
|
-
const group = await
|
|
130
|
+
const group = await entraGroup.getGroupByDisplayName(ownerGroupName);
|
|
131
131
|
return group.id;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _PlannerTaskSetCommand_instances, _PlannerTaskSetCommand_initTelemetry, _PlannerTaskSetCommand_initOptions, _PlannerTaskSetCommand_initValidators, _PlannerTaskSetCommand_initOptionSets, _PlannerTaskSetCommand_initTypes;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { planner } from '../../../../utils/planner.js';
|
|
11
11
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -186,7 +186,7 @@ class PlannerTaskSetCommand extends GraphCommand {
|
|
|
186
186
|
if (options.ownerGroupId) {
|
|
187
187
|
return options.ownerGroupId;
|
|
188
188
|
}
|
|
189
|
-
const group = await
|
|
189
|
+
const group = await entraGroup.getGroupByDisplayName(options.ownerGroupName);
|
|
190
190
|
return group.id;
|
|
191
191
|
}
|
|
192
192
|
mapRequestBody(options, appliedCategories) {
|
|
@@ -55,7 +55,7 @@ class SpfxProjectGithubWorkflowAddCommand extends BaseProjectCommand {
|
|
|
55
55
|
fs.writeFileSync(path.resolve(workflowFile), yaml.stringify(workflow), 'utf-8');
|
|
56
56
|
}
|
|
57
57
|
updateWorkflow(solutionName, workflow, options) {
|
|
58
|
-
workflow.name = workflow.name.replace('{{ name }}',
|
|
58
|
+
workflow.name = options.name ? options.name : workflow.name.replace('{{ name }}', solutionName);
|
|
59
59
|
if (options.branchName) {
|
|
60
60
|
workflow.on.push.branches[0] = options.branchName;
|
|
61
61
|
}
|
|
@@ -5,8 +5,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _SpoGroupMemberAddCommand_instances, _SpoGroupMemberAddCommand_initTelemetry, _SpoGroupMemberAddCommand_initOptions, _SpoGroupMemberAddCommand_initValidators, _SpoGroupMemberAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
10
10
|
import { formatting } from '../../../../utils/formatting.js';
|
|
11
11
|
import { spo } from '../../../../utils/spo.js';
|
|
12
12
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -111,14 +111,14 @@ class SpoGroupMemberAddCommand extends SpoCommand {
|
|
|
111
111
|
if (this.verbose) {
|
|
112
112
|
await logger.logToStderr(`Getting ID of Azure AD group ${trimmedIdentifier}`);
|
|
113
113
|
}
|
|
114
|
-
const groupId = await
|
|
114
|
+
const groupId = await entraGroup.getGroupIdByDisplayName(trimmedIdentifier);
|
|
115
115
|
validUserNames.push(groupId);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
118
|
if (this.verbose) {
|
|
119
119
|
await logger.logToStderr(`Getting Azure AD ID for user ${trimmedIdentifier}`);
|
|
120
120
|
}
|
|
121
|
-
const upn = await
|
|
121
|
+
const upn = await entraUser.getUserIdByEmail(trimmedIdentifier);
|
|
122
122
|
validUserNames.push(upn);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -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
|
|
11
|
+
import entraUserGetCommand 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';
|
|
@@ -40,7 +40,7 @@ class SpoGroupMemberRemoveCommand extends SpoCommand {
|
|
|
40
40
|
debug: args.options.debug,
|
|
41
41
|
verbose: args.options.verbose
|
|
42
42
|
};
|
|
43
|
-
const userGetOutput = await cli.executeCommandWithOutput(
|
|
43
|
+
const userGetOutput = await cli.executeCommandWithOutput(entraUserGetCommand, { options: { ...options, _: [] } });
|
|
44
44
|
const userOutput = JSON.parse(userGetOutput.stdout);
|
|
45
45
|
return userOutput.userPrincipalName;
|
|
46
46
|
}
|
|
@@ -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
|
|
10
|
+
import entraUserGetCommand 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 {
|
|
@@ -77,7 +77,7 @@ class SpoGroupSetCommand extends SpoCommand {
|
|
|
77
77
|
debug: options.debug,
|
|
78
78
|
verbose: options.verbose
|
|
79
79
|
};
|
|
80
|
-
const output = await cli.executeCommandWithOutput(
|
|
80
|
+
const output = await cli.executeCommandWithOutput(entraUserGetCommand, { options: { ...cmdOptions, _: [] } });
|
|
81
81
|
const getUserOutput = JSON.parse(output.stdout);
|
|
82
82
|
const requestOptions = {
|
|
83
83
|
url: `${options.webUrl}/_api/web/ensureUser('${getUserOutput.userPrincipalName}')?$select=Id`,
|
|
@@ -8,7 +8,7 @@ import chalk from 'chalk';
|
|
|
8
8
|
import { cli } from '../../../../cli/cli.js';
|
|
9
9
|
import config from '../../../../config.js';
|
|
10
10
|
import request from '../../../../request.js';
|
|
11
|
-
import {
|
|
11
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
12
12
|
import { formatting } from '../../../../utils/formatting.js';
|
|
13
13
|
import { spo } from '../../../../utils/spo.js';
|
|
14
14
|
import { validation } from '../../../../utils/validation.js';
|
|
@@ -57,7 +57,7 @@ class SpoSiteRemoveCommand extends SpoCommand {
|
|
|
57
57
|
await logger.logToStderr(`Site attached to group ${groupId}. Initiating group delete operation via Graph API`);
|
|
58
58
|
}
|
|
59
59
|
try {
|
|
60
|
-
const group = await
|
|
60
|
+
const group = await entraGroup.getGroupById(groupId);
|
|
61
61
|
if (args.options.skipRecycleBin || args.options.wait) {
|
|
62
62
|
await logger.logToStderr(chalk.yellow(`Entered site is a groupified site. Hence, the parameters 'skipRecycleBin' and 'wait' will not be applicable.`));
|
|
63
63
|
}
|
|
@@ -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
|
|
15
|
+
import entraM365GroupSetCommand 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';
|
|
@@ -243,7 +243,7 @@ class SpoSiteSetCommand extends SpoCommand {
|
|
|
243
243
|
debug: this.debug,
|
|
244
244
|
verbose: this.verbose
|
|
245
245
|
};
|
|
246
|
-
promises.push(cli.executeCommand(
|
|
246
|
+
promises.push(cli.executeCommand(entraM365GroupSetCommand, { options: { ...commandOptions, _: [] } }));
|
|
247
247
|
}
|
|
248
248
|
if (args.options.description) {
|
|
249
249
|
promises.push(this.setGroupifiedSiteDescription(args.options.description));
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _SpoUserEnsureCommand_instances, _SpoUserEnsureCommand_initTelemetry, _SpoUserEnsureCommand_initOptions, _SpoUserEnsureCommand_initValidators, _SpoUserEnsureCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraUser } from '../../../../utils/entraUser.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import SpoCommand from '../../../base/SpoCommand.js';
|
|
11
11
|
import commands from '../../commands.js';
|
|
@@ -55,7 +55,7 @@ class SpoUserEnsureCommand extends SpoCommand {
|
|
|
55
55
|
if (this.verbose) {
|
|
56
56
|
await logger.logToStderr(`Retrieving user principal name for user with id ${entraId}`);
|
|
57
57
|
}
|
|
58
|
-
return await
|
|
58
|
+
return await entraUser.getUpnByUserId(entraId);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
_SpoUserEnsureCommand_instances = new WeakSet(), _SpoUserEnsureCommand_initTelemetry = function _SpoUserEnsureCommand_initTelemetry() {
|
|
@@ -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
|
|
11
|
+
import entraUserGetCommand 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 {
|
|
@@ -70,7 +70,7 @@ class TeamsAppInstallCommand extends GraphCommand {
|
|
|
70
70
|
verbose: args.options.verbose
|
|
71
71
|
};
|
|
72
72
|
try {
|
|
73
|
-
const res = await cli.executeCommandWithOutput(
|
|
73
|
+
const res = await cli.executeCommandWithOutput(entraUserGetCommand, { options: { ...options, _: [] } });
|
|
74
74
|
if (this.verbose) {
|
|
75
75
|
await logger.logToStderr(res.stderr);
|
|
76
76
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelGetCommand_instances, _TeamsChannelGetCommand_initTelemetry, _TeamsChannelGetCommand_initOptions, _TeamsChannelGetCommand_initValidators, _TeamsChannelGetCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -30,7 +30,7 @@ class TeamsChannelGetCommand extends GraphCommand {
|
|
|
30
30
|
if (args.options.teamId) {
|
|
31
31
|
return args.options.teamId;
|
|
32
32
|
}
|
|
33
|
-
const group = await
|
|
33
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.teamName);
|
|
34
34
|
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
35
35
|
throw `The specified team does not exist in the Microsoft Teams`;
|
|
36
36
|
}
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelListCommand_instances, _TeamsChannelListCommand_initTelemetry, _TeamsChannelListCommand_initOptions, _TeamsChannelListCommand_initValidators, _TeamsChannelListCommand_initOptionSets;
|
|
7
|
-
import {
|
|
7
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
8
8
|
import { odata } from '../../../../utils/odata.js';
|
|
9
9
|
import { validation } from '../../../../utils/validation.js';
|
|
10
10
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -31,7 +31,7 @@ class TeamsChannelListCommand extends GraphCommand {
|
|
|
31
31
|
if (args.options.teamId) {
|
|
32
32
|
return args.options.teamId;
|
|
33
33
|
}
|
|
34
|
-
const group = await
|
|
34
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.teamName);
|
|
35
35
|
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
36
36
|
throw 'The specified team does not exist in the Microsoft Teams';
|
|
37
37
|
}
|
|
@@ -5,7 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5
5
|
};
|
|
6
6
|
var _TeamsChannelMemberAddCommand_instances, _TeamsChannelMemberAddCommand_initTelemetry, _TeamsChannelMemberAddCommand_initOptions, _TeamsChannelMemberAddCommand_initValidators, _TeamsChannelMemberAddCommand_initOptionSets;
|
|
7
7
|
import request from '../../../../request.js';
|
|
8
|
-
import {
|
|
8
|
+
import { entraGroup } from '../../../../utils/entraGroup.js';
|
|
9
9
|
import { formatting } from '../../../../utils/formatting.js';
|
|
10
10
|
import { validation } from '../../../../utils/validation.js';
|
|
11
11
|
import GraphCommand from '../../../base/GraphCommand.js';
|
|
@@ -63,7 +63,7 @@ class TeamsChannelMemberAddCommand extends GraphCommand {
|
|
|
63
63
|
if (args.options.teamId) {
|
|
64
64
|
return args.options.teamId;
|
|
65
65
|
}
|
|
66
|
-
const group = await
|
|
66
|
+
const group = await entraGroup.getGroupByDisplayName(args.options.teamName);
|
|
67
67
|
if (group.resourceProvisioningOptions.indexOf('Team') === -1) {
|
|
68
68
|
throw 'The specified team does not exist in the Microsoft Teams';
|
|
69
69
|
}
|