<div dir="ltr"><div><div><div>Is it possible to set the object template on a particular type of createOnDemand role? I'd rather not use the global role template if possible. (Alternatively, it would be nice if you could do a conditional include.)<br><br></div>I tried the following:<br><br>               <populateItem><br>                  <expression><br>                     <value>10000000-0000-0000-0000-000000000241</value><br>                  </expression><br>                  <target><br>                     <c:path>objectTemplateRef</c:path><br>                  </target><br>               </populateItem><br><br></div>I also tried using an <assignmentTargetSearch> tag to look up the object template object. I also tried specifying the target as c:objectTemplateRef, c:objectTemplate, and objectTemplate.<br><br></div><div>For example:<br><br>               <populateItem><br>                  <expression><br>                     <assignmentTargetSearch><br>                        <targetType>c:ObjectTemplateType</targetType><br>                        <filter><br>                           <q:equal><br>                              <q:path>c:oid</q:path><br>                              <expression><br>                                 <value>10000000-0000-0000-0000-000000000241</value><br>                              </expression><br>                           </q:equal><br>                        </filter><br>                     </assignmentTargetSearch><br>                  </expression><br>                  <target><br>                     <c:path>c:objectTemplate</c:path><br>                  </target><br>               </populateItem><br></div><div><br></div><div>The error messages indicate that the target is the problem. "No target item that would conform to the path objectTemplate in expression in mapping in objectTemplate"</div><div><br></div><div>There doesn't seem to be a sample for doing this, and the documentation only shows how to set it globally for users and roles.<br></div><div><br></div>How would one go about doing this? Is there a better way to do this sort of thing in Midpoint?<br clear="all"><div><div><div><div><br>-- <br><div><div dir="ltr">Devin Rosenbauer<br>Principal Consultant<br>Identity Works LLC<br><a href="tel:%2B1%20585%20210%203201" value="+15852103201" target="_blank">+1 585 210 3201</a><br></div></div>
</div></div></div></div></div>