跳到主要内容

getSearch

EmployeeFullArrayWrapper getSearch(query, filterBy, filterValue)

GET /api/2.0/people/@search/{query}

Search users

Searches the active accounts of the portal by a term taken from the path, and is the same search as GET api/2.0/people/search, which takes the term in the query string instead. Only a DocSpace administrator may call it; every other account, including a room admin, gets 403. Only accounts with the Active status are searched, so a pending invitation and a disabled account are never found - use GET api/2.0/people/filter to search across states. The call is read-only and is not paged: every match is streamed, without a total. filterBy set to group turns text into a group ID and keeps only the members of that group, so text then has to be a valid identifier. The answer holds full profiles.

Parameters​

NameInTypeDescriptionNotes
querypathStringThe term to look for, taken from the route. Only accounts with the Active status are searched.[required] [example: John]
filterByqueryStringThe only recognised value is group, which turns filterValue into a group ID and keeps only the members of that group. Any other value, and omitting the field, applies no group filter.[optional] [example: group]
filterValuequeryStringThe group ID to keep the members of, used only when filterBy is group. It has to be a valid identifier - a group name is not accepted.[optional] [example: 00000000-0000-0000-0000-000000000000]

Responses​

Status codeDescriptionTypeResponse headers
200The full profiles of the matching active accountsEmployeeFullArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The caller is not a DocSpace administrator--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

EmployeeFullArrayWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json