GET http://localhost:8090/rest/deactivateusers/1.0/utility/list/deactiveusers

Response: [Status: 200]

$ curl -u"user:password" -XGET http://localhost:8090/rest/deactivateusers/1.0/utility/list/deactiveusers \
["cro","thaikkp"]
$


POST http://localhost:8090/rest/deactivateusers/1.0/utility/deactivate/user/{username}

Path Parameters:

Data Fields:

Response: [Status: 200]

$ 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"}
C:\>

POST http://localhost:8090/rest/deactivateusers/1.0/utility/run/userdeactivation

Response: [Status: 200]

$ curl -u"user:password" -XPOST -H "Content-Type:application/json" \
http://localhost:8090/rest/deactivateusers/1.0/utility/run/userdeactivation 
{"status":0,"message":"Users Updated - 0/2. Took 0.178 Seconds"}
$

POST http://localhost:8090/rest/deactivateusers/1.0/utility/legacyrun/userdeactivation

Response: [Status: 200]

$ curl -u"user:password" -XPOST -H "Content-Type:application/json" \
http://localhost:8090/rest/deactivateusers/1.0/utility/legacyrun/userdeactivation 
{"status":0,"message":"Users Updated - 0/2. Took 0.178 Seconds"}
$

Note:

POST http://localhost:8090/rest/deactivateusers/1.0/utility/removegroups/user/{username}

Path Parameters:

Data Fields:

Response: [Status: 200]

$ curl -u"user:password" -XPOST -H "Content-Type:application/json" --data "['confluence-users']" \
http://localhost:8090/rest/deactivateusers/1.0/utility/removegroups/user/prasadve
{"status":1,"message":"[Info] Removed User Groups."}
$

POST http://localhost:8090/rest/deactivateusers/1.0/utility/removeallgroups/user/{username}

Path Parameters:

Response: [Status: 200]

$ curl -u"user:password" -XPOST -H "Content-Type:application/json" \
http://localhost:8090/rest/deactivateusers/1.0/utility/removeallgroups/user/prasadve
{"status":1,"message":"[Info] Removed User Groups."}
$

GET http://localhost:8090/rest/deactivateusers/1.0/utility/list/neverlogin/users/create/before/{days}

Path Parameters:

Response: [Status: 200]

$ curl -u"user:password" -XGET \
http://localhost:8090/rest/deactivateusers/1.0/utility/list/neverlogin/users/create/before/60
["kumadmin","swethap"]
$

GET http://localhost:8090/rest/deactivateusers/1.0/utility/list/notactive/users/last/{days}

Path Parameters:

Response: [Status: 200]

$ curl -u"user:password" -XGET \
http://localhost:8090/rest/deactivateusers/1.0/utility/list/notactive/users/last/60
["croadmin","prasadveadmin"]
$

POST http://localhost:8090/rest/deactivateusers/1.0/utility/reactivate/user/{username}

Path Parameters:

Data Fields:

Response: [Status: 200]

$ 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"}
C:\>