POST api/Account/GetUsers

Gets the list of users based on advanced filtering. The role of operator or higger is required and if user is operator, the user must have it enabled in the customer settings. Pagination is supported.

Request Information

URI Parameters

None.

Body Parameters

Filter parameters

UsersFilterPost
NameDescriptionTypeAdditional information
PageIndex

The requested page index

integer

None.

PageSize

The requested page size

integer

None.

UserName

Filter by UserName, if set

string

None.

Email

Filter by Email, if set

string

None.

IsEndUser

Filter by IsEndUser, if set

boolean

None.

IsSmartUser

Filter by IsSmartUser, if set

boolean

None.

IsOperator

Filter by IsOperator, if set

boolean

None.

IsSuperOperator

Filter by IsSuperOperator, if set

boolean

None.

IsAdministrator

Filter by IsAdministrator, if set

boolean

None.

CustomerId

Filter by Customer, if set

integer

None.

LastUpdatedDateFromUtc

Filter by the date of the last user update - from.

date

None.

LastUpdatedDateUntilUtc

Filter by the date of the last user update - until.

date

None.

Request Formats

application/json, text/json

Sample:
{
  "PageIndex": 0,
  "PageSize": 10,
  "UserName": null,
  "Email": null,
  "IsEndUser": null,
  "IsSmartUser": null,
  "IsOperator": null,
  "IsSuperOperator": null,
  "IsAdministrator": null,
  "CustomerId": null,
  "LastUpdatedDateFromUtc": null,
  "LastUpdatedDateUntilUtc": null
}

application/xml, text/xml

Sample:
<UsersFilterPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <CustomerId i:nil="true" />
  <Email i:nil="true" />
  <IsAdministrator i:nil="true" />
  <IsEndUser i:nil="true" />
  <IsOperator i:nil="true" />
  <IsSmartUser i:nil="true" />
  <IsSuperOperator i:nil="true" />
  <LastUpdatedDateFromUtc i:nil="true" />
  <LastUpdatedDateUntilUtc i:nil="true" />
  <PageIndex>0</PageIndex>
  <PageSize>10</PageSize>
  <UserName i:nil="true" />
</UsersFilterPost>

Response Information

Resource Description

HttpStatusCode 200 OK or 400 BadRequest with Message.

GetUsersResult
NameDescriptionTypeAdditional information
PagedUsers

A page with Users.

RequestorUser

None.

Response Formats

application/json, text/json

Sample:
{
  "PagedUsers": {
    "PageIndex": 0,
    "PageSize": 200,
    "TotalItems": 2,
    "TotalPages": 1,
    "Items": [
      {
        "UserProviderKey": "7d5073e2-4fdf-48d7-967e-e6da555417b7",
        "UserName": "john.doe",
        "Email": "john.doe@domain.com",
        "FirstName": "John",
        "LastName": "Doe",
        "MiddleName": null,
        "DisplayName": "John Doe",
        "NoteBesideName": null,
        "FullName": "John Doe",
        "IsApproved": true,
        "IsEndUser": true,
        "IsSmartUser": false,
        "IsOperator": false,
        "IsSuperOperator": false,
        "IsAdministrator": false,
        "TimeZoneId": "Central Europe Standard Time",
        "ExternalAccount": false,
        "EmailAccount": false,
        "Customer": null,
        "CustomerId": null,
        "Customers": null,
        "Phones": [
          "+420 732 389 583"
        ],
        "AdminNote": "Information about john doe for administrators",
        "OperatorNote": null,
        "AdditionalInformation": "Everything else",
        "SkypeName": "JohnDoeSkype",
        "OperatorGroupIds": null,
        "InternalGroupIds": null,
        "Color": null,
        "Initials": null,
        "PhotoLastUpdatedUtc": null,
        "CustomUserFieldsHash": 0,
        "FieldData": null,
        "LastUpdatedUtc": null,
        "Language": 0,
        "Anonymized": false,
        "Tags": [
          {
            "Id": 1,
            "Name": "Sample tag",
            "Static": true,
            "Color": "#ffffff",
            "Type": 2
          },
          {
            "Id": 2,
            "Name": "Sample 2",
            "Static": true,
            "Color": "#fafafa",
            "Type": 2
          }
        ],
        "ExternalId": null,
        "ManagerKey": null,
        "Company": null,
        "Department": null,
        "Division": null,
        "EmployeeId": null
      },
      {
        "UserProviderKey": "f22bf46d-07f8-4c33-a6a9-bbd3a1dff927",
        "UserName": "jane.doe",
        "Email": "jane.doe@domain.com",
        "FirstName": "Jane",
        "LastName": "Doe",
        "MiddleName": null,
        "DisplayName": "Jane Doe",
        "NoteBesideName": null,
        "FullName": "Jane Doe",
        "IsApproved": true,
        "IsEndUser": true,
        "IsSmartUser": false,
        "IsOperator": false,
        "IsSuperOperator": false,
        "IsAdministrator": false,
        "TimeZoneId": "Central Europe Standard Time",
        "ExternalAccount": false,
        "EmailAccount": false,
        "Customer": null,
        "CustomerId": null,
        "Customers": null,
        "Phones": [
          "+420 732 389 584"
        ],
        "AdminNote": "Information about jane doe for administrators",
        "OperatorNote": null,
        "AdditionalInformation": "Something else",
        "SkypeName": "JaneDoeSkype",
        "OperatorGroupIds": null,
        "InternalGroupIds": null,
        "Color": null,
        "Initials": null,
        "PhotoLastUpdatedUtc": null,
        "CustomUserFieldsHash": 0,
        "FieldData": null,
        "LastUpdatedUtc": null,
        "Language": 0,
        "Anonymized": false,
        "Tags": null,
        "ExternalId": null,
        "ManagerKey": null,
        "Company": null,
        "Department": null,
        "Division": null,
        "EmployeeId": null
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetUsersResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <PagedUsers>
    <Items xmlns:d3p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">
      <d3p1:RequestorUser>
        <d3p1:AdditionalInformation>Everything else</d3p1:AdditionalInformation>
        <d3p1:AdminNote>Information about john doe for administrators</d3p1:AdminNote>
        <d3p1:Anonymized>false</d3p1:Anonymized>
        <d3p1:Color i:nil="true" />
        <d3p1:Company i:nil="true" />
        <d3p1:CustomUserFieldsHash>0</d3p1:CustomUserFieldsHash>
        <d3p1:Customer i:nil="true" />
        <d3p1:CustomerId i:nil="true" />
        <d3p1:Customers i:nil="true" />
        <d3p1:Department i:nil="true" />
        <d3p1:DisplayName>John Doe</d3p1:DisplayName>
        <d3p1:Division i:nil="true" />
        <d3p1:Email>john.doe@domain.com</d3p1:Email>
        <d3p1:EmailAccount>false</d3p1:EmailAccount>
        <d3p1:EmployeeId i:nil="true" />
        <d3p1:ExternalAccount>false</d3p1:ExternalAccount>
        <d3p1:ExternalId i:nil="true" />
        <d3p1:FieldData i:nil="true" />
        <d3p1:FirstName>John</d3p1:FirstName>
        <d3p1:FullName>John Doe</d3p1:FullName>
        <d3p1:Initials i:nil="true" />
        <d3p1:InternalGroupIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:IsAdministrator>false</d3p1:IsAdministrator>
        <d3p1:IsApproved>true</d3p1:IsApproved>
        <d3p1:IsEndUser>true</d3p1:IsEndUser>
        <d3p1:IsOperator>false</d3p1:IsOperator>
        <d3p1:IsSmartUser>false</d3p1:IsSmartUser>
        <d3p1:IsSuperOperator>false</d3p1:IsSuperOperator>
        <d3p1:Language>en</d3p1:Language>
        <d3p1:LastName>Doe</d3p1:LastName>
        <d3p1:LastUpdatedUtc i:nil="true" />
        <d3p1:ManagerKey i:nil="true" />
        <d3p1:MiddleName i:nil="true" />
        <d3p1:NoteBesideName i:nil="true" />
        <d3p1:OperatorGroupIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:OperatorNote i:nil="true" />
        <d3p1:Phones xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>+420 732 389 583</d5p1:string>
        </d3p1:Phones>
        <d3p1:PhotoLastUpdatedUtc i:nil="true" />
        <d3p1:SkypeName>JohnDoeSkype</d3p1:SkypeName>
        <d3p1:Tags>
          <d3p1:TagData>
            <d3p1:Color>#ffffff</d3p1:Color>
            <d3p1:Id>1</d3p1:Id>
            <d3p1:Name>Sample tag</d3p1:Name>
            <d3p1:Static>true</d3p1:Static>
            <d3p1:Type>UserAndCompany</d3p1:Type>
          </d3p1:TagData>
          <d3p1:TagData>
            <d3p1:Color>#fafafa</d3p1:Color>
            <d3p1:Id>2</d3p1:Id>
            <d3p1:Name>Sample 2</d3p1:Name>
            <d3p1:Static>true</d3p1:Static>
            <d3p1:Type>UserAndCompany</d3p1:Type>
          </d3p1:TagData>
        </d3p1:Tags>
        <d3p1:TimeZoneId>Central Europe Standard Time</d3p1:TimeZoneId>
        <d3p1:UserName>john.doe</d3p1:UserName>
        <d3p1:UserProviderKey>7d5073e2-4fdf-48d7-967e-e6da555417b7</d3p1:UserProviderKey>
      </d3p1:RequestorUser>
      <d3p1:RequestorUser>
        <d3p1:AdditionalInformation>Something else</d3p1:AdditionalInformation>
        <d3p1:AdminNote>Information about jane doe for administrators</d3p1:AdminNote>
        <d3p1:Anonymized>false</d3p1:Anonymized>
        <d3p1:Color i:nil="true" />
        <d3p1:Company i:nil="true" />
        <d3p1:CustomUserFieldsHash>0</d3p1:CustomUserFieldsHash>
        <d3p1:Customer i:nil="true" />
        <d3p1:CustomerId i:nil="true" />
        <d3p1:Customers i:nil="true" />
        <d3p1:Department i:nil="true" />
        <d3p1:DisplayName>Jane Doe</d3p1:DisplayName>
        <d3p1:Division i:nil="true" />
        <d3p1:Email>jane.doe@domain.com</d3p1:Email>
        <d3p1:EmailAccount>false</d3p1:EmailAccount>
        <d3p1:EmployeeId i:nil="true" />
        <d3p1:ExternalAccount>false</d3p1:ExternalAccount>
        <d3p1:ExternalId i:nil="true" />
        <d3p1:FieldData i:nil="true" />
        <d3p1:FirstName>Jane</d3p1:FirstName>
        <d3p1:FullName>Jane Doe</d3p1:FullName>
        <d3p1:Initials i:nil="true" />
        <d3p1:InternalGroupIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:IsAdministrator>false</d3p1:IsAdministrator>
        <d3p1:IsApproved>true</d3p1:IsApproved>
        <d3p1:IsEndUser>true</d3p1:IsEndUser>
        <d3p1:IsOperator>false</d3p1:IsOperator>
        <d3p1:IsSmartUser>false</d3p1:IsSmartUser>
        <d3p1:IsSuperOperator>false</d3p1:IsSuperOperator>
        <d3p1:Language>en</d3p1:Language>
        <d3p1:LastName>Doe</d3p1:LastName>
        <d3p1:LastUpdatedUtc i:nil="true" />
        <d3p1:ManagerKey i:nil="true" />
        <d3p1:MiddleName i:nil="true" />
        <d3p1:NoteBesideName i:nil="true" />
        <d3p1:OperatorGroupIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <d3p1:OperatorNote i:nil="true" />
        <d3p1:Phones xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>+420 732 389 584</d5p1:string>
        </d3p1:Phones>
        <d3p1:PhotoLastUpdatedUtc i:nil="true" />
        <d3p1:SkypeName>JaneDoeSkype</d3p1:SkypeName>
        <d3p1:Tags i:nil="true" />
        <d3p1:TimeZoneId>Central Europe Standard Time</d3p1:TimeZoneId>
        <d3p1:UserName>jane.doe</d3p1:UserName>
        <d3p1:UserProviderKey>f22bf46d-07f8-4c33-a6a9-bbd3a1dff927</d3p1:UserProviderKey>
      </d3p1:RequestorUser>
    </Items>
    <PageIndex>0</PageIndex>
    <PageSize>200</PageSize>
    <TotalItems>2</TotalItems>
    <TotalPages>1</TotalPages>
  </PagedUsers>
</GetUsersResult>