AAD users - az ad user

Manage Azure Active Directory users and user authentication.

Commands

az ad user create Request parameters for create a new work or school account user.
az ad user delete Delete a user.
az ad user list List users, with optional filtering.
az ad user show Gets user information from the directory.

az ad user create

Request parameters for create a new work or school account user.

az ad user create --display-name
--password
--user-principal-name
[--force-change-password-next-login]
[--immutable-id]
[--mail-nickname]

Required Parameters

--display-name

Object's display name or its prefix.

--password
--user-principal-name

The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant.

Optional Parameters

--force-change-password-next-login
--immutable-id

Needs to be specified if you are using a federated domain for the user's userPrincipalName (UPN) property while creating a new user account. It is used to associate an on-premises Active Directory user account to their Azure AD user object.

--mail-nickname

Mail alias. Defaults to user principal name.

az ad user delete

Reference: https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#DeleteUser.

az ad user delete --upn-or-object-id

Required Parameters

--upn-or-object-id

User object id or user principal name (upn).

az ad user list

List users, with optional filtering.

az ad user list [--display-name]
[--filter]
[--upn]

Optional Parameters

--display-name

Object's display name or its prefix.

--filter

OData filter.

--upn

User principal name, e.g. john.doe@contoso.com.

az ad user show

Reference: https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#GetAUser.

az ad user show --upn-or-object-id

Required Parameters

--upn-or-object-id

User object Id or user principal name to get user information.