Automation: Bulk delete portal customers
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Purpose
This article explains how to bulk delete portal customers using automation.
Solution
- First, the room will pull all users from the site using the rest same point mentioned below.
- Then, using smart value branching, the rule will iterate through each user returned by the first webhook.
- The condition will ensure that only portal customers are selected for deletion.
- Finally, another webhook will delete the selected customer using another rest endpoint.
Note: you might have to use pagination in the first webhook if you have more than 50 customers to delete. By default, the rest call returns the first 50 users. Ref: Get all users