GET api/v1/admin/users

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

None.

Body Parameters

None.

Response Information

Resource Description

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

ResponseOfListOfUser
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfListOfUser

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": [
      {
        "ID": "6d20c7bd-831d-41a9-914d-79b3e1d9f4cb",
        "AgreementDate": "2018-08-21T09:32:21.1930427+01:00",
        "AccountID": "3020c369-38b4-4f10-a925-c48e6fd6048d",
        "AdminUser": true,
        "DateCreated": "2018-08-21T09:32:21.1930427+01:00",
        "DateModified": "2018-08-21T09:32:21.1930427+01:00",
        "DeclineDate": "2018-08-21T09:32:21.1930427+01:00",
        "DisplayName": "sample string 6",
        "DPAVersion": "sample string 7",
        "EmailAddress": "sample string 8",
        "Enabled": true,
        "LanguageID": "d908f7fa-8382-4c4a-9d58-f0df48309b8d",
        "MobilePhone": "sample string 12",
        "Password": "sample string 13",
        "Pin": "sample string 14",
        "Preferences": 0,
        "PrivacyPolicyVersion": "sample string 15",
        "TimeZone": "sample string 16",
        "Username": "sample string 17"
      },
      {
        "ID": "6d20c7bd-831d-41a9-914d-79b3e1d9f4cb",
        "AgreementDate": "2018-08-21T09:32:21.1930427+01:00",
        "AccountID": "3020c369-38b4-4f10-a925-c48e6fd6048d",
        "AdminUser": true,
        "DateCreated": "2018-08-21T09:32:21.1930427+01:00",
        "DateModified": "2018-08-21T09:32:21.1930427+01:00",
        "DeclineDate": "2018-08-21T09:32:21.1930427+01:00",
        "DisplayName": "sample string 6",
        "DPAVersion": "sample string 7",
        "EmailAddress": "sample string 8",
        "Enabled": true,
        "LanguageID": "d908f7fa-8382-4c4a-9d58-f0df48309b8d",
        "MobilePhone": "sample string 12",
        "Password": "sample string 13",
        "Pin": "sample string 14",
        "Preferences": 0,
        "PrivacyPolicyVersion": "sample string 15",
        "TimeZone": "sample string 16",
        "Username": "sample string 17"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfListOfUser 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>
      <User>
        <ID>6d20c7bd-831d-41a9-914d-79b3e1d9f4cb</ID>
        <AgreementDate>2018-08-21T09:32:21.1930427+01:00</AgreementDate>
        <AccountID>3020c369-38b4-4f10-a925-c48e6fd6048d</AccountID>
        <AdminUser>true</AdminUser>
        <DateCreated>2018-08-21T09:32:21.1930427+01:00</DateCreated>
        <DateModified>2018-08-21T09:32:21.1930427+01:00</DateModified>
        <DeclineDate>2018-08-21T09:32:21.1930427+01:00</DeclineDate>
        <DisplayName>sample string 6</DisplayName>
        <DPAVersion>sample string 7</DPAVersion>
        <EmailAddress>sample string 8</EmailAddress>
        <Enabled>true</Enabled>
        <LanguageID>d908f7fa-8382-4c4a-9d58-f0df48309b8d</LanguageID>
        <Language>sample string 11</Language>
        <MobilePhone>sample string 12</MobilePhone>
        <Password>sample string 13</Password>
        <Pin>sample string 14</Pin>
        <Preferences>NONE</Preferences>
        <PrivacyPolicyVersion>sample string 15</PrivacyPolicyVersion>
        <TimeZone>sample string 16</TimeZone>
        <Username>sample string 17</Username>
      </User>
      <User>
        <ID>6d20c7bd-831d-41a9-914d-79b3e1d9f4cb</ID>
        <AgreementDate>2018-08-21T09:32:21.1930427+01:00</AgreementDate>
        <AccountID>3020c369-38b4-4f10-a925-c48e6fd6048d</AccountID>
        <AdminUser>true</AdminUser>
        <DateCreated>2018-08-21T09:32:21.1930427+01:00</DateCreated>
        <DateModified>2018-08-21T09:32:21.1930427+01:00</DateModified>
        <DeclineDate>2018-08-21T09:32:21.1930427+01:00</DeclineDate>
        <DisplayName>sample string 6</DisplayName>
        <DPAVersion>sample string 7</DPAVersion>
        <EmailAddress>sample string 8</EmailAddress>
        <Enabled>true</Enabled>
        <LanguageID>d908f7fa-8382-4c4a-9d58-f0df48309b8d</LanguageID>
        <Language>sample string 11</Language>
        <MobilePhone>sample string 12</MobilePhone>
        <Password>sample string 13</Password>
        <Pin>sample string 14</Pin>
        <Preferences>NONE</Preferences>
        <PrivacyPolicyVersion>sample string 15</PrivacyPolicyVersion>
        <TimeZone>sample string 16</TimeZone>
        <Username>sample string 17</Username>
      </User>
    </Detail>
  </ResponseData>
</ResponseOfListOfUser>