Get all users and group relationships associated with an object by role
The Expand endpoint can be used to query relationships in the permissions graph, returning all users and sets of users that have a certain relationship type to a given object. This provides visibility into why certain users have access to a file (via direct access, inherited role, group membership, or parent access). Here’s a breakdown of using this endpoint to list all users (and groups) that have aDocumentation Index
Fetch the complete documentation index at: https://docs.useparagon.com/llms.txt
Use this file to discover all available pages before exploring further.
can_read relationship to a file.
First, we can call the /expand endpoint to query can_read relationships to a file ID:
viewer role explicitly assigned to this fileeditor role explicitly assigned to this fileviewer role to the parent of this file (file:db847d33-9272-5f4e-87a9-0b7fde41638f)viewer role to the space to which this file belongs (space:42d2e50f-2e93-5f14-98c3-911c9a3fdb39)Paragon User Token. Add to the Authorization header of your requests.
UUID of the Sync to query, returned from the Enable Sync endpoint.
Expanded relationships tree showing all users and groups related to the object