<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
System Status
Announcements
Announcements
Search
Search
Select Language

Creating and Customizing Attributes for a Custom Okta SAML Application Using Profile Mappings

Single Sign-On
Okta Classic Engine
Okta Identity Engine

Overview

Customizing Security Assertion Markup Language (SAML) attribute statements allows administrators to configure individual values for assigned users of an application. Configure these custom attributes by creating an attribute statement using the appuser profile and mapping the variables in the Okta application profile mappings, which resolves the issue.

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Single Sign-On (SSO)
  • Custom Security Assertion Markup Language (SAML)
  • Disabled System for Cross-domain Identity Management (SCIM) / Provisioning

Cause

Custom SAML attribute statements that use user.<attribute_name> instead of appuser.<attribute_name> do not allow per-user attribute customization because the user profile applies a shared value across all users rather than a user-specific value scoped to the application assignment.

Solution

How Are Custom SAML Attributes Created and Mapped for Individual Users?

Define and Configure a Custom SAML Attribute Statement in Okta and configure the profile mappings to allow individual user attribute customization.

  1. Create an attribute statement for the custom SAML application. Instead of using user.<attribute_name>, use appuser.<attribute_name>. For example, use appuser.title instead of user.title.

 Attribute-statements  

  1. Set up the profile mappings for the application.
  2. When adding the attribute, select the Data type required by the application for the SAML assertion.
  3. Enter an arbitrary value for the Display name.
  4. Enter a Variable name that exactly matches the <attribute_name> specified in the attribute statement. For example, if using appuser.title, the variable name must be title.

Add attribute

 

NOTE: The administrator chooses the <attribute_name> arbitrarily; the only requirement is that it matches both the attribute statement and the profile mapping attribute name.

 

Editing User Assignments and Overriding Profile Mappings

Apply per-user attribute overrides through the user's application assignment.

Once the application is configured, the attribute appears in the user's application assignment and accepts edits. Administrators can override the profile mappings with a value that applies only to that specific user. If the configuration requires changes using Okta Expression Language, apply them through the application's profile mappings.

 

Edit User Assignment

 

Related References

Loading
Creating and Customizing Attributes for a Custom Okta SAML Application Using Profile Mappings | Okta Support