跳到主要内容

getAllProfiles

EmployeeFullArrayWrapper getAllProfiles(count, startIndex, filterBy, sortBy, sortOrder, filterSeparator, filterValue)

GET /api/2.0/people

Get the active profiles

Returns a page of the working accounts of the portal, with the full profile of each of them. It reports only the accounts whose status is Active, so disabled accounts and open invitations are never listed - use GET api/2.0/people/status/{status} for those, or GET api/2.0/people/filter to search across every state. The caller has to be a room admin, a DocSpace admin or a People module admin; a member or a guest gets 403. The call is read-only, paged by count and startIndex, ordered by sortBy and sortOrder, and reports the number of matches in the total count of the response. Narrow it with filterValue on the name and the email, and with filterBy set to group to keep only the members of the group whose ID is passed in filterValue.

Parameters​

NameInTypeDescriptionNotes
countqueryInteger (int32)The size of the page. It defaults to 100, which is also the largest value the operation accepts.[optional] [example: 25] [min: 1] [max: 100]
startIndexqueryInteger (int32)The number of matches to skip before the page starts. It defaults to 0, and the total number of matches is reported in the total count of the response.[optional] [example: 0]
filterByqueryStringThe only recognised value is group, which makes filterValue the ID of the group to keep the members of. Any other value, and omitting the field, applies no group filter.[optional] [example: group]
sortByqueryStringWhat to order the accounts by, compared without regard to case: FirstName, LastName, DisplayName, Type, Email, Department, UsedSpace, CreatedBy or RegistrationDate.[optional] [example: DisplayName]
sortOrderquerySortOrderThe direction of the ordering: Ascending, which is the default, or Descending.[optional] [example: Ascending] [enum: 0, 1]
filterSeparatorqueryStringThe character that splits filterValue into several terms, of which any one may match. Omit it to split the value on spaces instead, in which case every term has to match.[optional] [example: ,]
filterValuequeryStringThe text to match against the name and the email of the account, case-insensitively. Omit it to apply no text filter.[optional] [example: John]

Responses​

Status codeDescriptionTypeResponse headers
200A page of active accounts, with their full profilesEmployeeFullArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400A parameter has the wrong type, or the count is outside its allowed range--
403The caller is a member or a guest--
500The filterBy is group and the filterValue is not a GUID--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
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