Copper Contributor

How can I list someone's mobile devices in AAD? I connected to Exchange Online and AzureAD tried running 'Get-ActiveSyncDevice' but getting:




1 Reply



My guess is that you've logged in with an account whose role memberships don't permit you to see the Get-ActiveSyncDevice command.


Only the commands you have the permission to run are imported.


You can use Get-ManagementRole to see which roles allow access to the command (an example is below), after which you'd need to confirm if the account you signed in with is a member of any of these roles.




Note: It's recommended to use Get-MobileDevice these days, though that doesn't change anything I've mentioned above: