
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi
Question about adding additional attributes to a Role using the REST API
Requirement:
- Role Management (creation, modification, deletion, composition definition, etc) done in an external Tool
- Role Data Model in external tool defines a couple of additional attributes, eg environment, risk, classification, etc.
- Roles shall be pushed to NetIQ IDM using IDApps REST API
- Role ordering, assignment and provisioning done in IDM using standard processes
Question:
NetIQ IDApps REST API defines for the Create Role Endpoint JSON Elements like "otherAttributes" and "otherModifiedAttributes".
It looks to me that those are related to DAL entities, but I can't figure out hwo to provide those properly in the REST call.
When adding values "otherAttributes", even referencing a DAL atttribut I just get REST Interface timeouts...no error...
Creating a Role using just the basic set of attributes works just fine.
Is settings additional attributes supported via REST API using "otherAttributes" or "otherModifiedAttributes" ?
Has somebody done this before and can share some tips or examples?
Reference:
https://idm:8443/idmappsdoc/#/Catalog/resource_Catalog_createRole_POST
[....]
"otherAttributes": [
{
"key": "...",
"displayLabel": "...",
"attributeValues": [
{},
{}
],
"dataType": "...",
"isSearchable": true,
"isSortable": true,
"isRequired": true,
"isEditable": true,
"isMultivalued": true,
"isHideable": true,
"isClickable": true,
"formatType": "...",
"choiceList": [
{
"key": "...",
"value": "..."
},
{
"key": "...",
"value": "..."
}
],
"controlType": "..."
},
{
"key": "...",
"displayLabel": "...",
"attributeValues": [
{},
{}
],
"dataType": "...",
"isSearchable": true,
"isSortable": true,
"isRequired": true,
"isEditable": true,
"isMultivalued": true,
"isHideable": true,
"isClickable": true,
"formatType": "...",
"choiceList": [
{
"key": "...",
"value": "..."
},
{
"key": "...",
"value": "..."
}
],
"controlType": "..."
}
],
"otherModifiedAttributes": [
{
"name": "...",
"key": "...",
"dataType": "...",
"isMultivalued": true,
"isEditable": true,
"values": [
"...",
"..."
]
},
{
"name": "...",
"key": "...",
"dataType": "...",
"isMultivalued": true,
"isEditable": true,
"values": [
"...",
"..."
]
}
]
Thanks,
Matthias
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Just a small update...the timeouts occured due to a malformatted JSON, my bad...
So now, my request goes through, but no additional attributes are set on the role.
Playing around with the entity-defintion sys-nrf-role by adding an ObjectClass Element (acmeGroupAux) directly by modifying the XML via LDAP leads to the result that this ObjectClass is actually added when I create the Role via REST. - not supported of course....
However, an attribute (acmeGroupTitle, also added manually to sys-nrf-role) is not added via the REST Call.
Example of a successful body
{
"id": "APP_TEST_API_TEST-12",
"name": "APP_TEST_API_TEST-12",
"description": "DESCRIPTION",
"categories": [
{
"id": "ApplicationRole",
"name": "ApplicationRole"
}
],
"owners": [
{
"id": "cn=group,ou=groups,o=data",
"name": "group",
"type": "GROUP"
}
],
"level": 10,
"roleLevel": {
"name": "Permission Role",
"level": 10,
"cn": "Level10"
},
"localizedNames": [
{
"locale": "en",
"name": "APP_TEST_API_TEST-12"
}
],
"localizedDescriptions": [
{
"locale": "en",
"desc": "DESCRIPTION"
}
],
"status": 50,
"otherAttributes": [
{
"key": "acmeGroupAux",
"displayLabel": "acmeGroupAux",
"attributeValues": [
{"acmeGroupTitle" : "Some Group Title"}
],
"dataType": "String",
"isSearchable": false,
"isSortable": true,
"isRequired": false,
"isEditable": true,
"isMultivalued": false,
"isHideable": false,
"isClickable": true,
"formatType": "",
"controlType": ""
}
]
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content