How to Translate an Okta User ID Into a Google User ID

Okta Workflows how-to guides are questions and answers from weekly community office hours, MacAdmins Workflows Slack channel, and other places. Read all previous how-to guides

On to the question. 

How to translate an Okta user ID into a Google user ID?

Say you’re doing an off-boarding workflow, and want to trigger off-boarding based on the user account being deactivated in Okta. How do you translate an Okta user ID into a Google user ID (so you can deactivate the user in Google Workspace)?

The flow to do that has the following steps:

  1. A user deactivated event is triggered (Okta – User Deactivated card)
  2. Read the user information in order to get the user’s primary email (Okta – Read User)
  3. Then use the Google Workspace – Search Users card to search for the user with a specified email address
Finding a user in Google Workspace based on Okta user ID

Note that if Google Workspace – Search Users doesn’t find a user, the card will return null values. You can add logic to handle such case, for example:

Checking if a user was found

Thanks to Darren Jackson, IT Applications Engineer at Invitae, and Dmitri Altum, IT Engineer at Ramp for the question and answer. Darren and Dmitri are members of the MacAdmins Slack #okta-workflows channel.

Workflows are one hell of a drug

Darren Jackson

📺 Short how-to Workflows videos to help you become a better automation builder.

🔮 A collection of helpful Workflows tips.

Published by

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.