May 2019
Intermediate to advanced
620 pages
21h 41m
English
Execute the following lines of PowerShell on the device where you installed the AzureAD Windows PowerShell module:
Import-Module AzureAD Connect-AzureAD $_usersinroles = @() Get-AzureADDirectoryRole | foreach { $_objectid = $_.ObjectId; $rolename = $_.Displayname $_usersinroles += Get-AzureADDirectoryRoleMember -ObjectId ` $_objectid | select @{name='RoleName';expression={$rolename}},` displayname,UserPrincipalName,UserType } $_usersinroles"
Read now
Unlock full access