GET api/v1/Users?id={id}

Get specified user details, privileges and profiles.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Team Member's acronym. If Team Membed doesn't have an acronym, provide his JDE number instead.

string

Required

Body Parameters

None.

Response Information

Resource Description

User's informations

UserDTOv1
NameDescriptionTypeAdditional information
Id

Team Member's acronym. If Team Membed doesn't have an acronym, his JDE number will be used instead.

string

Required

Max length: 10

Email

Team Member' email address

string

Required

Max length: 50

Name

Team Member's full name

string

Required

Avatar

Team Member's picture url. Read-only.

string

None.

Disabled

Is Team Member still working for GHA ?

boolean

Required

PhoneNumber

Team Member's phone name

string

None.

Profiles

Team Member User Profiles. This list is filtered for the application that is calling the api.

Collection of ProfileLiteDTOv1

None.

Privileges

Team Member Privileges derived from User Profiles. This list is filtered for the application that is calling the api.

Collection of PrivilegeLiteDTOv1

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "TEST",
  "Email": "test@premiertech.com",
  "Name": "John Doe",
  "Avatar": "https://www.premiertech.com/global/img/logo-PremierTech.png",
  "Disabled": false,
  "PhoneNumber": null,
  "Profiles": [
    {
      "Id": "director",
      "Name": "Director",
      "ApplicationId": "test"
    },
    {
      "Id": "supervisor",
      "Name": "Supervisor",
      "ApplicationId": "test"
    }
  ],
  "Privileges": [
    {
      "Id": "bog_r",
      "Name": "Bog Read",
      "ApplicationId": "test",
      "PrivilegeTypeId": "data"
    },
    {
      "Id": "bog_w",
      "Name": "Bog Create/Modify",
      "ApplicationId": "test",
      "PrivilegeTypeId": "data"
    },
    {
      "Id": "bog_d",
      "Name": "Bog Deactivate",
      "ApplicationId": "test",
      "PrivilegeTypeId": null
    }
  ]
}

application/xml, text/xml

Sample:
<UserDTOv1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/apiGHA.Models.DTOs">
  <Avatar>https://www.premiertech.com/global/img/logo-PremierTech.png</Avatar>
  <Disabled>false</Disabled>
  <Email>test@premiertech.com</Email>
  <Id>TEST</Id>
  <Name>John Doe</Name>
  <PhoneNumber i:nil="true" />
  <Privileges>
    <PrivilegeLiteDTOv1>
      <ApplicationId>test</ApplicationId>
      <Id>bog_r</Id>
      <Name>Bog Read</Name>
      <PrivilegeTypeId>data</PrivilegeTypeId>
    </PrivilegeLiteDTOv1>
    <PrivilegeLiteDTOv1>
      <ApplicationId>test</ApplicationId>
      <Id>bog_w</Id>
      <Name>Bog Create/Modify</Name>
      <PrivilegeTypeId>data</PrivilegeTypeId>
    </PrivilegeLiteDTOv1>
    <PrivilegeLiteDTOv1>
      <ApplicationId>test</ApplicationId>
      <Id>bog_d</Id>
      <Name>Bog Deactivate</Name>
      <PrivilegeTypeId i:nil="true" />
    </PrivilegeLiteDTOv1>
  </Privileges>
  <Profiles>
    <ProfileLiteDTOv1>
      <ApplicationId>test</ApplicationId>
      <Id>director</Id>
      <Name>Director</Name>
    </ProfileLiteDTOv1>
    <ProfileLiteDTOv1>
      <ApplicationId>test</ApplicationId>
      <Id>supervisor</Id>
      <Name>Supervisor</Name>
    </ProfileLiteDTOv1>
  </Profiles>
</UserDTOv1>