First authenticate - this command will pop up a window to sign in.
> Connect-AzureAD
Account Environment TenantId TenantDomain AccountType
------- ----------- -------- ------------ -----------
martinnurse@demo.com AzureCloud c780397d-ed5b-4ccd demo.com User
Get my AD group memberships.
> Get-AzureADUser -SearchString martinnurse@demo.com `
| Get-AzureADUserMembership `
| % {Get-AzureADObjectByObjectId -ObjectId $_.ObjectId `
| select DisplayName,ObjectType,MailEnabled,SecurityEnabled,ObjectId} `
| ft
DisplayName ObjectType MailEnabled SecurityEnabled ObjectId
----------- ---------- ----------- --------------- --------
Sport And Social Group True False a3cb9dfe-82ba-4223-9e87
AllStaff Group True True 7869bdd5-1f75-433d-b9d5
...
This page was generated by GitHub Pages. Page last modified: 21/12/17 10:57