Let’s modify the global roles schema to represent resource-specific roles. Basically we include a new file entity and define specific permissions for it. Here’s an updated version of the schema:Documentation Index
Fetch the complete documentation index at: https://proxy-docs.permify.co/llms.txt
Use this file to discover all available pages before exploring further.
User Entity
This is a basic entity with no defined relations or permissions.Organization Entity
- Defines four roles:
admin,member,manager, andagent. - These are represented as relations to the user entity.
File Entity
Relations
owner: relates to a userorg: relates to an organizationvendor: relates to a vendor
Permissions
view: granted to org admins, managers, members (excluding agents), or the file owneredit: granted to org admins, managers, or the file ownerdelete: granted to org admins or the file owner
Vendor Entity
Relations
org: relates to an organizationprimary_contact: relates to a user
Permissions
manage: granted to org admins or agentsview: granted to org admins, managers, or agents