我想在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 属性。脚本?