Getting the Roles Applicable to a User

App Broker 2017

This section describes the App Broker REST API endpoint to get the details of the role(s) applicable to the user..

Getting the Roles Applicable to a User

Endpoint Example

Response Body Example

[GET] http://<SERVERNAME>/esd/api/roles?domain=<domain>&username=<username>&machinename=<machinename>&getRoles=true

[

   {

      "roleID": 2,

      "roleName": "TestRole2",

      "roleDescription": ""

   }

]

Input Parameter Details

The following are the details for the parameters listed in the Request Body Example:

Input Parameter Details of Request Body Example

Parameter

Description

ComputerName

Enter a valid machine name.

domain

Enter the domain to which the user belongs.

userName

Enter a valid user name for whom the roles need to be found.

Output Details

The output returns a list of roles and details for those roles.