Skip to main content

User Groups

User groups is a great way to enforce different quota and services for different users, e.g. free vs paid users.

ServerlessAI have three built in user groups: Guest, Authenticated, and Machine to Machine.

  • Guest users are not authenticated with a token.
  • Authenticated users are authenticated with a JWT token.
  • Machine to Machine users are authenticated with a secret.

Creating custom groups​

In Settings - User Group - Authenticated, click the Create Subgroup button.

Assigning user to custom groups​

Via User's JWT token​

You can assign user to groups using custom claims in the user's JWT token. In the custom group's settings, add the claims.

Conflicting assignment​

If the user can be assigned to more than one groups per the rules defined, the behavior is undefined.

Other methods​

If you need other methods to assign user to groups, email us at help@serverlessai.dev