GET api/user/app/roles/{userid}/{appid}

This method is being deprecated. Use api/EnterpriseUser/GetApplicationRoles

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userid

integer

Required

appid

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of EnterpriseUsersApplicationRolesViewModel
NameDescriptionTypeAdditional information
EnterpriseUserId

integer

None.

RoleId

integer

None.

ApplicationId

integer

None.

Name

string

None.

Description

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "EnterpriseUserId": 1,
    "RoleId": 2,
    "ApplicationId": 3,
    "Name": "sample string 4",
    "Description": "sample string 5"
  },
  {
    "EnterpriseUserId": 1,
    "RoleId": 2,
    "ApplicationId": 3,
    "Name": "sample string 4",
    "Description": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfEnterpriseUsersApplicationRolesViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models">
  <EnterpriseUsersApplicationRolesViewModel>
    <ApplicationId>3</ApplicationId>
    <Description>sample string 5</Description>
    <EnterpriseUserId>1</EnterpriseUserId>
    <Name>sample string 4</Name>
    <RoleId>2</RoleId>
  </EnterpriseUsersApplicationRolesViewModel>
  <EnterpriseUsersApplicationRolesViewModel>
    <ApplicationId>3</ApplicationId>
    <Description>sample string 5</Description>
    <EnterpriseUserId>1</EnterpriseUserId>
    <Name>sample string 4</Name>
    <RoleId>2</RoleId>
  </EnterpriseUsersApplicationRolesViewModel>
</ArrayOfEnterpriseUsersApplicationRolesViewModel>