Get Access Relationship
Identify grantees (such as roles) providing specific access permissions to a given identity for a set of resources.
Overview
Use cases and features
Limitations
Get Access Relationship
post
Authorizations
AuthorizationstringRequired
Veza API key for authentication. Generate keys in Administration > API Keys.
Body
identity_idstringOptional
identity_typestringOptional
resource_idstringOptional
only one of resource_permissions or (resource_id, resource_type, raw_permissions, effective_permissions) can be set in the input
resource_typestringOptional
grantee_typestringOptional
saved_query_id_for_grantee_idsstringOptional
max_grantee_countinteger · int32Optional
resource_types_to_displaystring[]Optional
max_resource_countinteger · int32Optional
no_extra_statsbooleanOptional
When result_type=DEFAULT, setting no_extra_stats to true will also skip these queries:
- saved_query_id_for_grantee_ids will be ignored
- response will only contain old_accessible_resource_count and new_accessible_resource_count for input resource_type.
result_orderinteger · enumOptional
result_order is by default minimal access count, but can be set to LEAST_PRIVILEGED and enable new features including resource_permissions and faster response
direct_grantee_to_resource_onlybooleanOptional
Responses
200
OK
application/json
role_idstringOptionalDeprecated
resource_typestringOptionalDeprecated
new_accessible_resource_countinteger · int32OptionalDeprecated
is_identity_highly_connectedbooleanOptional
result_timestring · date-timeOptional
identity_already_has_all_accessbooleanOptional
default
Default error response
application/json
post
/api/private/assessments/access_relationshipRequest Parameters
Parameter
Type
Required
Description
Result Ordering
Special Considerations
Response Structure
Field
Type
Description
NodeAccessChange Structure
Field
Type
Description
ResourceAccessChange Structure
Field
Type
Description
Usage Examples
Example 1: Using Resource Permissions (Recommended)
Example 2: Using Resource ID and Permissions
Response
Related APIs
Last updated
Was this helpful?
