Configure how attributes map from identity providers to SSO Profiles.
WorkOS automatically normalizes a standard set of attributes from identity providers (IdPs) into the Single Sign-On (SSO) Profile object. More unique cases can be mapped by your customer admins. In this guide, we’ll explain how to map data from identity providers to the SSO Profiles.
Every SSO Profile comes with the following standard attributes. These are the core set of attributes that are common across all identity providers. These are structured fields with a guaranteed schema in the top-level SSO Profile payload.
Attribute | Description |
---|---|
idp_id | The user’s unique identifier, assigned by the identity provider. Different identity providers use different ID formats |
email | The user’s email |
first_name | The user’s first name |
last_name | The user’s last name |
For more detailed user information, you can opt-in to additional predefined attributes and define your own custom attributes. These attributes will appear in the custom_attributes
field on SSO Profile objects and can be configured in the WorkOS Dashboard.
Custom attributes are currently only supported for SAML SSO connections. If you are interested in custom attributes for OIDC and OAuth connections, please reach out to support.
When enabled, organization admins will we asked to map these attributes during SSO configuration in Admin Portal. These fields are always optional if enabled. These fields are named and schematized by WorkOS – they cannot be renamed.
Attribute | Type and description | Status |
---|---|---|
addresses | The user’s list of address objects (street_address , locality , region , postal_code , country , primary , raw_address ) | Optional |
cost_center_name | The user’s cost center name | Optional |
department_name | The user’s department name | Optional |
division_name | The user’s division name | Optional |
emails | The user’s list of email objects (type , value , primary ) | Optional |
employee_type | The user’s employment type | Optional |
employment_start_date | The user’s start date | Optional |
job_title | The user’s job title | Optional |
manager_email | The email address for the user’s manager | Optional |
username | The user’s username | Optional |
Predefined attributes can be enabled or disabled in the WorkOS Dashboard on the Identity Provider Attributes page.
For SSO Profiles, making changes to IdP attributes will take effect upon next sign-in.
Custom attributes can be utilized to enrich SSO Profiles with additional data from the identity provider. You can create attributes that appear as fields in the Admin Portal. Your customers can map these fields to the correct values in their system when setting up SSO with their identity provider.
Custom attributes can be created in the WorkOS Dashboard on the Identity Provider Attributes page.
For SSO Profiles, making changes to IdP attributes will take effect upon next sign-in.
When a custom attribute is deleted, SSO Profiles will retain these existing attribute values until the next sign-in.
If attribute data for a particular SSO connection has changed and is no longer mapped properly, you or the organization admin can edit the attribute mappings via the WorkOS Dashboard connection page or Admin Portal, respectively.
You can control the visibility of custom attribute mapping for Directory Sync and Single Sign-On flows in the Admin Portal at the environment and organization level.
The environment-level setting is controlled on the Identity Provider Attributes page in the WorkOS Dashboard.
Organization-level settings are controlled on an individual organization’s Attributes tab in the WorkOS Dashboard. Organizations mirror the environment-level settings by default.
Additional predefined and custom attributes are supported for all SAML SSO connections.
We do not currently support this functionality. Custom attributes must be defined in the WorkOS Dashboard first. Please reach out to support if you have a specific use case that you would like to discuss.
Attributes that cannot be mapped for a particular SSO Profile will result in a null
value for the attribute.