[midPoint] IDM Midpoint. Can't understand multi-accounts
Али Саад
gerardo.saad at gmail.com
Mon Dec 29 10:33:21 CET 2025
Guys hello. Can u please give me information how i must configure resource
when i have 2 multi-acc for one user.
I did it
__UID__ and __NAME__ are the same
There are resources that do not have __UID__ or any similar identifier.
They just have a single mutable identifier (__NAME__). But ConnId framework
insist that there has to be an __UID__. It is hardcoded into the framework.
The __NAME__ also cannot be skipped as it is a mandatory attribute for
create(…) operations.
The solution is to formally present both __UID__ and __NAME__ 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 __UID__ and __NAME__ attribute definitions to the schema
and use the same nativeName for them. That is an additional indication that
these two attributes are the same and midPoint will handle them as a single
attribute.
>From your guide
https://docs.evolveum.com/connectors/connid/1.x/connector-development-guide/#__uid__-and-__name__-are-the-same
And in XML i don't have __UID__. Only __NAME__. NativeName of __NAME__ in
my case is id. And then i do this:
<schemaHandling>
<objectType id="5">
<kind>account</kind>
<displayName>accmymy</displayName>
<description>accmy</description>
<default>true</default>
<multiplicity>
<maxOccurs>unbounded</maxOccurs>
<tag>
<expression>
<script>
<code>basic.getAttributeValue(projection,
"id");</code>
</script>
</expression>
</tag>
</multiplicity>
<delineation>
<objectClass>ri:myaccount</objectClass>
</delineation>
<focus>
<type>c:UserType</type>
</focus>
</objectType>
</schemaHandling>
and it's not work.. Can u please give me more infromation how i must do it.
On schema in connector i do this:
Is it wrong? ObjectClassInfoBuilder accountBuilder = new
ObjectClassInfoBuilder();
accountBuilder.setType("myaccount");
AttributeInfoBuilder uid = new AttributeInfoBuilder(Uid.NAME);
uid.setType(String.class);
uid.setRequired(false);
uid.setUpdateable(false);
uid.setCreateable(false);
uid.setNativeName(AccountAttributes.ID);
accountBuilder.addAttributeInfo(uid.build());
AttributeInfoBuilder name = new AttributeInfoBuilder(Name.NAME);
name.setType(String.class);
name.setRequired(true);
name.setCreateable(true);
name.setUpdateable(false);
name.setNativeName(AccountAttributes.ID);
accountBuilder.addAttributeInfo(name.build());
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20251229/0b76dbdb/attachment.htm>
More information about the midPoint
mailing list