Deactivate user account via API

Hi.
Trying to deactivate a user in JIRA cloud using the API (POST /users/{account_id}/manage/lifecycle/disable) but getting this error:

{"key":"forbidden.action","context":{"allowed":false,"reason":{"key":"externalDirectory.google"}},"errorKey":"forbidden.action","errorDetail":
{"allowed":false,"reason":{"key":"externalDirectory.google"}}}%

We had a google sync happening previously but we disabled when it was no longer free.

Is there something further I need to do to disable google sync in order to get deactivate a user account via API?

Note, we also have Trello product that is also set up with Google authentication.

Any insight is appreciated

L.

1 Like