#58814·teleport

Okta User Sync login_rules support

Author: kopiczkoCreated Sep 5, 2025Updated Oct 1, 2026
Labelssaml-idpc-plidentity-governancec-btvoktac-smrx

The general problem is that the login_rules resources are not evaluated during Okta user sync but there are more related issues:

  • Okta user sync wipes out all traits (but groups) created from the SAML assertion attribute statement
  • By default user's profile sent from Okta's /api/v1/apps/{appId}/users endpoint is empty and the mapping for it has to be configured (instructions below)
  • Even if the profile mapping for the Okta app is configured, Teleport Okta user sync will add okta/ prefix to all attributes (apart from groups and username) so they are not compatible with those from the SAML assertion which are stored without any prefix
  • And on top of that Okta user sync doesn't evaluate login_rules resources

TODO:

  • Decide if we should preserve the User's traits from the SAML assertion. What should happen if the user logged in with another connector in the meantime?
  • Decide if we want to keep okta/ prefix for the traits created with Okta user sync. UPDATE: we probably do, because there is no way to align SAML profile and app profile
  • Evaluate login_rules during the Okta user sync
  • Make sure the above works for SCIM
  • Write a guide for configuring Okta SAML app user profiles

To configure app user's profile mapping for the Okta (SAML) app:

  1. Go to Directory -> Profile Editor -> in the Users tab (default) select Apps form filters -> click on your app name (not the Mappings)
  2. From there you can add attribute by clicking on + Add Attribute and then create a mapping for it by clicking Mappings and selecting Okta User To <your_app_name>
  3. Now it's a good idea to preview the mapping for a user (this can be done with the Preview input filed on the bottom left)
  4. If you are happy with the mapping click Save Mappings and Apply updates
  5. The new attributes should be synced on the the next Okta user sync