Rate this page:
Lifecycle APIs
POST /users/{account_id}/manage/lifecycle/disable
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.
string
The ID of the user
[a-zA-Z0-9_|:-]{1,128}
string
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"
}'
Everything went fine, nothing to return.
POST /users/{account_id}/manage/lifecycle/enable
Activates the specified user account. The permission to make use of this resource is exposed by the lifecycle.enablement
privilege.
string
The unique identifier of the user to activate.
[a-zA-Z0-9_|:-]{1,128}
1 2 3
curl --request POST \
--url 'https://api.atlassian.com/users/{account_id}/manage/lifecycle/enable' \
--header 'Authorization: Bearer <access_token>'
Everything went fine, nothing to return.
POST /users/{account_id}/manage/lifecycle/delete
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.
string
Unique ID of the user's account that you are deleting. Use the Get users in an organization API to get the accountId.
[a-zA-Z0-9_|:-]{1,128}
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'
Success
Content type | Value |
---|---|
application/json |
Example response (application/json)
1 2 3
{
"message": "Success"
}
POST /users/{account_id}/manage/lifecycle/cancel-delete
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.
string
Unique ID of the user's account that you are deleting. Use the Get users in an organization API to get the accountId.
[a-zA-Z0-9_|:-]{1,128}
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'
Success
Content type | Value |
---|---|
application/json |
Example response (application/json)
1 2 3
{
"message": "Success"
}
Rate this page: