GET v2/Users/Roles
Retrieves the list of roles available to the current user for assigning to new users.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of roles
Collection of Lhp.EquipmentIntelligence.WebApi.Models.V2.RoleModelName | 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>