Hi all, I’m learning how to work with Workflows and have a need to develop one which detects when an identity’s lifecycle changes to Terminate, then checks if a specific source account is already disabled. If yes, do some task.
I believe a Comparison operator can manage checking if a source account is disabled, but I need help with the syntax. I have tried multiple ways to do this, but testing the workflow always fails to check if the account is disabled. Can someone help with the correct syntax here? Thank you.
So in order to achieve the above listed task, if you run a get Account API call you will see an attribute called disabled. This attribute holds the value as boolean. True meaning disabled and false meaning enabled.
Now coming on to the next part of your query, how can you achieve the syntaxing…
P.S the below attached snippet to help you figure out the json path. This path checks if the source name is Directory. If it is then gets you the value of the attribute disabled. You can assign this to some variable and then follow along with the steps.
I want to check if “disabled” is true for this specific account, and the test output does confirm that the account is in a disabled state already. Does this screenshot look right to you?
@nick_lubrano i see that you are comparing strings.Whereas it should be compare Boolean.
P.S the attached screenshot in order to compare the true/false for disabled flag.
Note that the value 2 is checkbox, and it is checked it means true.
Hence the expression becomes:
CHECKED:
If we keep the box checked; Expression will be:
Disabled==true
UNCHECKED:
If we keep the box un-checked; Expression will be:
Disabled==false