Skip to main content

Getting the Roles Applicable to a User

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

Endpoint ExampleResponse 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:

ParameterDescription
ComputerNameEnter a valid machine name.
domainEnter the domain to which the user belongs.
userNameEnter 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.