Users activate/deactivate

General information

Available ONLY for JIRA administrators


Activate/deactivate users

Method type - POST

URL:

  • {JIRA_URL}/rest/extender/1.0/user/activate

  • {JIRA_URL}/rest/extender/1.0/user/deactivate

You cannot deactivate a user who is set as component leader or project lead, such users will be omitted.

Request format - JSON

Example request

  • JSON for one user

1 2 3 { "users": ["user"] }
  • JSON for several users

1 2 3 { "users": ["user1", "user2", "etc"] }

Response format - JSON

Example response

1 2 3 4 5 6 7 { "activated": [ "user" ], "skipped": [], "message": "all users activated" }
1 2 3 4 5 6 7 { "deactivated": [ "user" ], "skipped": [], "message": "all users deactivated" }
1 2 3 4 5 6 7 8 { "activated": [], "skipped": [ "user1", "user2" ], "message": "users deactivated, some users skipped" }
1 2 3 4 5 6 7 8 { "deactivated": [], "skipped": [ "user1", "user2" ], "message": "users deactivated, some users skipped" }