<div dir="ltr">Guys hello. Can u please give me information how i must configure resource when i have 2 multi-acc for one user.<div>I did it </div><div><h3 id="gmail-__uid__-and-__name__-are-the-same" style="box-sizing:border-box;margin-top:0px;margin-bottom:0.5rem;font-weight:500;line-height:1.2;font-size:1.75rem;color:rgb(0,0,0);font-family:Roboto,"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji""><code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__UID__</code> and <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__NAME__</code> are the same</h3><div class="gmail-paragraph" style="box-sizing:border-box;color:rgb(0,0,0);font-family:Roboto,"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem">There are resources that do not have <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__UID__</code> or any similar identifier. They just have a single mutable identifier (<code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__NAME__</code>). But ConnId framework insist that there has to be an <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__UID__</code>. It is hardcoded into the framework. The <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__NAME__</code> also cannot be skipped as it is a mandatory attribute for <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">create(…)</code> operations.</p></div><div class="gmail-paragraph" style="box-sizing:border-box;color:rgb(0,0,0);font-family:Roboto,"Open Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:16px"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem">The solution is to formally present both <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__UID__</code> and <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__NAME__</code> attributes. But return the same value for them. This can be a bit confusing, but it works. MidPoint is designed to handle that situation. Ideally you should also put both the <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__UID__</code> and <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">__NAME__</code> attribute definitions to the schema and use the same <code style="box-sizing:border-box;font-family:"Roboto Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;color:rgba(0,0,0,0.9);background-color:rgb(247,247,248);letter-spacing:0px;padding:0.1em 0.5ex;word-spacing:-0.15em;line-height:1.45">nativeName</code> for them. That is an additional indication that these two attributes are the same and midPoint will handle them as a single attribute.</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem">From your guide</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem"><a href="https://docs.evolveum.com/connectors/connid/1.x/connector-development-guide/#__uid__-and-__name__-are-the-same">https://docs.evolveum.com/connectors/connid/1.x/connector-development-guide/#__uid__-and-__name__-are-the-same</a></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem">And in XML i don't have __UID__. Only __NAME__. NativeName of __NAME__ in my case is id. And then i do this:</p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem"><schemaHandling><br>        <objectType id="5"><br>            <kind>account</kind><br>            <displayName>accmymy</displayName><br>            <description>accmy</description><br>            <default>true</default><br>            <multiplicity><br>                <maxOccurs>unbounded</maxOccurs><br>                <tag><br>                    <expression><br>                        <script><br>                            <code>basic.getAttributeValue(projection, "id");</code><br>                        </script><br>                    </expression><br>                </tag><br>            </multiplicity><br>            <delineation><br>                <objectClass>ri:myaccount</objectClass><br>            </delineation><br>            <focus><br>                <type>c:UserType</type><br>            </focus><br>        </objectType><br>    </schemaHandling><br><br>and it's not work.. Can u please give me more infromation how i must do it. On schema in connector i do this: </p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:1rem;max-width:80rem">Is it wrong? ObjectClassInfoBuilder accountBuilder = new ObjectClassInfoBuilder();</p>accountBuilder.setType("myaccount"); <br>AttributeInfoBuilder uid = new AttributeInfoBuilder(Uid.NAME);<br>uid.setType(String.class);<br>uid.setRequired(false);<br>uid.setUpdateable(false);<br>uid.setCreateable(false);<br>uid.setNativeName(AccountAttributes.ID);<br>accountBuilder.addAttributeInfo(uid.build());<br>AttributeInfoBuilder name = new AttributeInfoBuilder(Name.NAME); <br>name.setType(String.class);<br>name.setRequired(true);    <br>name.setCreateable(true);  <br>name.setUpdateable(false);<br>name.setNativeName(AccountAttributes.ID); <br>accountBuilder.addAttributeInfo(name.build()); </div></div></div>