OpenIDM - 如何在创建用户时分配默认组

时间:2015-04-02 14:07:22

标签: ldap federated-identity openidm

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

0 个答案:

没有答案