How to find and fix Entra ID users with empty UserType property
Entra ID introduced the property UserType
in 2014. This property defines whether a user is a member
or a guest
in your tenant. Entra ID 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 Entra ID 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