Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-5734

Role autoassign select object type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: backlog
    • Component/s: None
    • Labels:
      None
    • Subscription:
      No subscription (community)

      Description

      How set object type for apply role autoassign?

      For example for UserType only. In default it apply to all object.

      <autoassign>
              <enabled>true</enabled>
              <focus>
                  <mapping>
                      <strength>strong</strength>
                      <source>
                          <c:path>organizationalUnit</c:path>
                      </source>
                       <source>
                          <c:path>name</c:path>
                      </source>
                      <condition>
                          <script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="c:ScriptExpressionEvaluatorType">
                              <code>
                                 result = (organizationalUnit.toString() == "MVV")
                                 log.info("AutoAssignRole Manager add to user = {} , result = {}", name, result) 
                                 return result
                              </code>
                          </script>
                      </condition>
                  </mapping>
              </focus>
          </autoassign>
      
       <type>c:UserType</type>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                xahu Nikolay
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: