DEV Community

Max Katz for Okta Workflows

Posted on • Originally published at maxkatz.net on

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 the other how-to guides ⤵️

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

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

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.

Top comments (0)