我想在 OpenIDM 中创建用户时分配默认角色(使用 AD 组)。
我已经使用OpenIDM REST API创建并设置了角色分配,但我想将用户添加到AD 组而不给他添加特定角色。
这是我的角色映射:
{
"properties": {
"description": "Data Provider Role"
},
"assignments": {
"ad": {
"attributes": [
{
"name": "ldapGroups",
"assignmentOperation": "mergeWithTarget",
"unassignmentOperation": "removeFromTarget",
"value": [
"CN=GRP_SHARE_USERS,CN=Users,DC=acme,DC=com"
]
}
]
},
"alfresco": {
"attributes": [
{
"name": "groups",
"value": "ACMEUSER"
}
],
"onAssignment": {
"file": "roles/onAssignment_alfresco.groovy",
"type": "groovy"
},
"onUnassignment": {
"file": "roles/onUnassignment_alfresco.groovy",
"type": "groovy"
}
}
}
}
如何进行 ?我可以修改“onCreate”脚本上的ldapGroups属性吗?