Explicit assignment
Explicit role assignment is when you directly assign a role to (or revoke from) a specific Member. Once assigned, the Member has that Role unconditionally until it is explicitly revoked. You can assign roles when making calls to the following API endpoints: or manually in the Stytch Dashboard.Implicit assignment
Implicit role assignment is when a Member is automatically assigned a Role by meeting certain criteria or possessing certain attributes, designated by their . For example, a Organization can be configured so that all Members with astytch.com email domain are assigned the Role of developer upon account creation.
Implicit assignment can be thought of as a mechanism to define rules for automatically assigning Roles to Members.
Stytch offers three ways to assign roles implicitly:
- By email domain: everyone with the
@example.comemail domain gets thedeveloperRole. - By SSO Connection: everyone who authenticates via a specific SSO Connection gets the
employeeRole. - By SSO Connection IdP Group: everyone who authenticates via a specific SSO Connection and is a part of the
engineeringIdP group gets thedeveloperRole.
Stytch currently only supports SSO connection implicit role assignments for SAML connections, not OIDC connections. Please contact us if you would like to use this functionality for OIDC connections.
@not-example.com, they will no longer be assigned the developer Role.
Email domain role assignments
Create and update email domain implicit role assignment rules using therbac_email_implicit_role_assignments argument when making calls to the following API endpoints:
or manually in the Stytch Dashboard.