<div dir="ltr"><span style="color:rgb(15,15,15);font-family:Roboto,Arial,sans-serif;font-size:14px">Hello!
Could you please explain the difference between the setRequired(true) and setCreateable(true) flags when defining ConnId attributes?
1. If the UID is generated by the target system, should we set required=false and createable=false?
2. For the Name attribute that midPoint must send when creating an account — should both flags be set to true?
3. If an attribute can be provided during object creation but is not mandatory, should it be required=false and createable=true?
4. Is it correct that we should never use required=true together with createable=false?
Am I right that required=true means the attribute must be included in the Set<Attribute> passed to the create() method of the CreateOp interface? No to other operations. Only for Create?
I'm trying to understand the practical meaning of these flags when designing a connector schema.
5. Additionally, I’m still confused about how account creation actually works in practice.
For example, if I want to manually set the UID or other attributes when creating an account — how is this done? Is it controlled by inbound/outbound mappings, or by the connector schema itself?
It’s quite hard to understand how midPoint decides which attributes to send during account creation on the first try.
(I'm using midPoint 4.9.)
6. And one last question: what is the purpose of setReturnedByDefault(true)?
Is it true that midPoint simply won’t expect such attributes by default, but it will still accept attributes marked with setReturnedByDefault(false) if they are present in the resource response?
7. I would also like to mention that I created an attribute on the diagram as a string for locking and unlocking __ENABLE__. Am I correct in understanding that Midpoint will still create it on the diagram with the type that it defines and recognizes—that is, as Boolean for special system attributes? According to the Special-Purpose Attributes table?
Thank you very much in advance!</span></div>