Returns a Role resource based on ID or name.
GET/Roles/:roleId
The Role resource with matching ID or name is returned. Attributes to include in the response can be specified with the 'attributes' query parameter. Attributes to exclude from the response can be specified with the 'excludedAttributes' query parameter. The core schema is urn:ietf:params:scim:schemas:sailpoint:1.0:Role.
Request
Path Parameters
ID or name of Role resource.
Query Parameters
A boolean value that determines if the Role resource will be looked up by name instead of Id (value in path parameter 'roleId'). Setting this query parameter to true will cause the value pulled from the 'roleId' path parameter to be treated as a name when searching for the resource.
Example: scim/v2/Roles/Data Analyst?lookupByName=true
The Role attributes to include in the response. The query parameter value is a comma-separated list of fields to be returned in the response for each Role.
Example: attributes=name,type
The attributes listed will be the only ones returned in the response, with the exception of id, schemas, and meta, which are always returned for a Role.
The Role attributes to exclude frome the response. The query parameter value is a comma-separated list of fields to be excluded from the response for each Role.
Example: excludedAttributes=permits,requirements
The attributes listed will be the only ones excluded frome the response, with the exception of id, schemas, and meta, which are always returned for a Role.
Responses
- 200
Returns a single Role resource based on the ID.
- application/json
- Schema
- Example (from schema)
Schema
IIQ ID of the Role.
Unique name for the Role. This name MUST be unique across the entire set of Roles.
A list of localized descriptions of the Role.
The type of the Role.
Displayable name of the Role.
Flag to indicate this Role is enabled or active.
The date the Role will turn from inactive/disabled to active/enabled.
The date the Role will turn from active/enabled to inactive/disabled.
owner
object
The owner of the Role.
Display name of the Role owner.
ID of the Role owner.
URI reference of the Role owner resource.
inheritance
array
Parent Roles this role inherits from.
Display name of the parent Role.
ID of the parent Role.
URI reference of the parent Role resource.
requirements
array
Roles this role requires. This is normally used with business roles to reference IT roles as a way of indicating which IT roles are required to support a business role.
Display name of the required Role.
ID of the required Role.
URI reference of the required Role resource.
permits
array
Roles this role permits. This is normally used with business roles to reference IT roles as a way of indicating which IT roles are allowed to support a business role.
Display name of the permitted Role.
ID of the permitted Role.
URI reference of the permitted Role resource.
classifications
array
Classifications of this Role.
The source of the ObjectClassification.
Flag indicating this is an effective Classification.
classification
object
Classification of this Object.
The name of the Classification.
The displayName of the Classification.
The origin of the Classification.
The type of the Classification. This can be used to group Classifications in/across different origins.
meta
Metadata of the SCIM resource.
Datetime this Role was created.
The location of the SCIM resource.
Datetime the Role was last modified.
The version of the SCIM resource.
The SCIM resource type.
The schemas involved in the SCIM resource.
{
"id": "c0b4568a4fe7458c434ee77d1fbt156b",
"name": "ADDirect-Production Manager",
"descriptions": [
{
"locale": "en_US",
"value": "Directs production operations and processes for a plant, division, or company. Plans and maintains production schedules. Manages facilities and equipment maintenance."
}
],
"type": {
"iiq": false,
"requirements": false,
"permits": false,
"displayName": "IT",
"manualAssignment": false,
"name": "it",
"autoAssignment": false,
"assignmentSelector": false
},
"displayableName": "Staging Test Engineer - IT",
"active": true,
"activationDate": "2022-02-11T01:08:45.866-05:00",
"deactivationDate": "2022-02-11T01:08:45.866-05:00",
"owner": {
"displayName": "Lori Ferguson",
"value": "ac1301737f901991817f90d9eb050372",
"$ref": "http://localhost:8080/identityiq/scim/v2/Users/ac1301737f901991817f90d9eb050372"
},
"inheritance": [
null
],
"requirements": [
null
],
"permits": [
null
],
"classifications": [
{
"effective": false,
"source": "UI",
"classification": {
"displayName": "Special2",
"origin": "JDBCDirectDemoData",
"name": "Special2"
}
},
{
"effective": false,
"source": "UI",
"classification": {
"displayName": "Special7",
"origin": "JDBCDirectDemoData",
"name": "Special7"
}
}
],
"meta": {
"created": "2022-02-11T01:34:04.074-05:00",
"location": "http://localhost:8080/iiq/scim/v2/Roles/c0b4568a4fe7458c434ee77d1fbt156b",
"lastModified": "2022-02-11T01:08:45.866-05:00",
"version": "W/\\\"1644561244074\\\"",
"resourceType": "Role"
},
"schemas": [
"urn:ietf:params:scim:schemas:sailpoint:1.0:Role"
]
}