This article describes how to bulk delete groups via Postman.
NOTE: Postman and Rockstar are third-party tools. Okta is not responsible for any changes to the application, and Support cannot troubleshoot issues with it. Okta strongly recommends testing Runner with a small batch of users before running the call for all users.
- Bulk Delete Groups
- Postman
- API
- Postman
- Group Administration
- Rockstar Browser Extension
Prerequisites:
- Postman is configured for the org environment as described in How to Integrate Postman with Okta;
- An Okta Org;
- Okta API collections imported into Postman;
- A CSV file with the rules that should be modified;
- Rockstar browser extension.
In order to perform a bulk deletion of users via Postman, review the video below or follow the steps:
-
Generate a CSV file containing the identification numbers of the desired groups to be deleted, which can be achieved through the utilization of the Rockstar Browser extension and its Export Groups function.
-
The column name for the identification numbers in the CSV file must be altered to groupId (with case sensitivity observed) with the following format:
-
Create the following call inside Postman :
Details on how to set up Postman can be found on the How to Integrate Postman with Okta article:
DELETE {{url}}/api/v1/groups/{{groupId}} -
Create a new collection in Postman and add only the call needed (delete) inside it.
- Go to Groups collection.
- Click on Remove Group call.
- Click Save As.
- Name the call "Delete Groups".
- Select the Bulk Remove Groups Collection that was created.
- Save to Bulk Remove Group.
-
Open Postman Runner and select the collection, environment, and iterations (if there are many requests, an Admin can add a delay between calls to not hit the API Rate Limit). The CSV file should look like the one from the screenshot below and then run the call.
Related References
- Test the Okta REST APIs using Postman
- Why You Should Migrate to OAuth 2.0 From Static API Tokens
- Implement OAuth for Okta
- Import a Postman Collection
- OAuth 2.0 Scopes
- Implement the Authorization Code with PKCE flow
- Okta API Error Codes and Descriptions
- Test the Okta REST APIs using Postman
- Postman Collections
- Using CSV and JSON Data Files in the Postman Collection Runner
- Core Okta API
- How to Integrate Postman with Okta
- Using the Rockstar Browser Extension
