Migrate from raw_attributes
How to migrate from raw_attributes and legacy standard attributes to custom attributes.
On April 15, 2026, two changes take effect across Directory Sync and SSO:
-
raw_attributeswill stop returning data. The field will return an empty object everywhere your integration consumes it:- API responses – when you fetch Directory Users, Directory Groups, or SSO Profiles
- Webhooks and Events API – on all Directory Sync user events (
dsync.user.created,dsync.user.updated,dsync.user.deleted) and group events (dsync.group.created,dsync.group.deleted,dsync.group.user_added,dsync.group.user_removed)
-
Top-level
job_title,username, andemailswill be removed from Directory User objects. These fields will returnnull(or[]foremails).
If your code reads from raw_attributes on Directory Users or SSO Profiles, contact us and we will automatically set up the equivalent custom attribute mappings across all of your existing connections. You then update your code to read from custom_attributes instead.
You can also configure custom attribute mappings yourself from the IdP Attributes page in the Dashboard. See Custom Attributes for Directory Sync or Custom Attributes for SSO for details.
raw_attributes via the SSO Profile or Directory User API, the migration above applies to you. Additionally, you can now access IdP attributes directly in AuthKit JWTs and the Organization Membership API – no standalone API call needed. See Custom Attributes in AuthKit.
If your code reads job_title, username, or emails from the top level of Directory User objects, you can migrate without contacting us:
- Update your code to read from
custom_attributeswith a fallback to the top-level field, then deploy. - Enable the equivalent predefined attribute in the WorkOS Dashboard.
This order ensures no data is missed during the transition – your code handles both locations until the predefined attribute is active.
emails only to get the user’s primary email address, you can use the email standard attribute instead, which remains on the top-level Directory User object.