Before you start
Familiarize yourself with basic Auth0 FGA Concepts before you continue.Step by step
01. Adding company to the document
The following Relationship Tuple assigns everemployee of a type company a reader relationship with a particular object of type document, in this case document:planning):
02. Add an employee to the company
Below is a relationship tuple specifying thatAnne is an employee of company:xyz:
03. Checking an individual member’s access to an object
Call the Check API to verify that Anne can readdocument:planning returns true:
The same check for Becky, a different user, returns false, because Becky does not have an employee relationship with company:xyz: