New-​Azure​Rm​AD​User

Creates a new active directory user.

Syntax

New-AzureRmADUser
   -DisplayName <String>
   [-ForceChangePasswordNextLogin]
   [-ImmutableId <String>]
   -Password <String>
   -UserPrincipalName <String>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Creates a new active directory user (work/school account also popularly known as org-id). For more information: https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/users-operations#CreateUser

Examples

Example 1

PS C:\> {{ Add example code here }}

{{ Add example description here }}

Required Parameters

-DisplayName

The name to display in the address book for the user. example 'Alex Wu'.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Password

Password for the user. It must meet the tenant's password complexity requirements. It is recommended to set a strong password.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-UserPrincipalName

The user principal name. Example-'someuser@contoso.com'.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceChangePasswordNextLogin

It must be specified if the user must change the password on the next successful login (true). Default behavior is (false) to not change the password on the next successful login.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ImmutableId

It needs to be specified only if you are using a federated domain for the user's user principal name (upn) property.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf
Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False