44Get-MgDirectoryRole | Format-List
55
66DeletedDateTime :
7- Description : Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities.
8- DisplayName : Global Administrator
9- Id : a2d10e79-df32-47fc-86ef-64d199860810
7+ Description : Can read basic directory information. Commonly used to grant directory read access to
8+ applications and guests.
9+ DisplayName : Directory Readers
10+ Id : 86596a70-0099-457d-8c89-1f5085b395ca
1011Members :
11- RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85
12+ RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
1213ScopedMembers :
1314AdditionalProperties : {}
1415```
@@ -18,17 +19,18 @@ This examples gets all the available directory roles.
1819### Example 2: Get a directory role by Id
1920
2021``` powershell
21- Get-MgDirectoryRole -DirectoryRoleId 'a2d10e79-df32-47fc-86ef-64d199860810 ' |
22+ Get-MgDirectoryRole -DirectoryRoleId '86596a70-0099-457d-8c89-1f5085b395ca ' |
2223 Format-List
2324
2425DeletedDateTime :
25- Description : Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities.
26- DisplayName : Global Administrator
27- Id : a2d10e79-df32-47fc-86ef-64d199860810
26+ Description : Can read basic directory information. Commonly used to grant directory read access to
27+ applications and guests.
28+ DisplayName : Directory Readers
29+ Id : 86596a70-0099-457d-8c89-1f5085b395ca
2830Members :
29- RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85
31+ RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
3032ScopedMembers :
31- AdditionalProperties : {}
33+ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#directoryRoles/$entity] }
3234```
3335
3436This example gets the directory role based on the specified Id.
0 commit comments