# Bulk account disable using Postman

**URL:** <https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847>\
**Category:** SHF Discussion and Questions\
**Tags:** lifecycle-management, sailpoint-identity-security\
**Created:** [July 23, 2024, 9:46pm UTC](https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847 "2024-07-23T21:46:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agata](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@Agata](https://developer.sailpoint.com/discuss/u/Agata)\
**Post date:** [July 23, 2024, 9:46pm UTC](https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847/1 "2024-07-23T21:46:54Z")

</div>

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:

```auto
{
	"id":"{{id}}"
}

```

Path Variables:

Key: id  
Value: empty

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![ajmerasunny1](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ajmerasunny1](https://developer.sailpoint.com/discuss/u/ajmerasunny1)\
**Post date:** [July 23, 2024, 10:01pm UTC](https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847/2 "2024-07-23T22:01:11Z")

</div>

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](https://developer.sailpoint.com/discuss/t/bulk-account-disabling/29948/4)

---

<div class="post-metadata">

**Author:** ![shaileeM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/shaileem/32/15314_2.png) [@shaileeM](https://developer.sailpoint.com/discuss/u/shaileeM)\
**Post date:** [July 24, 2024, 2:01am UTC](https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847/3 "2024-07-24T02:01:17Z")

</div>

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)](https://www.youtube.com/watch?v=RH8b3gbujPY)

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

---

<div class="post-metadata">

**Author:** ![schattopadhy](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/schattopadhy/32/8854_2.png) [@schattopadhy](https://developer.sailpoint.com/discuss/u/schattopadhy)\
**Post date:** [July 24, 2024, 4:49am UTC](https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847/4 "2024-07-24T04:49:00Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [September 22, 2024, 4:49am UTC](https://developer.sailpoint.com/discuss/t/bulk-account-disable-using-postman/73847/5 "2024-09-22T04:49:59Z")

</div>

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