<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Abhishek,</p>
<p>if you want to assign a role in midpoint based on group
membership in AD, take a look at the association option for
inbound mappings in the schema handling part of your resource:</p>
<p><a class="moz-txt-link-freetext" href="https://docs.evolveum.com/midpoint/reference/expressions/mappings/inbound-mapping/#association">https://docs.evolveum.com/midpoint/reference/expressions/mappings/inbound-mapping/#association</a></p>
<p>There you can define a custom expression that maps the group
membership to the correct role.<br>
</p>
<p>Kind regards</p>
<p>Sven<br>
</p>
<div class="moz-cite-prefix">Am 18.12.22 um 19:55 schrieb Abhshek
Singh via midPoint:<br>
</div>
<blockquote type="cite"
cite="mid:CALVt+e_Tb7_+9WnsbqNTCJJX7iuqTvuH3os2J3Q=6MM8SKgksQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<p class="MsoNormal" style="margin:0in 0in
12pt;font-size:11pt;font-family:Calibri,sans-serif">Hello,</p>
<p class="MsoNormal" style="margin:0in 0in
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I was
trying to synchronize AD groups and membership to some other
resource.</p>
<p class="MsoNormal" style="margin:0in 0in
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>
<p class="MsoNormal" style="margin:0in 0in
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">The
meta role option is working fine. But this process is manual,
so not feasible for a large number of users.<br>
<br>
Whenever a user is imported into midpoint, it should
automatically get assigned to a role corresponding to the
group it is a member of.<span style="font-size:11pt"> </span></p>
<p class="MsoNormal" style="margin:0in 0in
12pt;font-size:11pt;font-family:Calibri,sans-serif">Is there
any example, of how to do this?</p>
<p class="MsoNormal" style="margin:0in 0in
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Thanks
in advance,</p>
<p class="MsoNormal" style="margin:0in 0in
0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Abhishek</p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
</body>
</html>