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




JSON for one user
{
  "users": ["user"]
}


JSON for several users
{
  "users": ["user1", "user2", "etc"]
}


Response format - JSON

Example



{
    "activated": [
        "user"
    ],
    "skipped": [],
    "message": "all users activated"
}
{
    "activated": [],
    "skipped": [
        "user1",
        "user2"
    ],
    "message": "users deactivated, some users skipped"
}
{
    "deactivated": [
        "user"
    ],
    "skipped": [],
    "message": "all users deactivated"
}
{
    "deactivated": [],
    "skipped": [
        "user1",
        "user2"
    ],
    "message": "users deactivated, some users skipped"
}