AVAILABLE WITH BUSINESS SUBSCRIPTION

Method: ScheduledUserDeactivation

Permissions to Run the Request

Account Owner, Account Administrators, Department Administrators, or custom roles

Department Administrators and users with a custom role can set the date of automatic blocking only for the users belonging to the departments they manage and their sub-departments.

Parameters

Parameter

Type

Description

token (required)stringAccess token. You can obtain a token by making a request.
userId (required)stringThe ID of a user you want to deactivate on a specified date.
date (required)date

The date of automatic blocking in the yyyy-mm-dd format, for example, 2020-12-27.

Return Value

After the request has been completed, the system returns an object with the following properties:

Parameter

Type

Description

successbooltrue if the automatic blocking date is set.

Possible Errors

TypeDescription
Unknown userA user with the specified ID was not found.
Permission deniedA user does not have enough permissions to handle the operation.

Sample Call

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="https://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <ScheduledUserDeactivation>
      <credentials>
        <token>p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE</token>
       </credentials>
      <userId>string</userId>
      <date>2020-12-27</date>
    </ScheduledUserDeactivation>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML

Sample Response

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="https://schemas.xmlsoap.org/soap/envelope/"    
                   xmlns:ns1="https://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <ns1:successResult>
      <ns1:success>true</ns1:success>
    </ns1:successResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML