-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d48e589
commit 99e059a
Showing
4 changed files
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,11 @@ m365 entra m365group user set [options] | |
`--teamName [teamName]` | ||
: The display name of the Microsoft Teams team. Specify only one of the following: `groupId`, `groupName`, `teamId`, or `teamName`. | ||
|
||
`-n, --userName [userName]` | ||
: (deprecated) User's UPN (User Principal Name), e.g. [email protected]. | ||
|
||
`--ids [ids]` | ||
: Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify only one of the following `userName`, `ids` or `userNames`. | ||
: Microsoft Entra IDs of users. You can also pass a comma-separated list of IDs. Specify only one of the following `ids` or `userNames`. | ||
|
||
`--userNames [userNames]` | ||
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify only one of the following `userName`, `ids` or `userNames`. | ||
: The user principal names of users. You can also pass a comma-separated list of UPNs. Specify only one of the following `ids` or `userNames`. | ||
|
||
`-r, --role <role>` | ||
: Role to set for the given user in the specified Microsoft 365 Group or Microsoft Teams team. Allowed values: `Owner`, `Member` | ||
|
@@ -49,7 +46,7 @@ The command will return an error if the user already has the specified role in t | |
Promote a single user to Owner of the given Microsoft 365 Group | ||
|
||
```sh | ||
m365 entra m365group user set --groupId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Owner | ||
m365 entra m365group user set --groupId '00000000-0000-0000-0000-000000000000' --userNames '[email protected]' --role Owner | ||
``` | ||
|
||
Promote multiple users specified by the userNames parameter to Owner of the given Microsoft 365 Group | ||
|
@@ -67,7 +64,7 @@ m365 entra m365group user set --groupId '00000000-0000-0000-0000-000000000000' - | |
Demote a single user from Owner to Member in the given Microsoft 365 Group | ||
|
||
```sh | ||
m365 entra m365group user set --groupId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Member | ||
m365 entra m365group user set --groupId '00000000-0000-0000-0000-000000000000' --userNames '[email protected]' --role Member | ||
``` | ||
|
||
Demote multiple users specified by the userNames parameter from Owner to Member of the given Microsoft Teams team | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -506,7 +506,7 @@ describe(commands.M365GROUP_USER_SET, () => { | |
sinonUtil.restore(entraGroup.isUnifiedGroup); | ||
sinon.stub(entraGroup, 'isUnifiedGroup').resolves(false); | ||
|
||
await assert.rejects(command.action(logger, { options: { groupId: groupId, userName: '[email protected]' } } as any), | ||
await assert.rejects(command.action(logger, { options: { groupId: groupId, userNames: userUpns.join(',') } } as any), | ||
new CommandError(`Specified group with id '${groupId}' is not a Microsoft 365 group.`)); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters