-
Notifications
You must be signed in to change notification settings - Fork 324
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
4bb805e
commit eb4a963
Showing
96 changed files
with
570 additions
and
522 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 |
---|---|---|
|
@@ -13,11 +13,11 @@ m365 aad user set [options] | |
## Options | ||
|
||
```md definition-list | ||
`-i, --objectId [objectId]` | ||
: The object ID of the user to update. Specify `objectId` or `userPrincipalName` but not both. | ||
`-i, --id [id]` | ||
: The object ID of the user to update. Specify `id` or `userName` but not both. | ||
|
||
`-n, --userPrincipalName [userPrincipalName]` | ||
: User principal name of the user to update. Specify `objectId` or `userPrincipalName` but not both. | ||
`-n, --userName [userName]` | ||
: User principal name of the user to update. Specify `id` or `userName` but not both. | ||
|
||
`--accountEnabled [accountEnabled]` | ||
: Boolean value specifying whether the account is enabled. Valid values are `true` or `false`. | ||
|
@@ -87,36 +87,36 @@ If the user with the specified ID or username doesn't exist, or if the specified | |
Update specific property _department_ of user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ | ||
|
||
```sh | ||
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --Department IT | ||
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --Department IT | ||
``` | ||
|
||
Update multiple properties of user by name | ||
```sh | ||
m365 aad user set --userPrincipalName [email protected] --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation "New York" | ||
m365 aad user set --userName [email protected] --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation "New York" | ||
``` | ||
|
||
Enable user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ | ||
|
||
```sh | ||
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled true | ||
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled true | ||
``` | ||
|
||
Disable user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_ | ||
|
||
```sh | ||
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled false | ||
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabled false | ||
``` | ||
|
||
Reset password of a given user by userPrincipalName and require the user to change the password on the next sign in | ||
Reset password of a given user by userName and require the user to change the password on the next sign in | ||
|
||
```sh | ||
m365 aad user set --userPrincipalName [email protected] --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn | ||
m365 aad user set --userName [email protected] --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn | ||
``` | ||
|
||
Change password of the currently logged in user | ||
|
||
```sh | ||
m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --currentPassword SLBF5gnRtyYc --newPassword 6NLUId79Lc24 | ||
m365 aad user set --id 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --currentPassword SLBF5gnRtyYc --newPassword 6NLUId79Lc24 | ||
``` | ||
|
||
Updates a user with a manager | ||
|
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
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
Oops, something went wrong.