<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi</p>
<p>I have a special use case for which I need your help.</p>
<p>I have a door-lock system which registers cards with its cardID.
The collection of cards is handled as midPoint-Ressource and
entrys are being synced as Type ServiceType.<br>
Users on the other hand are synchronized from openLDAP.</p>
<p>The use case is that every time I register a new card the card
will appear in midPoint as a Service and can then be manually
assigned to a user. A user can have 0..n cards assigned.</p>
<p>both, the user and the card have an attribute "sstatus" which can
be set enabled/disabled which means to grant access or not (door).</p>
<p>I wrote a role which sets the attribute to "enabled" if this role
is assigned to a user. <br>
</p>
<pre> <inducement id="2">
<focusMappings>
<mapping id="3">
<name>S-Status</name>
<expression>
<script xsi:type="c:ScriptExpressionEvaluatorType">
<code>
import com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType;
return ActivationStatusType.ENABLED
</code>
</script>
</expression>
<target>
<c:path>$focus/extension/sstatus</c:path>
</target>
</mapping>
</focusMappings>
</inducement>
</pre>
<p>I need a way to provide this changed attribute (in <b>user</b>)
to all of the users <b>cards</b> so that every card in the
Ressource will have the attribute sstatus=enabled<br>
</p>
<div class="moz-signature"><br>
</div>
<div class="moz-signature">regards, <br>
</div>
<div class="moz-signature">Fabian<br>
</div>
</body>
</html>