Azure AD user management tasks using Management Shell interface
Active Roles enables you to perform the following management tasks for Azure AD users:
Active Roles Management Shell enables you to perform the following management tasks for Azure AD users:
Create a new Azure AD user
You can use the Active Roles Management Shell to create a new user. To create a new user, on the Management Shell interface, run the New-QADUser cmdlet. Use this cmdlet with the additional Boolean parameters AzureUserAccountEnabled, AzureOffice365Enabled, and AzureAssociateTenantId to create and enable a new Azure AD user. To retrieve and update Azure properties edsvaAzureObjectID attribute with correct value is required.
For more information on creating a new Azure AD user using the Management Shell interface, see the Active Roles Management Shell Help.
Example
Create a new Azure AD user:
C:\PS> New-QADUser -name 'user64' -ParentContainer 'CN=Users,DC=SS64,DC=com' -UserPassword 'Pass123w0rd' -AzureUserAccountEnabled $true -AzureOffice365Enabled $true -AzureUserPrincipalName 'user64@Azuredomain'-AzureAssociatedTenantId 'f918cb6c-275a-4815-8863-d7cbb90598b2'
Example
You can add additional attribute using -attr @{}:
C:\PS> New-QADUser -name 'user64' -ParentContainer 'CN=Users,DC=SS64,DC=com' -UserPassword 'Pass123w0rd' -AzureUserAccountEnabled $true -AzureOffice365Enabled $true -AzureUserPrincipalName 'user64@Azuredomain' -AzureAssociatedTenantId 'f918cb6c-275a-4815-8863-d7cbb90598b2' -attr @{edsaAzureUserGivenName='user64';edsaAzureUserUsageLocation='IN'}
Update the Azure AD user properties
You can use the Active Roles Management Shell to modify attributes of an Azure AD user in Active Directory. On the Management Shell interface, run the Set-QADUser cmdlet.
For more information on modifying an Azure AD user using the Management Shell interface, see the Active Roles Management Shell Help.
|
NOTE: Set-QADUser cmdlet does not work for Azure attributes in Synchronized Identity and Federated environment. |
View the Azure AD user properties
You can use the Active Roles Management Shell to retrieve all Azure AD users in a domain or container that match the specified conditions. On the Management Shell interface, run the Get-QADUser cmdlet.
For more information on viewing the Azure AD users using the Management Shell interface, see the Active Roles Management Shell Help.