
LosJ.77330 (Customer) asked a question.
Hello
I am working on a workflow to deactivate a user in a certain app when they are deactivated in Okta. But id like to have it check if they are assigned to the app first then only continue with deactivating if that piece is true. SCIM isnt an option and thus workflow is the next best thing for me to get this issue resolved somewhat quickly. I have a workflow now that just deactivates the user in the app when someone is deactivated in Okta but id like to add some more logic to avoid so many errors when the person doesn't actually belong to that app

@LosJ.77330 (Customer) - Interestingly enough I just built something along this same vein yesterday. I've attached a POC. It doesn't make any changes so you can test with it and see what I am doing here then integrate it. You will obviously need to obtain a Okta User ID for both a user that is in/not in the app to test with. And also adjust the "Get Assigned User for Application" to be the application you are targeting.
exampleappuserflow