Get role members
get
                    /iam/governance/selfservice/api/v1/roles/{roleid}/members
Returns role members for particular roleid.
                Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    roleid: string
                    
                    Entity Type possible values for RoleID
Query Parameters
                - 
                        fields(optional): string
                        
                        The payload contains the role members i.e. the user's information. The payload can be restricted by specifying the user attributes which are of interest. For example to get only the User Login and DisplayName of all the role members of a role the URI will be /roles/{roleid}/members?membershipType=all&fields=User Login, DisplayName
- 
                        membershipType(optional): string
                        
                        The query parameter enables to get the the role members based on the membership type. The role membership type can be either direct/indirect/dynamic/all. If no membershipType is explicitly mentioned the default membershipType selected is "ALL". The "all" membershipType option will return all the role members who have the role membership directly, indirectly (i.e. the user is a member of a child role) and dynamically (i.e. based on the Role membership rule).
- 
                        q(optional): string
                        
                        Filters the users list returned based on the filter parameter. The User attributes can be used to filter the role members of interest. For example to get all the direct role members with employee number greater than 1000 the filter will be /roles/{roleid}/members?membershipType=direct&q=Employee Number gt 1000
Response
Supported Media Types
                - application/json
200 Response
Successful
                
                Headers
                - 
                        ResponseTime: string
                        
                        Captures the time in milliseconds taken for processing the request.
401 Response
Unauthorized
                
                
                404 Response
Requested entity not found
                
                
                500 Response
Internal Server Error
                
                
                Examples
This example demonstrates the retrieval of direct members for a given role. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -H "Content-Type: application/json" -X GET -u username:password https://pseudo.com/iam/governance/selfservice/api/v1/roles/27/members?membershipType=DIRECT
Example of GET Response Body
The following example shows the contents of the response body in JSON format.
{
  "links": [
    {
      "rel": "self",
      "href": "http://pseudo.com/iam/governance/selfservice/api/v1/roles/27/members"
    }
  ],
  "count": 1,
  "totalResult": 1,
  "users": [
    {
      "links": [
        {
          "rel": "self",
          "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/XELSYSADM"
        }
      ],
      "id": "1",
      "name": "System",
      "userLogin": "XELSYSADM",
      "displayName": "System Administrator",
      "email": "donotreply@mydomain.com"
    }
  ]
}