Copy an Okta User Attribute to Another Using Okta Workflows

In this guide:

  1. Okta Workflows guides
  2. Copy a user attribute to another
  3. Related Okta Workflows guides
  4. Okta Workflows resources

Okta Workflows guides

Okta Workflows guides offer questions and answers from the Okta Workflows community office hours. They also come from the #okta-workflows channel on the Mac Admins Slack and other places. Read all the other guides.

How do you copy an Okta attribute to another using Okta Workflows?

This guide will teach you how to copy an Okta user attribute to another attribute using Okta Workflows.

Copy a user attribute to another

There are two flows:

  1. List users: list all users to update.
  2. 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.
List users – flow.

How the flow works

  1. 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 doesn’t 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.
Copy user profile attribute – flow.

How the flow works

  1. 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.
  2. The Okta-Read User card reads the Preferred language attribute to copy.
  3. 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.

Okta Workflows resources

🚀 New to Okta Workflows? The Getting Started with Okta Workflows page has all the resources to help you get started.

📺 Like learning from videos? Watch Okta Workflows videos.

❓Have a question? Ask during community office hours, post on the community forum, or email me.

🙋🏻‍♀️ Want to learn from the community? Join the #okta-workflows channel on the Mac Admins Slack.

📖 Want to learn more about Okta and automation? Take the Okta Workflows training on Okta Learning.

Leave a comment