Skip to main content
Version: 2.50.0

How to find and fix Azure AD users with empty UserType property

Azure AD introduced the property UserType in 2014. This property defines whether a user is a member or a guest in your tenant. Azure AD tenants older than 2014 may find this property missing on some users. EasyLife 365 and other applications require the property to be defined.

You can use the AzureAD PowerShell module to find users that have an empty value as UserType property like this:

Install-Module -Name AzureAD
Get-AzureADUser -All $true | Where-Object UserType -eq $null

The above example returns a list of all Azure AD users with an empty UserType property.

You can use the following command to set the UserType property to Member for all users returned from the command above.

Get-AzureADUser -All $true | Where-Object UserType -eq $null | Set-AzureADUser -UserType Member