4
4
Get-MgDirectoryRole | Format-List
5
5
6
6
DeletedDateTime :
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
10
11
Members :
11
- RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85
12
+ RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
12
13
ScopedMembers :
13
14
AdditionalProperties : {}
14
15
```
@@ -18,17 +19,18 @@ This examples gets all the available directory roles.
18
19
### Example 2: Get a directory role by Id
19
20
20
21
``` powershell
21
- Get-MgDirectoryRole -DirectoryRoleId 'a2d10e79-df32-47fc-86ef-64d199860810 ' |
22
+ Get-MgDirectoryRole -DirectoryRoleId '86596a70-0099-457d-8c89-1f5085b395ca ' |
22
23
Format-List
23
24
24
25
DeletedDateTime :
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
28
30
Members :
29
- RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85
31
+ RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
30
32
ScopedMembers :
31
- AdditionalProperties : {}
33
+ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#directoryRoles/$entity] }
32
34
```
33
35
34
36
This example gets the directory role based on the specified Id.
0 commit comments