Skip to main content
In this guide you will learn how to update a user’s membership to a group by adding and removing them from it.

Before you start

In order to understand this guide correctly you must be familiar with some Auth0 FGA Concepts and know how to develop the things that we will list below.

Step by step

01. Revoking group membership

Imagine that every member of org:contoso has a reader relationship to 1000 documents. Now imagine that anne is no longer a member of org:contoso, so we want to revoke her access to all those documents, including document:planning. To accomplish this, we can simply delete the tuple in Auth0 FGA that specifies that Anne is a member of org:contoso.

02. Validating revoked member no longer has access

Once the above relationship tuple is deleted, we can check if Anne can read document:planning. Auth0 FGA will return { "allowed": false }.