<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"\@Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:#272726;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;}
@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="NL-BE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">Is there a way to configure ConnId properties through MidPoint configuration?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">Context: we’re evaluating the Keycloak connector from Openstandia, which has been working great.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">When configuring the user-to-group mappings, we need to be able to set the allowPartialAttributeValues value so that the connector doesn’t skip retrieving
group memberships, as I understand from this bit of code:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">if (allowPartialAttributeValues) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> // Suppress fetching groups<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> LOGGER.ok("[{0}] Suppress fetching groups because return partial attribute values is requested", instanceName);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> AttributeBuilder ab = new AttributeBuilder();<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> ab.setName(ATTR_GROUPS).setAttributeValueCompleteness(AttributeValueCompleteness.INCOMPLETE);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> ab.addValue(Collections.EMPTY_LIST);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> builder.addAttribute(ab.build());<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> } else {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> if (attributesToGet == null) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> // Suppress fetching groups default<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> LOGGER.ok("[{0}] Suppress fetching groups because returned by default is true", instanceName);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> } else if (shouldReturn(attributesToGet, ATTR_GROUPS)) {<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> // Fetch groups<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> LOGGER.ok("[{0}] Fetching groups because attributes to get is requested", instanceName);<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> List<GroupRepresentation> groups = users(realmName).get(user.getId()).groups();<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> builder.addAttribute(ATTR_GROUPS, groups.stream().map(g -> g.getId()).collect(Collectors.toList()));<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> }<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"> }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">The allowPartialAttributeValues variable is a ConnID Operation Option, for which I found the JavaDoc here:
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><a href="https://connid.tirasa.net/apidocs/1.5/org/identityconnectors/framework/common/objects/OperationOptions.html#OP_ALLOW_PARTIAL_ATTRIBUTE_VALUES"><span lang="EN-US" style="color:#272726">OperationOptions
(ConnId 1.5.2.0 API)</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">The MidPoint version we’re using is 4.8.5.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">Regardless of our specific context, it would be good to know if and how ConnId options can be set through MidPoint configuration. I highly appreciate
your feedback.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="http://www.sfpd.fgov.be/"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="55" height="50" style="width:.575in;height:.5166in" id="Picture_x0020_1" src="cid:image001.png@01DB6BF1.F23E4860"></span></a><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"><br>
<br>
</span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#B50045;mso-ligatures:none">Robin Gorris<br>
</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"><br>
Build & Release<br>
Federale Pensioendienst<br>
<br>
</span><a href="http://www.sfpd.fgov.be/"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_2" src="cid:image002.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="http://mypension.be/"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="24" height="25" style="width:.25in;height:.2583in" id="Picture_x0020_3" src="cid:image003.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="https://www.facebook.com/Pensioendienst"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_4" src="cid:image004.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="http://ow.ly/1059Df"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_5" src="cid:image005.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="https://twitter.com/Pensioendienst"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_6" src="cid:image006.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="http://ow.ly/1059Nc"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_7" src="cid:image007.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="https://www.youtube.com/channel/UCPhdJMkumaVUWvRiNcDsbzA"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_8" src="cid:image008.gif@01DB6BF1.F23E4860"></span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"> </span><a href="https://www.google.com/maps/place/Zuidertoren/@50.837610,4.336909,19z"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;text-decoration:none"><img border="0" width="25" height="25" style="width:.2583in;height:.2583in" id="Picture_x0020_9" src="cid:image009.gif@01DB6BF1.F23E4860"></span></a><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#272726;mso-ligatures:none"><o:p></o:p></span></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #2D9BA5 1.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="border:none;padding:0cm"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2D9BA5;mso-ligatures:none">Denk aan het milieu vooraleer je dit bericht afdrukt!<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>