get https://api.sigmacomputing.com/v2/grants
List all grants for a given object.
Usage notes
Specify either a user by userId, a team by teamId, or a document (such as a workbook, data model, or dataset) by inodeId.
- Retrieve the userId by calling the /v2/members endpoint and using the
memberId
included in the response. - Retrieve the teamId by calling the /v2/teams endpoint.
- Retrieve the inodeId by calling the /v2/files endpoint and using the
id
included in the response.
Usage scenarios
- Manage inherited permissions: Identify files and folders that have permissions directly granted to them.
- Review long-lived permissions: Audit permissions granted more than a year ago and determine if they are still needed.