Info |
---|
Get Users (version 1.3.2 and later) |
GET http://localhost:8090/rest/deactivateusers/1.0/reports/list/all/active/users
GEThttp://localhost:8090/rest/deactivateusers/1.0/reports/list/all/neverlogin/users
GEThttp://localhost:8090/rest/deactivateusers/1.0/reports/list/all/deactive/users
GEThttp://localhost:8090/rest/deactivateusers/1.0/reports/list/all/users
Query Parameters:
- days (Number) - Days
- Set 0 to get all the users.
- type (Number)
- 0 - Since
- 1 - Before
- group (String)
Response: [Status: 200]
Code Block |
---|
$ curl -u confuser -XGET \
http://localhost:8090/rest/deactivateusers/1.0/reports/list/all/active/users?type=0&days=30&group=confluence-users |
Info |
---|
Update User Attributes (version 1.3.2 and later) |
POST http://localhost:8090/rest/deactivateusers/1.0/utility/update/user/{username}
Path Parameters:
- username (String) - Jira username
Query Parameters:
- newEmail
- newDisplayName
- newUserName
- addGroup (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/croadmin/? \
newEmail=croadmin@noreply.com"
{"status":1,"message":"[Info] Updated User attributes ~ croadmin"}
$ |
Info |
---|
De-activate Users |
Status | |||||
---|---|---|---|---|---|
|
...
|
...
|
GETPOST http://localhost:8090/rest/deactivateusers/1.0/utility/de-activate/list/deactiveusersuser/{username} (version 1.3.2 and later)
Path Parameters:
- username (String) - Jira 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/deactiveuserscroadmin [{"crostatus":1,"message"thaikkp:"[Info] De-activated User - croadmin"} $ |
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} (version 1.3.2 and later)
Path Parameters:
- username (String) - Jira 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/croadmin {"status":1,"message":"[Info] Re-activated User - croadmin"} C:\> $ |
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" -XPOST -H "Content-Type:application/json" \ --data "['confluence-users']" \ http://localhost:8090/rest/deactivateusers/1.0/utility/removegroups/user/prasadvecroadmin {"status":1,"message":"[Info] Removed User Groups."} $ |
...
Code Block |
---|
$ curl -u"user:password" -XPOST -H "Content-Type:application/json" \ http://localhost:8090/rest/deactivateusers/1.0/utility/removeallgroups/user/prasadvecroadmin {"status":1,"message":"[Info] Removed User Groups."} $ |
...
Code Block |
---|
$ curl -u"user:password" -XGET \ http://localhost:8090/rest/deactivateusers/1.0/utility/list/notactive/users/last/60 ["croadmin","prasadveadminsuperadmin"] $ |
Status | |||||
---|---|---|---|---|---|
|
...
|
GET http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/{username}
Path Parameters:
- username (String) - Jira username
Data Fields:
- groups e.g. ["group1", "group2"]
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,"message":thaikkp"[Info] Re-activated User - mamathavm4"} C:\>$ |