Best Practice for Enabling Accounts - Need Guidance

I have a list of employees and need to enable their accounts in the source system. The process I’m considering is:

Use a search query in Get List of Identities to retrieve the identities.
Loop through them one by one.
For each identity, use the Enable Account API to enable the account in the respective source.

Essentially, the idea is to find all the links associated with an identity and enable them in the source. Is this the best approach?

Thanks,
Anirban

if its for one or handful of sources, I would use accounts list API to get them and iterate over it. this way you have other account data to build your logic to enable/disable them

yes correct,

  1. Get List of Identities is a search query that returns a list of identities.

  2. A Loop is used to iterate through each identity.

  3. The HTTP Request calls the Accounts List API.

  4. I am not able to insert a loop inside another loop to iterate over the account IDs and enable the accounts.

Is there a constraint that prevents inserting a loop inside another loop?

Thanks,

Anirban

you may not be able to get this done using regular workflows due to limitations in the count of loops. you might want to check recursive workflows but i would execute this from an external script. but if you still want to give it a shot, you will need to have another workflow called from the loop in the first workflow the second workflow will have the loop to go over accounts for every identity in you first workflow loop.

is there 1000 of accounts? then ps scripts is the best option

Thanks Chelsea for your response, is there any reference which i refer how to call a sub-workflow from workflow in ISC , I want to explore it

Thanks,

You need to call a http operation in request url https://companyurl-sb.api.identitynow.com/beta/workflows/execute/external/your workflowid 162`

You need to divide the Workflow in two One to go over the accounts, the otherto do the enabling.

Thats the best approach