Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (31 loc) · 1.45 KB

File metadata and controls

42 lines (31 loc) · 1.45 KB

Deactivate Idle Users

HTTP MethodURLRequires Auth
POST/api/v1/users.deactivateIdleyes

{% hint style="info" %} Permission required: edit-other-user-active-status {% endhint %}

Body Parameters

KeyExample ValueDescription
daysIdle*2The number of days that the user is idle.
roleadminThe user role. By default, the value is user.

{% hint style="info" %} The last login of the users is considered for deactivation. If no last login exists, then the date of creation is considered. {% endhint %}

Example Call

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

Example Response

{
  "count": 1,
  "success": true
}

Change Log

Version Description
3.1.0 Added