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
UsersFilterPostName | Description | Type | Additional information |
---|---|---|---|
PageIndex |
The requested page index |
integer |
None. |
PageSize |
The requested page size |
integer |
None. |
UserName |
Filter by UserName, if set |
string |
None. |
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
{ "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
<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.
GetUsersResultName | Description | Type | Additional information |
---|---|---|---|
PagedUsers |
A page with Users. |
RequestorUser |
None. |
Response Formats
application/json, text/json
{ "PagedUsers": { "PageIndex": 0, "PageSize": 200, "TotalItems": 2, "TotalPages": 1, "Items": [ { "UserProviderKey": "d6135b0e-a33a-454b-9712-f2b055d45474", "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" ], "AdditionalInformation": "Everything else", "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, "SecondaryEmails": [ "john.doe@mymail.com" ] }, { "UserProviderKey": "faacdf85-4006-4fdd-a3dc-dc86e70829ac", "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" ], "AdditionalInformation": "Something else", "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, "SecondaryEmails": [ "jane.doe@mymail.com" ] } ] } }
application/xml, text/xml
<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: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: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:SecondaryEmails xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>john.doe@mymail.com</d5p1:string> </d3p1:SecondaryEmails> <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>d6135b0e-a33a-454b-9712-f2b055d45474</d3p1:UserProviderKey> </d3p1:RequestorUser> <d3p1:RequestorUser> <d3p1:AdditionalInformation>Something else</d3p1:AdditionalInformation> <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: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:SecondaryEmails xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>jane.doe@mymail.com</d5p1:string> </d3p1:SecondaryEmails> <d3p1:Tags i:nil="true" /> <d3p1:TimeZoneId>Central Europe Standard Time</d3p1:TimeZoneId> <d3p1:UserName>jane.doe</d3p1:UserName> <d3p1:UserProviderKey>faacdf85-4006-4fdd-a3dc-dc86e70829ac</d3p1:UserProviderKey> </d3p1:RequestorUser> </Items> <PageIndex>0</PageIndex> <PageSize>200</PageSize> <TotalItems>2</TotalItems> <TotalPages>1</TotalPages> </PagedUsers> </GetUsersResult>