Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exposing membershipTypes in accessReviewInstanceDecisionItem
Browse files Browse the repository at this point in the history
shubhamguptacal committed Jun 30, 2022
1 parent 0697e4f commit 2cc4506
Showing 4 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -3299,6 +3299,13 @@
"$ref": "#/definitions/AccessReviewDecisionInsight"
},
"description": "This is the collection of insights for this decision item."
},
"principalResourceMembership": {
"readOnly": true,
"x-ms-client-flatten": true,
"$ref": "#/definitions/AccessReviewDecisionPrincipalResourceMembership",
"description": "Details of the membership type.",
"x-nullable": true
}
},
"description": "Approval Step."
@@ -3441,6 +3448,27 @@
},
"description": "Record All Decisions payload."
},
"AccessReviewDecisionPrincipalResourceMembership": {
"type": "object",
"properties": {
"membershipTypes": {
"type": "array",
"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",
"items": {
"type": "string",
"enum": [
"direct",
"indirect"
],
"x-ms-enum": {
"name": "AccessReviewDecisionPrincipalResourceMembershipType",
"modelAsString": true
}
}
}
},
"description": "Target of the decision."
},
"AccessReviewDecisionIdentity": {
"type": "object",
"discriminator": "type",
Original file line number Diff line number Diff line change
@@ -42,6 +42,12 @@
"type": "azureRole",
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"displayName": "Owner"
},
"principalResourceMembership": {
"membershipTypes": [
"direct",
"indirect"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -40,6 +40,12 @@
"type": "azureRole",
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"displayName": "Owner"
},
"principalResourceMembership": {
"membershipTypes": [
"direct",
"indirect"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -41,6 +41,12 @@
"type": "azureRole",
"id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9",
"displayName": "Owner"
},
"principalResourceMembership": {
"membershipTypes": [
"direct",
"indirect"
]
}
}
}

0 comments on commit 2cc4506

Please sign in to comment.