Versions Compared

Key

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

...

Department Administrators and users with a custom role can get lists of the existing users belonging to the departments they manage or their daughter departments. 

Request Headers

Header

Description

Authorization (required)Access token. You can obtain a token by making a request.
ParameterDescription
userIds (required)

The IDs of users you want to find.
You must enter at least two user IDs.

Response Parameters

ParameterDescription
userIdsAn array of user IDs that exist in the system.

Response Codes

Code

Text

Description

200Successful operationThe request has been successfully processed. 
400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission DeniedThe user doesn't have enough permissions to retrieve a list of users.

Sample Request

Code Block
languagexml
POST /users/find_existing
Host: api-learn.ispringlearn.com 
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE

<?xml version="1.0" encoding="UTF-8"?>
<request>
    <userIds>f738730a-f39e-11eb-bf6e-0242ac130033</userIds>
    <userIds>4cb0704f-3afd-11ec-852c-0242ac130005</userIds> // deleted user
</request>

...