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": "ab14ca1b-99c2-4784-ac9c-7c8de3e555fd",
        "AgreementDate": "2024-03-29T06:13:05.8524761+00:00",
        "AccountID": "1b2f6e18-bc85-441c-bf56-6dce47e6585a",
        "AdminUser": true,
        "DateCreated": "2024-03-29T06:13:05.8524761+00:00",
        "DateModified": "2024-03-29T06:13:05.8524761+00:00",
        "DeclineDate": "2024-03-29T06:13:05.8524761+00:00",
        "DisplayName": "sample string 7",
        "DPAVersion": "sample string 8",
        "EmailAddress": "sample string 9",
        "Enabled": true,
        "LanguageID": "51fa929d-df87-498e-99b1-f58e569b7eef",
        "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": "ab14ca1b-99c2-4784-ac9c-7c8de3e555fd",
        "AgreementDate": "2024-03-29T06:13:05.8524761+00:00",
        "AccountID": "1b2f6e18-bc85-441c-bf56-6dce47e6585a",
        "AdminUser": true,
        "DateCreated": "2024-03-29T06:13:05.8524761+00:00",
        "DateModified": "2024-03-29T06:13:05.8524761+00:00",
        "DeclineDate": "2024-03-29T06:13:05.8524761+00:00",
        "DisplayName": "sample string 7",
        "DPAVersion": "sample string 8",
        "EmailAddress": "sample string 9",
        "Enabled": true,
        "LanguageID": "51fa929d-df87-498e-99b1-f58e569b7eef",
        "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>ab14ca1b-99c2-4784-ac9c-7c8de3e555fd</ID>
        <AgreementDate>2024-03-29T06:13:05.8524761+00:00</AgreementDate>
        <AccountID>1b2f6e18-bc85-441c-bf56-6dce47e6585a</AccountID>
        <AdminUser>true</AdminUser>
        <DateCreated>2024-03-29T06:13:05.8524761+00:00</DateCreated>
        <DateModified>2024-03-29T06:13:05.8524761+00:00</DateModified>
        <DeclineDate>2024-03-29T06:13:05.8524761+00:00</DeclineDate>
        <DisplayName>sample string 7</DisplayName>
        <DPAVersion>sample string 8</DPAVersion>
        <EmailAddress>sample string 9</EmailAddress>
        <Enabled>true</Enabled>
        <LanguageID>51fa929d-df87-498e-99b1-f58e569b7eef</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>ab14ca1b-99c2-4784-ac9c-7c8de3e555fd</ID>
        <AgreementDate>2024-03-29T06:13:05.8524761+00:00</AgreementDate>
        <AccountID>1b2f6e18-bc85-441c-bf56-6dce47e6585a</AccountID>
        <AdminUser>true</AdminUser>
        <DateCreated>2024-03-29T06:13:05.8524761+00:00</DateCreated>
        <DateModified>2024-03-29T06:13:05.8524761+00:00</DateModified>
        <DeclineDate>2024-03-29T06:13:05.8524761+00:00</DeclineDate>
        <DisplayName>sample string 7</DisplayName>
        <DPAVersion>sample string 8</DPAVersion>
        <EmailAddress>sample string 9</EmailAddress>
        <Enabled>true</Enabled>
        <LanguageID>51fa929d-df87-498e-99b1-f58e569b7eef</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>