Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Response: [Status: 200]

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


Status
colourBlue
titleDe-Activate User

...

  • groups 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/deactivate/user/mamathavm4
{"status":1,"message":"[Info] De-activated User - mamathavm4"}
C:\>

Status
colourBlue
titleTrigger User De-Activation from CLI

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

Response: [Status: 200]

Code Block
$ 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"}
$

Status
colourBlue
titleRemove Defined Groups for User

...

  • groups e.g. ["group1", "group2"]

Response: [Status: 200]

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/prasadve
{"status":1,"message":"[Info] Removed User Groups."}
$

Status
colourBlue
titleRemove All Groups for User

...

  • username (String) - Jira username

Response: [Status: 200]

Code Block
$ 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."}
$

Status
colourBlue
titleGet Active Users Never login created before N days

...

  • days (Number) - Days

Response: [Status: 200]

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

Status
colourBlue
titleGet Active Users Not active LAST N Days

...

  • days (Number) - Days

Response: [Status: 200]

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

Status
colourBlue
titleRe-Activate User

...

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