# Deactivate user account via API

**URL:** <https://community.developer.atlassian.com/t/deactivate-user-account-via-api/57112>\
**Category:** Jira Cloud\
**Tags:** rest-api\
**Created:** [March 30, 2022, 6:30pm UTC](https://community.developer.atlassian.com/t/deactivate-user-account-via-api/57112 "2022-03-30T18:30:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuisZuniga](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/luiszuniga/32/43933_2.png) [@LuisZuniga](https://community.developer.atlassian.com/u/LuisZuniga)\
**Post date:** [March 30, 2022, 6:30pm UTC](https://community.developer.atlassian.com/t/deactivate-user-account-via-api/57112/1 "2022-03-30T18:30:25Z")

</div>

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

```auto
{"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.
