Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General information


Warning

Available ONLY for JIRA administrators





Activate/deactivate users

Method type - 

Status
colourGreen
titlePOST

URL:

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

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


Request format - 

Status
titleJSON



Example




Code Block
languagejs
themeFadeToGrey
titleJSON for one user
{
  "users": ["user"]
}



Code Block
languagejs
themeFadeToGrey
titleJSON for several users
{
  "users": ["user1", "user2", "etc"]
}



Response format - 
Status
titleJSON

Example




Code Block
languagejs
themeFadeToGrey
{
    "activated": [
        "user"
    ],
    "skipped": [],
    "message": "all users activated"
}


Code Block
languagejs
themeFadeToGrey
{
    "activated": [],
    "skipped": [
        "user1",
        "user2"
    ],
    "message": "users deactivated, some users skipped"
}



Code Block
languagejs
themeFadeToGrey
{
    "deactivated": [
        "user"
    ],
    "skipped": [],
    "message": "all users deactivated"
}


Code Block
languagejs
themeFadeToGrey
{
    "deactivated": [],
    "skipped": [
        "user1",
        "user2"
    ],
    "message": "users deactivated, some users skipped"
}