Resource sharing grants users access to specific resources by assigning them roles, with additional permissions controlling who can share those resources with others.Documentation Index
Fetch the complete documentation index at: https://www.osohq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Implementation
First, define roles on the target resource. Then, add an “invite” permission to control which users can share the resource with others.- Authorization check: Verify the user has the
invitepermission on the resource - Grant access: Insert a
has_rolefact to assign the appropriate role to the invited user
- Check:
authorize(alice, "invite", repository) - Grant: Insert
has_role(bob, "reader", repository)