Hello,
I use Jira Server 7.6.3, so i try to use this api: https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/user-updateUser.
I want to make user Unactive.
First i get user info via browser: JIRAURL/rest/api/2/user?username=nowakor and copied all response.
{
"self": "JIRAURL/rest/api/2/user?username=xxx",
"key": "xxx",
"name": "xxx",
"emailAddress": "xxx@gmail.com",
"avatarUrls": {
"48x48": "JIRAURL/secure/useravatar?avatarId=10122",
"24x24": "JIRAURL/secure/useravatar?size=small&avatarId=10122",
"16x16": "JIRAURL/secure/useravatar?size=xsmall&avatarId=10122",
"32x32": "JIRAURLl/secure/useravatar?size=medium&avatarId=10122"
},
"displayName": "xxx [test]",
"active": true,
"timeZone": "Europe/Warsaw",
"locale": "pl_PL",
"groups": {
"size": 1,
"items": []
},
"applicationRoles": {
"size": 1,
"items": []
},
"expand": "groups,applicationRoles"
}
After that i did this PUT request:
{
"active":false,
"displayName": "xxx test2",
"emailAddress": "xxx2@gmail.com",
"active":false,
}
Name and email has changed but active status hasn't. Do you have any solutions?