<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Form\00E1tovan\00FD v HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.FormtovanvHTMLChar
        {mso-style-name:"Form\00E1tovan\00FD v HTML Char";
        mso-style-priority:99;
        mso-style-link:"Form\00E1tovan\00FD v HTML";
        font-family:Consolas;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.StylE-mailovZprvy20
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SK" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello.<br>
Is there any good way to get (and to provision to resource) account group/role association with attributes, e.g. with attributes from activation 
<o:p></o:p></p>
<p class="MsoNormal">from respective role assignment (validFrom, validTo, ...).<br>
I mean there is a SAP resource connected with SAP connector<br>
https://docs.evolveum.com/connectors/connectors/com.evolveum.polygon.connector.sap.SapConnector/<br>
with association definition<br>
<br>
<association><br>
    <ref>ri:roles</ref><br>
    <displayName>Activity group (role) Membership</displayName><br>
    <tolerant>false</tolerant><br>
    <kind>entitlement</kind><br>
    <intent>roles</intent><br>
    <direction>subjectToObject</direction><br>
    <associationAttribute>ri:ACTIVITYGROUPS.AGR_NAME</associationAttribute><br>
    <valueAttribute>icfs:uid</valueAttribute><br>
</association><o:p></o:p></p>
<p class="MsoNormal"><br>
where we are getting list of roles‘ uids a user has assigned,<br>
but we would need provision more , some activation attributes of this association/assignment as well, e.g. validTo value.<br>
Is it somehow possible do it in Midpoint 4.8. ? Some custom attribute filled with some script/expression ?<br>
For Midpoint 4.9.  it seems there is an experimental feature called <span lang="EN-US">
“</span>complex association“ described in<br>
https://docs.evolveum.com/midpoint/reference/support-4.9/resources/entitlements/<br>
which promises such feature out of the box, I guess.<br>
<br>
I appreciate any hint.<br>
Thx a lot.<br>
<br>
<br>
<span style="color:black;mso-fareast-language:SK">Petr Kulheim<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:SK">Java developer<br>
<br>
</span><span lang="CS" style="mso-fareast-language:CS">IBA CZ, s.r.o.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="CS" style="mso-fareast-language:CS">Radlická 751/113e, Praha 5<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="CS" style="mso-fareast-language:CS">Office: Křenová 72, 602 00 Brno<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="CS" style="mso-fareast-language:CS">Phone: +420 603272826<br>
E-mail: petr.kulheim@ibacz.eu</span><span style="color:black;mso-fareast-language:SK"><br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>