Organizations
Organizations represent tenants in your application. Each organization contains users, SSO connections, settings, and data.Organization structure
- Organization ID: Unique identifier (e.g.,
org_1234567890) - Display name: Human-readable name (e.g., “Acme Corporation”)
- Domains: Email domains owned by the organization (e.g.,
@acme.com) - Members: Users belonging to the organization
- SSO connections: Enterprise identity provider configurations
- Metadata: Custom attributes for organization-specific data
Creating organizations
Users
Users are individuals who authenticate and access your application. Users can belong to one or more organizations.User structure
- User ID: Unique identifier (e.g.,
usr_1234567890) - Email: Primary email address
- Name: Display name
- Profile: Additional attributes (phone, picture, etc.)
- Memberships: Organizations the user belongs to
- Identities: Linked authentication methods
User creation
Users are created automatically during authentication or can be created programmatically:Multi-tenancy patterns
Single organization per user
Simplest model where each user belongs to exactly one organization. Use cases:- Traditional B2B SaaS
- Enterprise applications
- Internal tools
Multiple organizations per user
Users can belong to multiple organizations and switch between them. Use cases:- Collaboration platforms
- Consulting tools
- Freelancer applications
Workspaces
Organizations can contain multiple workspaces for team collaboration. Use cases:- Project management tools
- Design collaboration platforms
- Development environments
Domain management
Email domains define organization ownership and enable automatic routing.Domain verification
Verify domain ownership to enable:- Automatic user assignment
- Domain-based SSO routing
- Email domain restrictions
- DNS TXT record
- Meta tag in website HTML
- File upload to website root
Domain-based routing
Automatically route users to the correct organization based on email domain:Organization roles and permissions
Define roles to control user access within organizations.Built-in roles
- Owner: Full administrative access
- Admin: Manage users and settings
- Member: Standard user access
- Guest: Limited access
Custom roles
Define application-specific roles:Permission checking
Check user permissions in application logic:User invitations
Invite users to join organizations:SCIM provisioning
Automate user lifecycle management with SCIM:- Automatic user creation: Users are created when assigned in IdP
- Profile sync: User attributes stay synchronized
- Group-based access: Map IdP groups to organization roles
- Deprovisioning: Users are removed when unassigned in IdP
Next steps
Authorization
Implement role-based access control
SCIM provisioning
Automate user lifecycle management
Organizations API
Complete organizations API reference
Users API
Complete users API reference