Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-5754

onUpdate trigger on managed user called twice with a patch operation

    Details

      Description

      • mapping from MU to LDAP
      • at least one role with an assignment mapped to an LDAP group
      • customise the onUpdate trigger in the default managed.json file

      from :

                  "onUpdate" : {
                      "type" : "text/javascript",
                      "source" : "require('roles/conditionalRoles').updateConditionalGrantsForUser(object, 'roles');"
                  },
      

      to :

                  "onUpdate" : {
                      "type" : "text/javascript",
                      "file" : "onUpdate.js"
                  },
      

      onUpdate.js :

      function() {
      
        require('roles/conditionalRoles').updateConditionalGrantsForUser(object, 'roles');
      
        console.log("ON UPDATE");
      })();
      

      Perform a Patch operation on any attribute. The 'onUpdate' trigger is invoked twice.

        Attachments

        1. assignments.json
          3 kB
        2. managed.json
          33 kB
        3. onUpdate.js
          1 kB
        4. patch.sh
          0.3 kB
        5. provisioner.openicf-ldap.json
          9 kB
        6. sync.json
          7 kB
        7. user.json
          3 kB

          Issue Links

            Activity

              People

              • Assignee:
                alin Alin Brici
                Reporter:
                patrickdiligent patrick diligent
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: