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:
- A user deactivated event is triggered (Okta – User Deactivated card)
- Read the user information in order to get the user’s primary email (Okta – Read User)
- Then use the Google Workspace – Search Users card to search for the user with a specified email address

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:

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.
Leave a Reply