...
GEThttp://localhost:8090/rest/deactivateusers/1.0/reports/list/all/deactive/users
GEThttp://localhost:8090/rest/deactivateusers/1.0/reports/list/all/new/usersGEThttp://localhost:8090/rest/deactivateusers/1.0/reports/list/all/users
Query Parameters:
- days (Number) - Days
- Set 0 to get all the users.
- type (Number)
- group (String)
Response: [Status: 200]
Code Block |
---|
$ curl -u jirauserconfuser -XGET \
http://localhost:8090/rest/deactivateusers/1.0/reports/list/all/active/users?type=0&days=30&group=confluence-users |
...
Code Block |
---|
$ curl -u superadmin -XPOST -H "Content-Type:application/json" \
"http://localhost:8090/rest/deactivateusers/1.0/utility/update/user/prasadvecroadmin/? \
newEmail=prasadvetest@noreplycroadmin@noreply.com"
{"status":1,"message":"[Info] Updated User attributes ~ prasadvecroadmin"}
$ |
...
Code Block |
---|
$ curl -u"superadmin:superadmin" -XPOST -H "Content-Type:application/json" \
http://localhost:8090/rest/deactivateusers/1.0/utility/de-activate/user/prasadvecroadmin
{"status":1,"message":"[Info] De-activated User - prasadvecroadmin"}
$ |
Status |
---|
| |
---|
colour | Blue |
---|
title | De-Activate User (Advance) |
---|
|
...
Code Block |
---|
$ curl -u"superadmin:superadmin" -XPOST -H "Content-Type:application/json" \
http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/prasadvecroadmin
{"status":1,"message":"[Info] Re-activated User - prasadvecroadmin"}
$ |
Status |
---|
| |
---|
colour | Blue |
---|
title | Re-Activate User (Advance) |
---|
|
...
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 |
---|
| |
---|
colour | Blue |
---|
title | Get De-Activated Users |
---|
|
...