Get Roles
get
/iam/governance/selfservice/api/v1/roles
Returns all the roles in Oracle Identity Manager. The filter query parameter can be used to return a subset of the roles. SCIM filter is accepted. For example the query to get all roles whose name starts with Oracle is "/role?q=Role::Name sw Oracle". The attributes that are to be returned by the role can also be controlled by specifying the fields query parameter.
Request
Supported Media Types
- application/json
Query Parameters
-
fields: string
A Comma-separated list of the attribute names is to be passed to the fields query parameter. For example to get only the role display name, unique name and description the URI is "/role?fields=Role Unique Name,Role Display Name,Role Description" The response contains the Role Key and the Role id which are the unique identifiers for the role.
-
q: string
Search filter to get the records. SCIM filter is accepted. There should not be any spaces for attribute name. If you want to pass space in between attribute name then replace it with "::". Supported attributes in filter are "Role Name etc". Sample value for filter is "Role::Name sw Oracle"
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
Resource not found
500 Response
Internal Server Error