Skip to main content
This article describes how to grant a user access to an object in Auth0 FGA.

Before you start

Familiarize yourself with Auth0 FGA Concepts to understand how to develop a relationship tuple and authorization model.

Step By Step

For an application to understand that user x has access to document y, it must provide Auth0 Fine-Grained Authorization (FGA) that information with relationship tuples. Each relationship tuple has three basic parameters: a user, a relation and an object.

01. Create A Relationship Tuple

Below, you’ll add a relationship tuple to indicate that bob is an editor of document:meeting_notes.doc by adding the following:

02. Check That The Relationship Exists

Once you add that relationship tuple to Auth0 FGA, you can check if the relationship is valid by asking if bob is an editor of document:meeting_notes.doc: Checking whether bob is an viewer of document:meeting_notes.doc returns false because that relationship tuple does not exist in Auth0 FGA yet.
When creating relationship tuples for Auth0 Fine-Grained Authorization (FGA), use unique ids for each object and user within your application domain. We’re using first names and simple ids to as an easy-to-follow example.