Bulk account disable using Postman

Hi,

We have more than 1k accounts to be disabled in Identity Security Cloud.
I’ve followed the instructions how to disable a single account however when using collection in Postman with a .csv file I get the 405 Method not allowed message. Iteretion works so my guess is that I’m not using the correct uri for this: {path}v3/accounts/:id/disable

Body:

{
	"id":"{{id}}"
}

Path Variables:

Key: id
Value: empty

Thanks for your help!

I don’t believe this endpoint will allow you to achieve your goal. Instead, you could create a CSV file containing all the IDs and then write a script to iterate through them, passing each ID to the endpoint to disable all the accounts.

Reference
Bulk Account Disabling - Identity Security Cloud (ISC) / ISC Discussion and Questions - SailPoint Developer Community

3 Likes

Hi @Agata,

Perhaps you can use an Excel/CSV file with list of ids as input to the postman {path}v3/accounts/:id/disable API during the run.

You may refer to this as a quick tutorial: Loop Through a Data File | Postman Level Up (youtube.com)

Just a word of caution that doing bulk disable/delete APIs have a significant impact and hence better to review and test it thoroughly.

Thanks,
Shailee

2 Likes

Hi @Agata you can use postman collection runner it will help you to iterate but make sure your id is correct and csv is in right format with header .

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.