Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Return

Using user roles

Control what users can see and do by assigning roles and checking them in your app.

Steps at a glance ​

  1. Create roles in Data & API → Auth.
  2. Assign roles to users.
  3. Use roles to protect pages and APIs.

1) Create roles ​

  1. Open Data & API → Auth.
  2. Go to Roles.
  3. Create roles that match your needs (for example admin, member).

2) Assign roles to users ​

  1. Open Data & API → Auth → Users.
  2. Select a user.
  3. Assign the appropriate roles.

3) Use roles in your app ​

  • Protect pages so only certain roles can open them.
  • Secure APIs with Middleware so only allowed roles can access sensitive data.

Common pitfalls ​

A user is signed in but still blocked ​

  • Confirm they actually have the role assigned.
  • Confirm the page or API is checking the same role name.