Skip to content

New command: aad user set #1933

@plamber

Description

@plamber

Usage

aad user set [options]

Description

Updates a user in Azure Active Directory AD

Options

Option Description
-i, --objectId [objectId] The object ID of the user to update. Specify objectId or userPrincipalName but not both
-n, --userPrincipalName [userPrincipalName] User principal name of the user to update. Specify objectId or userPrincipalName but not both
--accountEnabled [accountEnabled] Indicates whether the account is enabled

Additional Information

Resource: https://docs.microsoft.com/en-us/powershell/module/azuread/set-azureaduser?view=azureadps-2.0

To update the specific property, specify its name as it's listed in AAD, eg. to update user's department, use:

m365 aad user set --userPrincipalName [email protected] --Department IT

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions