GET api/v2/admin/users?IncludeSuperUsers={IncludeSuperUsers}

This method retrieves all the users that the authenticated user is allowed to view. The method will return data only if the authenticated user is authorised to access the users, else it will return a HTTP 401 error.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IncludeSuperUsers

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

List of users that the authenticated user is allowed to view.

ResponseOfListOfUserV2
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfListOfUserV2

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": [
      {
        "Status": "sample string 1",
        "ID": "963d1ac1-7fef-4f20-858a-1b5094a2b3cc",
        "AgreementDate": "2024-12-22T09:56:46.309211+00:00",
        "AccountID": "2d7ddbca-5422-4d08-bbff-5fc9a853fc62",
        "AdminUser": true,
        "DateCreated": "2024-12-22T09:56:46.309211+00:00",
        "DateModified": "2024-12-22T09:56:46.309211+00:00",
        "DeclineDate": "2024-12-22T09:56:46.309211+00:00",
        "DisplayName": "sample string 7",
        "DPAVersion": "sample string 8",
        "EmailAddress": "sample string 9",
        "Enabled": true,
        "LanguageID": "6cd89652-09e8-47c1-af7d-9bd3ead9b359",
        "MobilePhone": "sample string 13",
        "Password": "sample string 14",
        "Pin": "sample string 15",
        "Preferences": 0,
        "PrivacyPolicyVersion": "sample string 16",
        "SSOEnabled": true,
        "TimeZone": "sample string 18",
        "Username": "sample string 19",
        "UserPassword": "sample string 20"
      },
      {
        "Status": "sample string 1",
        "ID": "963d1ac1-7fef-4f20-858a-1b5094a2b3cc",
        "AgreementDate": "2024-12-22T09:56:46.309211+00:00",
        "AccountID": "2d7ddbca-5422-4d08-bbff-5fc9a853fc62",
        "AdminUser": true,
        "DateCreated": "2024-12-22T09:56:46.309211+00:00",
        "DateModified": "2024-12-22T09:56:46.309211+00:00",
        "DeclineDate": "2024-12-22T09:56:46.309211+00:00",
        "DisplayName": "sample string 7",
        "DPAVersion": "sample string 8",
        "EmailAddress": "sample string 9",
        "Enabled": true,
        "LanguageID": "6cd89652-09e8-47c1-af7d-9bd3ead9b359",
        "MobilePhone": "sample string 13",
        "Password": "sample string 14",
        "Pin": "sample string 15",
        "Preferences": 0,
        "PrivacyPolicyVersion": "sample string 16",
        "SSOEnabled": true,
        "TimeZone": "sample string 18",
        "Username": "sample string 19",
        "UserPassword": "sample string 20"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfListOfUserV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <UserV2>
        <ID>963d1ac1-7fef-4f20-858a-1b5094a2b3cc</ID>
        <AgreementDate>2024-12-22T09:56:46.309211+00:00</AgreementDate>
        <AccountID>2d7ddbca-5422-4d08-bbff-5fc9a853fc62</AccountID>
        <AdminUser>true</AdminUser>
        <DateCreated>2024-12-22T09:56:46.309211+00:00</DateCreated>
        <DateModified>2024-12-22T09:56:46.309211+00:00</DateModified>
        <DeclineDate>2024-12-22T09:56:46.309211+00:00</DeclineDate>
        <DisplayName>sample string 7</DisplayName>
        <DPAVersion>sample string 8</DPAVersion>
        <EmailAddress>sample string 9</EmailAddress>
        <Enabled>true</Enabled>
        <LanguageID>6cd89652-09e8-47c1-af7d-9bd3ead9b359</LanguageID>
        <Language>sample string 12</Language>
        <MobilePhone>sample string 13</MobilePhone>
        <Password>sample string 14</Password>
        <Pin>sample string 15</Pin>
        <Preferences>NONE</Preferences>
        <PrivacyPolicyVersion>sample string 16</PrivacyPolicyVersion>
        <SSOEnabled>true</SSOEnabled>
        <TimeZone>sample string 18</TimeZone>
        <Username>sample string 19</Username>
        <UserPassword>sample string 20</UserPassword>
        <Status>sample string 1</Status>
      </UserV2>
      <UserV2>
        <ID>963d1ac1-7fef-4f20-858a-1b5094a2b3cc</ID>
        <AgreementDate>2024-12-22T09:56:46.309211+00:00</AgreementDate>
        <AccountID>2d7ddbca-5422-4d08-bbff-5fc9a853fc62</AccountID>
        <AdminUser>true</AdminUser>
        <DateCreated>2024-12-22T09:56:46.309211+00:00</DateCreated>
        <DateModified>2024-12-22T09:56:46.309211+00:00</DateModified>
        <DeclineDate>2024-12-22T09:56:46.309211+00:00</DeclineDate>
        <DisplayName>sample string 7</DisplayName>
        <DPAVersion>sample string 8</DPAVersion>
        <EmailAddress>sample string 9</EmailAddress>
        <Enabled>true</Enabled>
        <LanguageID>6cd89652-09e8-47c1-af7d-9bd3ead9b359</LanguageID>
        <Language>sample string 12</Language>
        <MobilePhone>sample string 13</MobilePhone>
        <Password>sample string 14</Password>
        <Pin>sample string 15</Pin>
        <Preferences>NONE</Preferences>
        <PrivacyPolicyVersion>sample string 16</PrivacyPolicyVersion>
        <SSOEnabled>true</SSOEnabled>
        <TimeZone>sample string 18</TimeZone>
        <Username>sample string 19</Username>
        <UserPassword>sample string 20</UserPassword>
        <Status>sample string 1</Status>
      </UserV2>
    </Detail>
  </ResponseData>
</ResponseOfListOfUserV2>