GET v2/Users/Roles/Customer/{id}
Retrieves the list of roles available to assign to a new user in the given customer account.
Request Information
URI Parameters
| Name | Description | Type | Additional information | 
|---|---|---|---|
| id | integer | Required | 
Body Parameters
None.
Response Information
Resource Description
A list of roles
Collection of Lhp.EquipmentIntelligence.WebApi.Models.V2.RoleModel| Name | Description | Type | Additional information | 
|---|---|---|---|
| RoleId | integer | None. | |
| OwningCustomerId | integer | None. | |
| CustomerId | integer | None. | |
| CustomerTypeId | integer | None. | |
| Name | string | None. | |
| Description | string | None. | 
Response Formats
application/json, text/json
            Sample:
        
[
  {
    "RoleId": 1,
    "OwningCustomerId": 1,
    "CustomerId": 1,
    "CustomerTypeId": 1,
    "Name": "sample string 2",
    "Description": "sample string 3"
  },
  {
    "RoleId": 1,
    "OwningCustomerId": 1,
    "CustomerId": 1,
    "CustomerTypeId": 1,
    "Name": "sample string 2",
    "Description": "sample string 3"
  }
]
        application/xml, text/xml
            Sample:
<ArrayOfRoleModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RoleModel>
    <RoleId>1</RoleId>
    <OwningCustomerId>1</OwningCustomerId>
    <CustomerId>1</CustomerId>
    <CustomerTypeId>1</CustomerTypeId>
    <Name>sample string 2</Name>
    <Description>sample string 3</Description>
  </RoleModel>
  <RoleModel>
    <RoleId>1</RoleId>
    <OwningCustomerId>1</OwningCustomerId>
    <CustomerId>1</CustomerId>
    <CustomerTypeId>1</CustomerTypeId>
    <Name>sample string 2</Name>
    <Description>sample string 3</Description>
  </RoleModel>
</ArrayOfRoleModel>