Skip to content

Commit c7cc159

Browse files
Access Reviews Schema addendum | Expose reviewer and statistics APIs
1 parent 9efaec3 commit c7cc159

12 files changed

+823
-5
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/authorization-AccessReviewCalls.json

Lines changed: 470 additions & 5 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview",
4+
"id": "d9b9e056-7004-470b-bf21-1635e98487da"
5+
},
6+
"responses": {
7+
"204": {}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview",
4+
"id": "4135f961-be78-4005-8101-c72a5af307a2"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2",
10+
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval",
11+
"name": "4135f961-be78-4005-8101-c72a5af307a2",
12+
"properties": {
13+
"status": "Applied",
14+
"startDateTime": "2018-08-03T21:02:30.667Z",
15+
"endDateTime": "2018-08-03T21:17:30.513Z",
16+
"definition": {
17+
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
18+
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions",
19+
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
20+
"properties": {
21+
"displayName": "Hello world",
22+
"status": "InProgress",
23+
"descriptionForAdmins": "asdfasdf",
24+
"descriptionForReviewers": "asdfasdf",
25+
"createdBy": {
26+
"principalType": "user",
27+
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
28+
"principalName": "Shubham Gupta",
29+
"userPrincipalName": "[email protected]"
30+
},
31+
"scope": {
32+
"resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
33+
"roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd"
34+
},
35+
"reviewers": [
36+
{
37+
"principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ",
38+
"principalType": "user"
39+
}
40+
],
41+
"reviewersType": "Assigned",
42+
"settings": {
43+
"mailNotificationsEnabled": true,
44+
"reminderNotificationsEnabled": true,
45+
"justificationRequiredOnApproval": true,
46+
"recommendationsEnabled": true,
47+
"instanceDurationInDays": 30,
48+
"recurrence": {
49+
"range": {
50+
"type": "endDate",
51+
"numberOfOccurrences": 1,
52+
"startDate": "2018-08-03T21:02:30.667Z",
53+
"endDate": "2018-08-03T21:17:30.513Z"
54+
}
55+
},
56+
"defaultDecisionEnabled": true,
57+
"defaultDecision": "Approve",
58+
"autoApplyDecisionsEnabled": true
59+
}
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview",
4+
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "4135f961-be78-4005-8101-c72a5af307a2"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"totalCount": 20,
12+
"decisionsSummary": [
13+
{
14+
"decision": "NotReviewed",
15+
"count": 4
16+
},
17+
{
18+
"decision": "Approve",
19+
"count": 4
20+
}
21+
],
22+
"recommendationsSummary": [
23+
{
24+
"recommendation": "Approve",
25+
"count": 4
26+
},
27+
{
28+
"decision": "Deny",
29+
"count": 4
30+
}
31+
]
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview",
4+
"id": "4135f961-be78-4005-8101-c72a5af307a2",
5+
"decisionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
11+
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/decisions",
12+
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
13+
"properties": {
14+
"reviewedBy": {
15+
"principalType": "user",
16+
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
17+
"principalName": "Shubham Gupta",
18+
"userPrincipalName": "[email protected]"
19+
},
20+
"reviewedDateTime": "2018-08-03T21:02:30.667Z",
21+
"decision": "Deny",
22+
"justification": "This person has left this team",
23+
"appliedBy": {
24+
"principalType": "user",
25+
"principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a",
26+
"principalName": "Amit Ghosh",
27+
"userPrincipalName": "[email protected]"
28+
},
29+
"appliedDateTime": "2018-10-03T21:02:30.667Z",
30+
"applyResult": "Success",
31+
"recommendation": "Deny",
32+
"target": {
33+
"type": "user",
34+
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
35+
"principalName": "Shubham Gupta",
36+
"userPrincipalName": "[email protected]"
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview",
4+
"id": "4135f961-be78-4005-8101-c72a5af307a2"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
12+
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/decisions",
13+
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
14+
"properties": {
15+
"reviewedBy": {
16+
"principalType": "user",
17+
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
18+
"principalName": "Shubham Gupta",
19+
"userPrincipalName": "[email protected]"
20+
},
21+
"reviewedDateTime": "2018-08-03T21:02:30.667Z",
22+
"decision": "Deny",
23+
"justification": "This person has left this team",
24+
"appliedBy": {
25+
"principalType": "user",
26+
"principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a",
27+
"principalName": "Amit Ghosh",
28+
"userPrincipalName": "[email protected]"
29+
},
30+
"appliedDateTime": "2018-10-03T21:02:30.667Z",
31+
"applyResult": "Success",
32+
"recommendation": "Deny",
33+
"target": {
34+
"type": "user",
35+
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
36+
"principalName": "Shubham Gupta",
37+
"userPrincipalName": "[email protected]"
38+
}
39+
}
40+
}
41+
]
42+
}
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"id": "/providers/Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval/4135f961-be78-4005-8101-c72a5af307a2",
11+
"type": "Microsoft.Authorization/accessReviewInstancesAssignedForMyApproval",
12+
"name": "4135f961-be78-4005-8101-c72a5af307a2",
13+
"properties": {
14+
"status": "Applied",
15+
"startDateTime": "2018-08-03T21:02:30.667Z",
16+
"endDateTime": "2018-08-03T21:17:30.513Z",
17+
"definition": {
18+
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
19+
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions",
20+
"name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
21+
"properties": {
22+
"displayName": "Hello world",
23+
"status": "InProgress",
24+
"descriptionForAdmins": "asdfasdf",
25+
"descriptionForReviewers": "asdfasdf",
26+
"createdBy": {
27+
"principalType": "user",
28+
"principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
29+
"principalName": "Shubham Gupta",
30+
"userPrincipalName": "[email protected]"
31+
},
32+
"scope": {
33+
"resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
34+
"roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd"
35+
},
36+
"reviewers": [
37+
{
38+
"principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ",
39+
"principalType": "user"
40+
}
41+
],
42+
"reviewersType": "Assigned",
43+
"settings": {
44+
"mailNotificationsEnabled": true,
45+
"reminderNotificationsEnabled": true,
46+
"justificationRequiredOnApproval": true,
47+
"recommendationsEnabled": true,
48+
"instanceDurationInDays": 30,
49+
"recurrence": {
50+
"range": {
51+
"type": "endDate",
52+
"numberOfOccurrences": 1,
53+
"startDate": "2018-08-03T21:02:30.667Z",
54+
"endDate": "2018-08-03T21:17:30.513Z"
55+
}
56+
},
57+
"defaultDecisionEnabled": true,
58+
"defaultDecision": "Approve",
59+
"autoApplyDecisionsEnabled": true
60+
}
61+
}
62+
}
63+
}
64+
}
65+
]
66+
}
67+
}
68+
}
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-05-01-preview",
4+
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"id": "4135f961-be78-4005-8101-c72a5af307a2"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"totalCount": 20,
11+
"decisionsSummary": [
12+
{
13+
"decision": "NotReviewed",
14+
"count": 4
15+
},
16+
{
17+
"decision": "Approve",
18+
"count": 4
19+
}
20+
],
21+
"recommendationsSummary": [
22+
{
23+
"recommendation": "Approve",
24+
"count": 4
25+
},
26+
{
27+
"decision": "Deny",
28+
"count": 4
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetAccessReviewScheduleDefinition.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"principalType": "user"
3232
}
3333
],
34+
"reviewersType": "Assigned",
3435
"settings": {
3536
"mailNotificationsEnabled": true,
3637
"reminderNotificationsEnabled": true,

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-05-01-preview/examples/GetAccessReviewScheduleDefinitions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"principalType": "user"
3333
}
3434
],
35+
"reviewersType": "Assigned",
3536
"settings": {
3637
"mailNotificationsEnabled": true,
3738
"reminderNotificationsEnabled": true,

0 commit comments

Comments
 (0)