GET api/Account/GetUsers?pageIndex={pageIndex}&pageSize={pageSize}
Gets the list of users. The role of administrator or operator is required. An operator can access according to the customer module access settings. Pagination is supported.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
pageIndex |
Optional page index (default is 0). |
integer |
None. |
pageSize |
Optional page size (default is 200). |
integer |
None. |
Body Parameters
None.
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
Sample:
{ "PagedUsers": { "PageIndex": 0, "PageSize": 200, "TotalItems": 2, "TotalPages": 1, "Items": [ { "UserProviderKey": "8934ded8-d99c-4b87-b4d6-e94ee5ed2495", "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, "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 }, { "UserProviderKey": "b0f8f307-96c1-4d06-a46b-dfccfc23b38d", "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, "FieldData": null, "LastUpdatedUtc": null, "Language": 0, "Anonymized": false, "Tags": null, "ExternalId": 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:Customer i:nil="true" /> <d3p1:CustomerId i:nil="true" /> <d3p1:Customers i:nil="true" /> <d3p1:DisplayName>John Doe</d3p1:DisplayName> <d3p1:Email>john.doe@domain.com</d3p1:Email> <d3p1:EmailAccount>false</d3p1:EmailAccount> <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: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>8934ded8-d99c-4b87-b4d6-e94ee5ed2495</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:Customer i:nil="true" /> <d3p1:CustomerId i:nil="true" /> <d3p1:Customers i:nil="true" /> <d3p1:DisplayName>Jane Doe</d3p1:DisplayName> <d3p1:Email>jane.doe@domain.com</d3p1:Email> <d3p1:EmailAccount>false</d3p1:EmailAccount> <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: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>b0f8f307-96c1-4d06-a46b-dfccfc23b38d</d3p1:UserProviderKey> </d3p1:RequestorUser> </Items> <PageIndex>0</PageIndex> <PageSize>200</PageSize> <TotalItems>2</TotalItems> <TotalPages>1</TotalPages> </PagedUsers> </GetUsersResult>