Fuselage
Powered By GitBook
Deactivate Idle Users
Deactivate Idle users
Requires edit-other-user-active-status permission.
URL
Requires Auth
HTTP Method
/api/v1/users.deactivateIdle
yes
POST

Payload

Argument
Example
Required
Description
daysIdle
2
Required
The days idle.
role
admin
Optional, default user
User role.

Example Call - Via userId

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
-H "Content-type:application/json" \
4
http://localhost:3000/api/v1/users.deactivateIdle \
5
-d '{ "daysIdle": 2, "role": "admin" }'
Copied!

Example Result

1
{
2
"count": 1,
3
"success": true
4
}
Copied!

Change Log

Version
Description
3.1.0
Added
Last modified 2mo ago