Manage users and organization memberships via directory sync providers.
This feature is currently in preview. Please reach out to support@workos.com or via your team’s WorkOS Slack channel if you would like Directory Provisioning enabled.
Directory provisioning gives IT admins full control over user and membership management, eliminating the need for manually adding or removing members. Users from a directory are pre-provisioned and managed by their Identity Provider.
A Directory Sync integration will need to be configured for every organization that wants to source users and memberships via directory provisioning. Directories can be set up via the WorkOS Dashboard with Setup Links. You can also integrate the Admin Portal with your app to generate links to configure directories.
The following directory sync providers are supported with directory provisioning:
If you are interested in directory provisioning support from a directory sync provider not listed above, please reach out to support@workos.com or via your team’s WorkOS Slack channel.
Users provisioned through a directory with an email domain included in the organization’s domain policy will be automatically added as members of the organization, without needing an invitation.
Other users are created with pending
memberships and receive an email invitation to join the organization. Pending members cannot sign in until the invitation is accepted, at which point they become active organization members.
Invitation emails can be disabled if you prefer to manage invitations with a custom approach.
In addition to provisioning new users, any updates to existing users and de-provisioning events will be reflected in User Management.
Users with email addresses included in the organization’s domain policy are fully managed by the directory. Updates to their attributes from the directory will override changes made through SSO, the API, or manually in the dashboard.
Other users, with email domains that aren’t included in the domain policy, will not be fully managed by the directory, so updates made via SSO, API, or manually in the dashboard will persist.
When a user is de-provisioned in the directory, the status of their corresponding organization membership will be set to inactive
. While the user will no longer be able to sign in to the organization, the membership and user are not automatically deleted.
If a user is re-provisioned in the directory, their organization membership will be reactivated with its previous role and its status will be set to active
.
Below is a list of directory provisioning and deprovisioning actions and the corresponding changes triggered in User Management. If you’re using standalone Directory Sync, refer to the standalone Directory Sync documentation.
Directory Action | Changes triggered in WorkOS | Event(s) Emitted |
---|---|---|
Directory user provisioned | User and organization membership objects created. | user.created, organization_membership.created |
Directory user info updated | If the user’s email domain is included in the organization’s domain policy, any updates to the user’s name will be reflected on the user object. Otherwise, the user object will not be modified. User email address is always immutable. | user.updated |
Directory user deprovisioned | Organization membership deactivated and all sessions for the user are revoked. Their role is reset to the default role. | organization_membership.updated |
Directory user reactivated | Organization membership reactivated. | organization_membership.updated |
Directory users need to have a primary email address to be provisioned in User Management. If the directory user is missing a primary email, they won’t be provisioned. Additionally, if the primary email of a directory user is shared by another directory user, only one will be provisioned in User Management, as emails are unique to User Management users.
The email address on the User object is immutable, but the email on the underlying directory user object will be modified.