Overview
This article will guide you through copying an Okta user attribute to another attribute using Okta Workflows.
Solution
The solution has two flows:
- List users: list all users to update.
- Copy user profile attribute – helper: copies a profile attribute to another attribute for each user.
List users
The List users flow lists all users to update.
List users – flow.
How the flow works
- The Okta-List User with Search card lists (finds) users from a group to update. The card finds all users except those with a status of ‘DEPROVISIONED’, since it does not specify any input parameters. The card utilizes the streaming option to direct users to a helper flow.
Copy user profile attribute – helper
The helper flow copies a profile attribute to another attribute for each user.
Copy user profile attribute – flow.
How the flow works
- Since the Helper Flow uses the streaming option, it has two fields: Record and State. The Record field holds the current user and defines the ID field, which is the user ID.
- The Okta-Read User card reads the Preferred language attribute to copy.
- The Okta-Update User card updates a user’s properties. This flow copies (updates) the Custom 1 user profile property with the value of the Preferred language attribute.
As an optional step, after copying the Preferred language to the Custom 1 attribute, an admin could change the Custom 1 attribute to read-only in the Admin Console.
Related References
- Update a Profile Property for All Okta Users Using Workflows
- Update a Profile Attribute for All Users in an Okta Group Using Workflows
