I am trying to create a workflow that is triggered when an identity is changed to “Inactive”, it sends an email that contains all of the accounts the identity has been removed from. I got it to somewhat work but the list of accounts is put into an array and is in CN=abc,OU=123 format and each account is comma separated. i want to be able to get those accounts either with just the actual display name or at least put each DN on a separate line but i am not having any luck doing either. is this even possible.
This is the output i am able to get so far:
I believe the displayName of the accounts you are listing here would be the distinguishedName, you can try changing that last variable there to something else that’s a little more user viewable. Those options should be viewable on the account page in IdentityNow.
I’m not certain on the best way to programmatically format the array that’s being returned, I don’t have extensive experience with that kind of templating, but I will continue looking into the issue, and if I find anything helpful I will update here with that info.
Hello Trenton, I just finished working on something very similar but the output in the email is a table. I also have it do a foreach loop through all the accounts.
Template context for get accounts {"accounts.$":"$.getAccounts.accounts","accounttype.$"}
Thank you. The displayName pulls back what i am needing. it pulls the user’s first and last name. As for the accounts, i am at a loss. no idea how to get what i am wanting +