Managing users
We can view the user account details for a known account using the following:
Get-AzureADUser -ObjectId [email protected] | fl
In the preceding command, [email protected]
represents the UPN of the user.
We also can use user attributes to find user account details:
Get-AzureADUser -Filter "startswith(GivenName,'Adele')"
The preceding command will filter Azure AD users with GivenName
as Adele
.
We can also filter users based on a specific attribute value:
Get-AzureADUser -Filter "GivenName eq 'Adele'"
The preceding command will search for the exact user with the given name value Adele
.
In my demo environment, I'd like to see a list of disabled accounts. I can do this using the following command:
Get-AzureADUser -All $true -Filter 'accountEnabled eq false'
We can modify the output of the filtered data further:
Get-AzureADUser -All...