Skip to content

Commit 2cc4506

Browse files
Exposing membershipTypes in accessReviewInstanceDecisionItem
1 parent 0697e4f commit 2cc4506

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-12-01-preview/authorization-AccessReviewCalls.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,6 +3299,13 @@
32993299
"$ref": "#/definitions/AccessReviewDecisionInsight"
33003300
},
33013301
"description": "This is the collection of insights for this decision item."
3302+
},
3303+
"principalResourceMembership": {
3304+
"readOnly": true,
3305+
"x-ms-client-flatten": true,
3306+
"$ref": "#/definitions/AccessReviewDecisionPrincipalResourceMembership",
3307+
"description": "Details of the membership type.",
3308+
"x-nullable": true
33023309
}
33033310
},
33043311
"description": "Approval Step."
@@ -3441,6 +3448,27 @@
34413448
},
34423449
"description": "Record All Decisions payload."
34433450
},
3451+
"AccessReviewDecisionPrincipalResourceMembership": {
3452+
"type": "object",
3453+
"properties": {
3454+
"membershipTypes": {
3455+
"type": "array",
3456+
"description": "Every decision item in an access review represents a principal's membership to a resource. This property represents details of the membership. Examples of this detail might be whether the principal has direct access or indirect access",
3457+
"items": {
3458+
"type": "string",
3459+
"enum": [
3460+
"direct",
3461+
"indirect"
3462+
],
3463+
"x-ms-enum": {
3464+
"name": "AccessReviewDecisionPrincipalResourceMembershipType",
3465+
"modelAsString": true
3466+
}
3467+
}
3468+
}
3469+
},
3470+
"description": "Target of the decision."
3471+
},
34443472
"AccessReviewDecisionIdentity": {
34453473
"type": "object",
34463474
"discriminator": "type",

specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-12-01-preview/examples/GetAccessReviewInstanceDecisions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@
4242
"type": "azureRole",
4343
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
4444
"displayName": "Owner"
45+
},
46+
"principalResourceMembership": {
47+
"membershipTypes": [
48+
"direct",
49+
"indirect"
50+
]
4551
}
4652
}
4753
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-12-01-preview/examples/GetAccessReviewInstanceMyDecisionById.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
"type": "azureRole",
4141
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
4242
"displayName": "Owner"
43+
},
44+
"principalResourceMembership": {
45+
"membershipTypes": [
46+
"direct",
47+
"indirect"
48+
]
4349
}
4450
}
4551
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-12-01-preview/examples/GetAccessReviewInstanceMyDecisions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
"type": "azureRole",
4242
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
4343
"displayName": "Owner"
44+
},
45+
"principalResourceMembership": {
46+
"membershipTypes": [
47+
"direct",
48+
"indirect"
49+
]
4450
}
4551
}
4652
}

0 commit comments

Comments
 (0)