Returns a Role resource based on ID or name.​
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.
Path Parameters
- roleId string required
ID or name of Role resource.
Query Parameters
- lookupByName boolean
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 - attributes string
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. - excludedAttributes string
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.
- 200
Returns a single Role resource based on the ID.
- application/json
- Schema
- Example (from schema)
Schema
- id string
IIQ ID of the Role.
- name string
Unique name for the Role. This name MUST be unique across the entire set of Roles.
- descriptions array
A list of localized descriptions of the Role.
- type object
The type of the Role.
- displayableName string
Displayable name of the Role.
- active boolean
Flag to indicate this Role is enabled or active.
- activationDate date-time
The date the Role will turn from inactive/disabled to active/enabled.
- deactivationDate date-time
The date the Role will turn from active/enabled to inactive/disabled.
owner object
The owner of the Role.
displayName stringDisplay name of the Role owner.
value stringID of the Role owner.
$ref stringURI reference of the Role owner resource.
inheritance array
Parent Roles this role inherits from.
displayName stringDisplay name of the parent Role.
value stringID of the parent Role.
$ref stringURI 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.
displayName stringDisplay name of the required Role.
value stringID of the required Role.
$ref stringURI 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.
displayName stringDisplay name of the permitted Role.
value stringID of the permitted Role.
$ref stringURI reference of the permitted Role resource.
classifications array
Classifications of this Role.
source stringThe source of the ObjectClassification.
effective booleanFlag indicating this is an effective Classification.
classification object
Classification of this Object.
name stringThe name of the Classification.
displayName stringThe displayName of the Classification.
origin stringThe origin of the Classification.
type stringThe type of the Classification. This can be used to group Classifications in/across different origins.
meta
Metadata of the SCIM resource.
created date-timeDatetime this Role was created.
location stringThe location of the SCIM resource.
lastModified date-timeDatetime the Role was last modified.
version stringThe version of the SCIM resource.
resourceType stringThe SCIM resource type.
- schemas string[]
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"
]
}