-
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.
All entra m365group commands should accept displayName option
- Loading branch information
Showing
26 changed files
with
762 additions
and
129 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
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
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
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 |
---|---|---|
|
@@ -16,26 +16,27 @@ m365 entra m365group user add [options] | |
m365 aad m365group user add [options] | ||
``` | ||
|
||
## Alias | ||
|
||
```sh | ||
m365 teams user add | ||
m365 teams user add [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-i, --groupId [groupId]` | ||
: The ID of the Microsoft 365 Group to which to add the user | ||
: The ID of the Microsoft 365 Group to which to add the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`--groupDisplayName [groupDisplayName]` | ||
: Display name of the Microsoft 365 Group to which to add the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`--teamId [teamId]` | ||
: The ID of the Teams team to which to add the user | ||
: The ID of the Teams team to which to add the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`-n, --userName <userName>` | ||
: User's UPN (user principal name, eg. [email protected]) | ||
|
||
`-r, --role [role]` | ||
: The role to be assigned to the new user: `Owner,Member`. Default `Member` | ||
: The role to be assigned to the new user. Allowed values: `Owner`, `Member`. Default `Member`. | ||
``` | ||
|
||
<Global /> | ||
|
@@ -51,7 +52,7 @@ m365 entra m365group user add --groupId '00000000-0000-0000-0000-000000000000' - | |
Add a new owner to the specified Microsoft 365 Group | ||
|
||
```sh | ||
m365 entra m365group user add --groupId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Owner | ||
m365 entra m365group user add --groupDisplayName Finance --userName '[email protected]' --role Owner | ||
``` | ||
|
||
Add a new member to the specified 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,17 +17,20 @@ m365 aad m365group user remove [options] | |
``` | ||
|
||
```sh | ||
m365 aad teams user remove | ||
m365 teams user remove [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-i, --groupId [groupId]` | ||
: The ID of the Microsoft 365 Group from which to remove the user | ||
: The ID of the Microsoft 365 Group from which to remove the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`--groupDisplayName [groupDisplayName]` | ||
: Display name of the Microsoft 365 Group for which to remove the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`--teamId [teamId]` | ||
: The ID of the Microsoft Teams team from which to remove the user | ||
: The ID of the Microsoft Teams team from which to remove the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`-n, --userName <userName>` | ||
: User's UPN (user principal name), eg. `[email protected]` | ||
|
@@ -53,13 +56,13 @@ m365 entra m365group user remove --groupId '00000000-0000-0000-0000-000000000000 | |
Removes user from the specified Microsoft 365 Group without confirmation | ||
|
||
```sh | ||
m365 entra m365group user remove --groupId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --force | ||
m365 entra m365group user remove --groupDisplayName Finance --userName '[email protected]' --force | ||
``` | ||
|
||
Removes user from the specified Microsoft Teams team | ||
|
||
```sh | ||
m365 entra teams user remove --teamId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' | ||
m365 teams user remove --teamId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' | ||
``` | ||
|
||
## Response | ||
|
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 |
---|---|---|
|
@@ -17,23 +17,26 @@ m365 aad m365group user set [options] | |
``` | ||
|
||
```sh | ||
m365 aad teams user set | ||
m365 teams user set [options] | ||
``` | ||
|
||
## Options | ||
|
||
```md definition-list | ||
`-i, --groupId [groupId]` | ||
: The ID of the Microsoft 365 group for which to update user | ||
: The ID of the Microsoft 365 group for which to update the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`--groupDisplayName [groupDisplayName]` | ||
: Display name of the Microsoft 365 Group for which to update the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`--teamId [teamId]` | ||
: The ID of the Microsoft Teams team for which to update user | ||
: The ID of the Microsoft Teams team for which to update the user. Specify either `groupId`, `groupDisplayName` or `teamId`, but not multiple. | ||
|
||
`-n, --userName <userName>` | ||
: UPN of the user for whom to update the role (eg. [email protected]) | ||
|
||
`-r, --role <role>` | ||
: Role to set for the given user in the specified Microsoft 365 Group or Microsoft Teams team. Allowed values: `Owner`, `Member` | ||
: Role to set for the given user in the specified Microsoft 365 Group or Microsoft Teams team. Allowed values: `Owner`, `Member`. | ||
``` | ||
|
||
<Global /> | ||
|
@@ -53,19 +56,19 @@ m365 entra m365group user set --groupId '00000000-0000-0000-0000-000000000000' - | |
Demote the specified 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 --groupDisplayName Finance --userName '[email protected]' --role Member | ||
``` | ||
|
||
Promote the specified user to owner of the given Microsoft Teams team | ||
|
||
```sh | ||
m365 entra teams user set --teamId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Owner | ||
m365 teams user set --teamId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Owner | ||
``` | ||
|
||
Demote the specified user from owner to member in the given Microsoft Teams team | ||
|
||
```sh | ||
m365 entra teams user set --teamId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Member | ||
m365 teams user set --teamId '00000000-0000-0000-0000-000000000000' --userName '[email protected]' --role Member | ||
``` | ||
|
||
## Response | ||
|
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
Oops, something went wrong.