VOOZH about

URL: https://www.javacodegeeks.com/2022/05/how-to-delete-deactivated-users-in-workflows.html

⇱ How to Delete Deactivated Users in Workflows - Java Code Geeks


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 delete deactivated users in Workflows?

There are two steps and two flows to delete deactivated users:

  1. Get deactivated users (flow 1)
  2. Send them (via stream records) to a helper flow to be deleted (flow 2)

The first flow looks like this (you can start the flow on schedule or run it manually via the Test button):

πŸ‘ Image
Get deactivated users flow

The flow uses Okta – List Users with Search card where Status is set to DEPROVISIONED. In the card’s Options, the Result Set is set to Streaming Matching Records. The streaming option directly streams each record to the selected helper flow.

πŸ‘ Image
Streaming Matching Records option

The helper flow looks like this:

πŸ‘ Image
Delete user helper flow

The Helper Flow card has two input: Record and State (both Object type) Record is the current record passed to this helper flow. The current record has many attributes. For this example you are interested in the user’s ID (type Text) which is passed to Okta – Delete User card to delete the user. The State parameter is used to pass any additional attributes to the helper flow. You don’t have any in this example so it’s ok to leave it empty.

Note: If you use the delete action on an active Okta user, the user will be deactivated and a second Delete User action is necessary to delete the user.

https://help.okta.com/wf/en-us/Content/Topics/Workflows/connector-reference/okta/actions/deleteuser.htm

Published on Java Code Geeks with permission by Max Katz , partner at our JCG program. See the original article here: How to Delete Deactivated Users in Workflows

Opinions expressed by Java Code Geeks contributors are their own.

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

πŸ‘ Photo of Max Katz
Max Katz
May 12th, 2022Last Updated: May 9th, 2022
0 112 1 minute read
Back to top button
Close
wpDiscuz