Deactivate the specified user account. The permission to make use of this resource is exposed by the lifecycle.enablement
privilege.
You can optionally set a message associated with the block. If none is supplied, a default message will be used.
AccountId
RequiredAn object containing a message
string
Everything went fine, nothing to return.
1
2
3
4
5
6
7
curl --request POST \
--url 'https://api.atlassian.com/users/{account_id}/manage/lifecycle/disable' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"message": "On 6-month suspension"
}'
Activates the specified user account. The permission to make use of this resource is exposed by the
lifecycle.enablement
privilege.
User accounts that were deactivated due to US export controls cannot be reactivated using this API. If you believe the account was incorrectly blocked, please contact Atlassian Support.
User accounts that have been deleted need the deletion to be canceled before reactivating.
AccountId
RequiredEverything went fine, nothing to return.
1
2
3
curl --request POST \
--url 'https://api.atlassian.com/users/{account_id}/manage/lifecycle/enable' \
--header 'Authorization: Bearer <access_token>'
This API will:
Specifications:
Learn more about deleting a managed account.
Learn the fastest way to get the paramaters and delete account with a detailed tutorial.
The permission to make use of this resource is exposed by the lifecycle.delete
privilege. Learn more about Get user management permissions API to manage the specified user.
AccountId
RequiredSuccess
1
2
3
4
curl --request POST \
--url 'https://api.atlassian.com/users/{account_id}/manage/lifecycle/delete' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
This API will:
Specifications:
The permission to make use of this resource is exposed by the lifecycle.delete
privilege. Learn more about Get user management permissions API to manage the specified user.
AccountId
RequiredSuccess
1
2
3
4
curl --request POST \
--url 'https://api.atlassian.com/users/{account_id}/manage/lifecycle/cancel-delete' \
--header 'Authorization: Bearer <access_token>' \
--header 'Accept: application/json'
Rate this page: