Info |
---|
Update User Attributes |
POST http://localhost:8090/rest/deactivateusers/1.0/utility/update/user/{username}
Path Parameters:
- username (String) - Jira username
Query Parameters:
- newEmail
- newDisplayName
- newUserName
- addGroups (comma separated groups to add)
Response: [Status: 200]
Code Block |
---|
$ curl -u superadmin -XPOST -H "Content-Type:application/json" \
"http://localhost:8090/rest/deactivateusers/1.0/utility/update/user/prasadve/? \
newEmail=prasadvetest@noreply.com"
{"status":1,"message":"[Info] Updated User attributes ~ prasadve"}
$ |
Info |
---|
De-activate Users |
Status | |||||
---|---|---|---|---|---|
|
...
|
...
|
GETPOST http://localhost:8090/rest/deactivateusers/1.0/utility/de-activate/listuser/deactiveusers{username}
Response: [Status: 200]
Code Block |
---|
$ curl -u"usersuperadmin:passwordsuperadmin" -XGETXPOST -H "Content-Type:application/json" \ http://localhost:8090/rest/deactivateusers/1.0/utility/de-activate/listuser/deactiveusersprasadve [{"crostatus":1,"message"thaikkp:"[Info] De-activated User - prasadve"} $ |
Status | ||||||
---|---|---|---|---|---|---|
|
POST http://localhost:8090/rest/deactivateusers/1.0/utility/deactivate/user/{username}
...
- username (String) - Jira username
Data Fields:
- groups to remove e.g. ["group1", "group2"]
...
Code Block |
---|
$ curl -u"superadmin:superadmin" -XPOST -H "Content-Type:application/json" \ --data "['confluence-users']" \ http://localhost:8090/rest/deactivateusers/1.0/utility/deactivate/user/mamathavm4 {"status":1,"message":"[Info] De-activated User - mamathavm4"} $ |
Info |
---|
Re-activate Users |
Status | ||||||
---|---|---|---|---|---|---|
|
POST http://localhost:8090/rest/deactivateusers/1.0/utility/re-activate/user/{username}
Response: [Status: 200]
Code Block |
---|
$ curl -u"superadmin:superadmin" -XPOST -H "Content-Type:application/json" \
http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/prasadve
{"status":1,"message":"[Info] Re-activated User - prasadve"}
$ |
Status | ||||||
---|---|---|---|---|---|---|
|
POST http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/{username}
Path Parameters:
- username (String) - Jira username
Data Fields:
- groups to add e.g. ["group1", "group2"]
Response: [Status: 200]
Code Block |
---|
$ curl -u"superadmin:superadmin" -XPOST -H "Content-Type:application/json" \
--data "['confluence-users']" \
http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/mamathavm4
{"status":1,"message":"[Info] Re-activated User - mamathavm4"}
$ |
Note. It reverts rename prefix i.e. _inactive_ddmmyy
Status | ||||||
---|---|---|---|---|---|---|
|
...
Code Block |
---|
$ curl -u"user:password" -XGET \ http://localhost:8090/rest/deactivateusers/1.0/utility/list/notactive/users/last/60 ["croadmin","prasadveadmin"] $ |
Status | |||||
---|---|---|---|---|---|
|
...
|
GET http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/{username}
Path Parameters:
- username (String) - Jira username
Data Fields:
...
Response: [Status: 200]
Code Block |
---|
$ curl -u"superadminuser:superadminpassword" -XPOST -H "Content-Type:application/json" \ --data "['confluence-users']"XGET \ http://localhost:8090/rest/deactivateusers/1.0/utility/reactivatelist/user/mamathavm4deactiveusers {["statuscro":1,"messagethaikkp":"[Info] Re-activated User - mamathavm4"} $ |