<?xml version="1.0" encoding="UTF-8"?>
<objects xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
    xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
    xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3">
    <role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
      xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
      xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
      xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
      xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
      xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
      oid="b73234af-1d81-49d1-98d4-888aedf25ee4"
      version="14">
   <name>MemberOfGroup</name>
   <metadata>
      <requestTimestamp>2017-08-07T11:13:36.014+02:00</requestTimestamp>
      <requestorRef xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
                    oid="00000000-0000-0000-0000-000000000002"
                    relation="org:default"
                    type="c:UserType"><!-- administrator --></requestorRef>
      <createTimestamp>2017-08-07T11:13:36.034+02:00</createTimestamp>
      <creatorRef xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
                  oid="00000000-0000-0000-0000-000000000002"
                  relation="org:default"
                  type="c:UserType"><!-- administrator --></creatorRef>
      <createChannel>http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</createChannel>
      <modifyTimestamp>2017-08-07T11:14:04.467+02:00</modifyTimestamp>
      <modifierRef xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
                   xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
                   oid="00000000-0000-0000-0000-000000000002"
                   relation="org:default"
                   type="tns:UserType"><!-- administrator --></modifierRef>
      <modifyChannel>http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</modifyChannel>
   </metadata>
   <activation>
      <effectiveStatus>enabled</effectiveStatus>
      <enableTimestamp>2017-08-07T11:13:36.023+02:00</enableTimestamp>
   </activation>
   <iteration>0</iteration>
   <iterationToken/>
   <displayName>MemberOfGroup</displayName>
   <inducement id="1">
      <construction>
         <resourceRef xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
                      oid="e8146ed1-5e67-40ba-9e99-45ae01f69642"
                      relation="org:default"
                      type="c:ResourceType"><!-- BoxConnector --></resourceRef>
         <kind>account</kind>
         <association>
            <c:ref>ri:groupMember</c:ref>
            <outbound>
               <source>
                  <name>orgUnit</name>
                  <c:path>$assignment/c:orgRef</c:path>
               </source>
               <expression>
                  <associationTargetSearch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                           xsi:type="c:SearchObjectExpressionEvaluatorType">
                     <filter>
                         <q:text>
                             attributes/icfs:name = ```
                                 org = midpoint.getOrgByOid(orgUnit.getOid());
                                 return org.getName()
                                 ```
                         </q:text>
                     </filter>
                  </associationTargetSearch>
               </expression>
            </outbound>
         </association>
      </construction>
   </inducement>
   <inducement id="2">
      <targetRef xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3"
                 relation="org:default"
                 type="c:OrgType">
         <filter>
             <q:text>. inOid `focusAssignment?.getOrgRef()?.getOid()`</q:text>
         </filter>
      </targetRef>
      <order>1</order>
      <focusType>UserType</focusType>
   </inducement>
</role>
</objects>
