Get role list
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars1 comment

Get a list of authorization roles for a subscriber.
The API caller must have the VSR role to run the API.

Table 1. API details
Method
Resource address
Operation header
POST
/service/authorization/getRoleList?loginName=<loginName>
None.


URL parameters


Provide the following parameter.

Table 2. Parameters
Parameter
Required
Description
loginName
Yes
The email address of the subscriber, for example jdoe@example.com


On success, the list of roles that are assigned to the user is returned as JSON in the HTTP response body. For example:

{

"List" : ["CUSTOMERADMINISTRATOR", "CUSTOMERPURCHASER"]

}


For a list of common HTTP status codes that are returned for API calls, see HTTP status codes.

Parent topic: Authorization services
Input
Method URI Description
POST /api/bss/service/authorization/getRoleList Get a list of authorization roles for a subscriber.
The API caller must have the VSR role to run the API.
Content Type: text/plain
Name Type Optional Description
loginName
string No The email address of the subscriber, for example jdoe@example.com
Output
Content Type: application/json
Code Description
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
Examples
On success, the list of roles that are assigned to the user is returned as JSON in the HTTP response body.

Response returned by the server
{

  "List" :  ["CUSTOMERADMINISTRATOR", "CUSTOMERPURCHASER"]

}
dvd smpsn commented on Dec 10, 2015

Re: Get role list

This is incorrect:

POST /service/authorization/getRoleList?loginName=

It should be:

POST /manage/service/authorization/getRoleList?loginName=