Skip to content

Commit c1ffd1c

Browse files
authored
Merge branch 'dev' into feature/ps-image
2 parents c63d4d2 + 6ff141f commit c1ffd1c

8 files changed

+543
-70
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,91 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get all assignment schedules
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
4+
Get-MgRoleManagementDirectoryRoleAssignmentSchedule | Format-List
5+
6+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilitySchedule
7+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
8+
AppScopeId :
9+
AssignmentType : Assigned
10+
CreatedDateTime :
11+
CreatedUsing :
12+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
13+
DirectoryScopeId : /
14+
Id : 4-PYiFWPHkqVOpuYmLiHa_CWtrDUYhRNsQq0vuB-N3E-1
15+
MemberType : Direct
16+
ModifiedDateTime :
17+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
18+
PrincipalId : b0b696f0-62d4-4d14-b10a-b4bee07e3771
19+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
20+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
21+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
22+
Status : Provisioned
23+
AdditionalProperties : {}
424
5-
{{ Add output here }}
25+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilitySchedule
26+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
27+
AppScopeId :
28+
AssignmentType : Activated
29+
CreatedDateTime : 5/13/2022 8:14:33 AM
30+
CreatedUsing : 76dd76bb-900f-470b-9bcc-1eb68bc45532
31+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
32+
DirectoryScopeId : /
33+
Id : 76dd76bb-900f-470b-9bcc-1eb68bc45532
34+
MemberType : Direct
35+
ModifiedDateTime :
36+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
37+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
38+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
39+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
40+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
41+
Status : Provisioned
42+
AdditionalProperties : {}
643
```
744

8-
{{ Add description here }}
45+
This example gets all active role assignment schedules. This includes active roles assignments that have been created and the future scheduled assignments.
46+
47+
### Example 2: Get all assignment schedules for a user
948

10-
### Example 2: {{ Add title here }}
1149
```powershell
12-
PS C:\> {{ Add code here }}
50+
Get-MgRoleManagementDirectoryRoleAssignmentSchedule -Filter "principalId eq '6c42590f-fcf0-4922-bac6-205f7c6aa89c'”
1351
14-
{{ Add output here }}
15-
```
52+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilitySchedule
53+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
54+
AppScopeId :
55+
AssignmentType : Activated
56+
CreatedDateTime : 5/13/2022 8:14:33 AM
57+
CreatedUsing : 76dd76bb-900f-470b-9bcc-1eb68bc45532
58+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
59+
DirectoryScopeId : /
60+
Id : 76dd76bb-900f-470b-9bcc-1eb68bc45532
61+
MemberType : Direct
62+
ModifiedDateTime :
63+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
64+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
65+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
66+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
67+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
68+
Status : Provisioned
69+
AdditionalProperties : {}
1670
17-
{{ Add description here }}
71+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilitySchedule
72+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
73+
AppScopeId :
74+
AssignmentType : Assigned
75+
CreatedDateTime : 5/13/2022 8:33:37 AM
76+
CreatedUsing : 9e98256e-58af-4d02-89ce-5134e2fe5508
77+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
78+
DirectoryScopeId : /
79+
Id : 9e98256e-58af-4d02-89ce-5134e2fe5508
80+
MemberType : Direct
81+
ModifiedDateTime :
82+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
83+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
84+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
85+
RoleDefinitionId : 9360feb5-f418-4baa-8175-e2a00bac4301
86+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
87+
Status : Provisioned
88+
AdditionalProperties : {}
89+
```
1890

91+
This example gets all active role assignment schedules for a user.
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,87 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get all role assignment schedule instances
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
4+
Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance | Format-List
5+
6+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilityScheduleInstance
7+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
8+
AppScopeId :
9+
AssignmentType : Assigned
10+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
11+
DirectoryScopeId : /
12+
EndDateTime :
13+
Id : 4-PYiFWPHkqVOpuYmLiHa_CWtrDUYhRNsQq0vuB-N3E-1
14+
MemberType : Direct
15+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
16+
PrincipalId : b0b696f0-62d4-4d14-b10a-b4bee07e3771
17+
RoleAssignmentOriginId : 4-PYiFWPHkqVOpuYmLiHa_CWtrDUYhRNsQq0vuB-N3E-1
18+
RoleAssignmentScheduleId : 4-PYiFWPHkqVOpuYmLiHa_CWtrDUYhRNsQq0vuB-N3E-1
19+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
20+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
21+
StartDateTime :
22+
AdditionalProperties : {}
23+
24+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilityScheduleInstance
25+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
26+
AppScopeId :
27+
AssignmentType : Activated
28+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
29+
DirectoryScopeId : /
30+
EndDateTime : 5/13/2022 11:14:32 AM
31+
Id : 4-PYiFWPHkqVOpuYmLiHaw9ZQmzw_CJJusYgX3xqqJw-1
32+
MemberType : Direct
33+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
34+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
35+
RoleAssignmentOriginId : 4-PYiFWPHkqVOpuYmLiHaw9ZQmzw_CJJusYgX3xqqJw-1
36+
RoleAssignmentScheduleId : 76dd76bb-900f-470b-9bcc-1eb68bc45532
37+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
38+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
39+
StartDateTime : 5/13/2022 8:14:33 AM
40+
AdditionalProperties : {}
441
5-
{{ Add output here }}
42+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilityScheduleInstance
43+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
44+
AppScopeId :
45+
AssignmentType : Assigned
46+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
47+
DirectoryScopeId : /
48+
EndDateTime :
49+
Id : lAPpYvVpN0KRkAEhdxReEENupG7coEFEgfvZ4yNW5ic-1
50+
MemberType : Direct
51+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
52+
PrincipalId : 6ea46e43-a0dc-4441-81fb-d9e32356e627
53+
RoleAssignmentOriginId : lAPpYvVpN0KRkAEhdxReEENupG7coEFEgfvZ4yNW5ic-1
54+
RoleAssignmentScheduleId : lAPpYvVpN0KRkAEhdxReEENupG7coEFEgfvZ4yNW5ic-1
55+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
56+
RoleDefinitionId : 62e90394-69f5-4237-9190-012177145e10
57+
StartDateTime :
58+
AdditionalProperties : {}
659
```
760

8-
{{ Add description here }}
61+
This examples get all created active role assignments.
62+
63+
### Example 2: Get all role assignment schedule instances for a user
964

10-
### Example 2: {{ Add title here }}
1165
```powershell
12-
PS C:\> {{ Add code here }}
66+
Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance -Filter "principalId eq '6c42590f-fcf0-4922-bac6-205f7c6aa89c'" | Format-List
1367
14-
{{ Add output here }}
68+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilityScheduleInstance
69+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
70+
AppScopeId :
71+
AssignmentType : Activated
72+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
73+
DirectoryScopeId : /
74+
EndDateTime : 5/13/2022 11:14:32 AM
75+
Id : 4-PYiFWPHkqVOpuYmLiHaw9ZQmzw_CJJusYgX3xqqJw-1
76+
MemberType : Direct
77+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
78+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
79+
RoleAssignmentOriginId : 4-PYiFWPHkqVOpuYmLiHaw9ZQmzw_CJJusYgX3xqqJw-1
80+
RoleAssignmentScheduleId : 76dd76bb-900f-470b-9bcc-1eb68bc45532
81+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
82+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
83+
StartDateTime : 5/13/2022 8:14:33 AM
84+
AdditionalProperties : {}
1585
```
1686

17-
{{ Add description here }}
18-
87+
This examples get all created active role assignments for the specified user.
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,65 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get all active role assignment requests
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
4+
Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest | Format-List
45
5-
{{ Add output here }}
6+
Action : SelfActivate
7+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilitySchedule
8+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
9+
AppScopeId :
10+
ApprovalId :
11+
CompletedDateTime : 5/13/2022 8:14:32 AM
12+
CreatedBy : Microsoft.Graph.PowerShell.Models.MicrosoftGraphIdentitySet
13+
CreatedDateTime : 5/13/2022 8:14:32 AM
14+
CustomData :
15+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
16+
DirectoryScopeId : /
17+
Id : 76dd76bb-900f-470b-9bcc-1eb68bc45532
18+
IsValidationOnly : False
19+
Justification : Activate assignment
20+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
21+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
22+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
23+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
24+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
25+
Status : Provisioned
26+
TargetSchedule : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleAssignmentSchedule
27+
TargetScheduleId : 76dd76bb-900f-470b-9bcc-1eb68bc45532
28+
TicketInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphTicketInfo
29+
AdditionalProperties : {}
630
```
731

8-
{{ Add description here }}
32+
This example gets all the active role assignment requests.
33+
34+
### Example 2: Get all active role assignment requests for a user
935

10-
### Example 2: {{ Add title here }}
1136
```powershell
12-
PS C:\> {{ Add code here }}
37+
Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -Filter "principalId eq '6c42590f-fcf0-4922-bac6-205f7c6aa89c'" | Format-List
1338
14-
{{ Add output here }}
39+
Action : SelfActivate
40+
ActivatedUsing : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleEligibilitySchedule
41+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
42+
AppScopeId :
43+
ApprovalId :
44+
CompletedDateTime : 5/13/2022 8:14:32 AM
45+
CreatedBy : Microsoft.Graph.PowerShell.Models.MicrosoftGraphIdentitySet
46+
CreatedDateTime : 5/13/2022 8:14:32 AM
47+
CustomData :
48+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
49+
DirectoryScopeId : /
50+
Id : 76dd76bb-900f-470b-9bcc-1eb68bc45532
51+
IsValidationOnly : False
52+
Justification : Activate assignment
53+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
54+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
55+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
56+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
57+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
58+
Status : Provisioned
59+
TargetSchedule : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleAssignmentSchedule
60+
TargetScheduleId : 76dd76bb-900f-470b-9bcc-1eb68bc45532
61+
TicketInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphTicketInfo
62+
AdditionalProperties : {}
1563
```
1664

17-
{{ Add description here }}
18-
65+
This example gets all the active role assignment requests for the specified user.
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,66 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get all eligibility schedules
2+
23
```powershell
3-
PS C:\> {{ Add code here }}
4+
Get-MgRoleManagementDirectoryRoleEligibilitySchedule | Format-List
5+
6+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
7+
AppScopeId :
8+
CreatedDateTime : 2/15/2022 3:11:22 PM
9+
CreatedUsing : 78222acb-04d0-4f9f-9d5e-52fb75658d32
10+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
11+
DirectoryScopeId : /
12+
Id : 78222acb-04d0-4f9f-9d5e-52fb75658d32
13+
MemberType : Direct
14+
ModifiedDateTime : 1/1/0001 8:00:00 AM
15+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
16+
PrincipalId : 50a2bbd7-302c-4572-b6b0-7c8cc0bce7b7
17+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
18+
RoleDefinitionId : 9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3
19+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
20+
Status : Provisioned
21+
AdditionalProperties : {}
422
5-
{{ Add output here }}
23+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
24+
AppScopeId :
25+
CreatedDateTime : 5/13/2022 7:39:08 AM
26+
CreatedUsing : 8554c1e7-b359-41b9-802e-4beabddec142
27+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
28+
DirectoryScopeId : /
29+
Id : 8554c1e7-b359-41b9-802e-4beabddec142
30+
MemberType : Direct
31+
ModifiedDateTime : 1/1/0001 8:00:00 AM
32+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
33+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
34+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
35+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
36+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
37+
Status : Provisioned
38+
AdditionalProperties : {}
639
```
740

8-
{{ Add description here }}
41+
This example returns all eligible role assignment schedules. This includes eligible roles that have been created and the future scheduled assignments.
42+
43+
### Example 2: Get all eligibility schedules for specific user
944

10-
### Example 2: {{ Add title here }}
1145
```powershell
12-
PS C:\> {{ Add code here }}
46+
Get-MgRoleManagementDirectoryRoleEligibilitySchedule -Filter "principalId eq '6c42590f-fcf0-4922-bac6-205f7c6aa89c'" | Format-List
1347
14-
{{ Add output here }}
48+
AppScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphAppScope
49+
AppScopeId :
50+
CreatedDateTime : 5/13/2022 7:39:08 AM
51+
CreatedUsing : 8554c1e7-b359-41b9-802e-4beabddec142
52+
DirectoryScope : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
53+
DirectoryScopeId : /
54+
Id : 8554c1e7-b359-41b9-802e-4beabddec142
55+
MemberType : Direct
56+
ModifiedDateTime : 1/1/0001 8:00:00 AM
57+
Principal : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
58+
PrincipalId : 6c42590f-fcf0-4922-bac6-205f7c6aa89c
59+
RoleDefinition : Microsoft.Graph.PowerShell.Models.MicrosoftGraphUnifiedRoleDefinition
60+
RoleDefinitionId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
61+
ScheduleInfo : Microsoft.Graph.PowerShell.Models.MicrosoftGraphRequestSchedule
62+
Status : Provisioned
63+
AdditionalProperties : {}
1564
```
1665

17-
{{ Add description here }}
18-
66+
This example returns all eligible role assignment schedules for the specified user.

0 commit comments

Comments
 (0)