Attribute mapping and offboarding
Okta Professional · Lesson 6 of 12 · 38:01
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Okta Certified Professional exam prep, use case 3, attribute mapping and offboarding. In this lesson: profile mappings, expressions, deactivating a user, and the difference between suspend, deactivate, and delete. Includes three original practice questions, with Hazelport Bakeries, a fictional chain of bakeries, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Right data in, no access out
The scheduling app wants each baker's full name, and a username in lowercase. Okta has the data, but in different attributes. And when a baker leaves, access must end in Okta and in the app, the same day.
Profile mappings
Mappings decide which attribute values flow between Okta and an app. Go to Directory, Profile Editor, find the app, and choose Mappings. The dialog has two tabs, one for each direction: from the app to the Okta user, and from the Okta user to the app. For each target attribute, you pick a source attribute or write an expression, then you choose Save Mappings, and Apply updates now.
Push options
Each mapping from Okta to the app also has a push option. Apply mapping on user create and update pushes the value when the account is created, and every time the profile changes. Apply mapping on user create only sets it once, at creation. And Do not map removes the mapping.
Expressions
Mappings can use the Okta Expression Language. You read an Okta attribute as user, a dot, and the attribute's name, such as user dot first name. You join values with a plus sign, for example the first name, a space, and the last name. And functions transform values, such as to lower case, or substring before, which keeps the part of an email address before the at sign.
Preview and save
Before saving, use Preview to test a mapping on a real user. A green result means the mapping is valid, and a red one shows an error. Hazelport maps the app's display name from the first and last names, and the app username from the Okta username, in lowercase.
Deactivating a user
Offboarding starts with deactivation. Go to Directory, People, and use More Actions, then Deactivate, or open the user's profile. The status becomes Deactivated, active sessions end, and app assignments and admin roles are removed, while group memberships are kept. In each app, the account is deactivated only where provisioning has Deactivate Users enabled.
Suspend, deactivate, delete
Suspend is the temporary option: no access, but app assignments and roles are kept, and Activate lifts it. Delete is permanent, and only possible after deactivation: the user leaves every group, the authenticators are removed, and the username can be reused. To verify an offboarding, check the status in Directory, People, check that the app is gone from the user's assignments, and look for the deactivation events in the System Log.
Recap
Let's recap. Mappings live in the Profile Editor, with one tab for each direction. Push options: create and update, create only, or do not map. Expressions read user attributes, join them with a plus sign, and transform them with functions. Deactivation removes app assignments and roles, and it deactivates app accounts where Deactivate Users is on. And suspend is temporary, while delete is permanent, and only after deactivation.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
The app’s employee code must be set when the account is created, and never changed by Okta after that. Which push option fits?
- Apply mapping on user create and update
- Apply mapping on user create only
- Do not map
- Sync Password
Show the answer
Apply mapping on user create only
Apply mapping on user create only sets the value once, when the account is created. “Apply mapping on user create and update” is wrong, because create and update would push every later change. “Do not map” is wrong, since Do not map would never set the value at all. And “Sync Password” is wrong, because Sync Password is about passwords, not attributes.
Which expression builds a display name such as Robin Hale, from the Okta first name and last name?
- user.firstName + " " + user.lastName
- user.firstName & user.lastName
- appuser.displayName
- String.toLowerCase(user.login)
Show the answer
user.firstName + " " + user.lastName
The plus sign joins the first name, a space, and the last name. “user.firstName & user.lastName” is wrong, because the expression language joins strings with a plus sign, not an ampersand. “appuser.displayName” is wrong, since it reads the app's own value, instead of building it from Okta. And “String.toLowerCase(user.login)” is wrong, because it only returns the username in lowercase.
A baker is deactivated in Okta, but the baker’s account in the scheduling app is still active. What is the most likely cause?
- Group memberships were kept
- The password was not reset
- The baker still has a session
- Deactivate Users is off for the app
Show the answer
Deactivate Users is off for the app
Okta deactivates the app account only when Deactivate Users is enabled in the app's provisioning. “Group memberships were kept” is wrong, because kept group memberships do not keep app accounts active. “The password was not reset” is wrong, since deactivation deletes the Okta password anyway. And “The baker still has a session” is wrong, because deactivation ends the active sessions in Okta.