Hey š
in an automation rule I want to look up for specific accounts, that start with "qm:", customer accounts.
I checked out the User management REST API The User management REST API REST API (atlassian.com)
and the Jira Cloud platform API The Jira Cloud platform REST API (atlassian.com).
I can't fiddle out, how I could get a list of those accounts, so that I can do further processing with it, e.g. deactivate the accounts by using the User management API /users/{account_id}/manage/lifecycle/disable
Cheers, Alex
Edit:
I have also tried the automation rule from this support article: Automation: Bulk delete portal customers | Jira | Atlassian Documentation
The problem with that is, that the web response tells me, account can't be deleted, because user has left comment(s).
Sample from audit log:
Error publishing web request. Response HTTP status:400
Error response HTTP body:
{"errorMessages":[],"errors":{}}, {"errorMessages":["Cannot delete user because 1 issues were reported by this person.","Cannot delete user because they have made 1 comments."],"errors":{}}, {"errorMessages":["Cannot delete user because they have made 4 comments."]
Hi @Alexander Ziegltrum ,
You can try the below API to get the list of customers in the project. This API is still in experimental mode.
curl --request GET \ --url 'https://your-domain.atlassian.net/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
Please check this https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/#api-rest-servicedeskapi-servicedesk-servicedeskid-customer-get for more details.
Thanks,
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.