Directory extension support#42
Conversation
| // directory extensions | ||
| for (String ext : directoryExtensionAttributeList(getConfiguration())){ | ||
| userObjClassBuilder.addAttributeInfo(new AttributeInfoBuilder(ext) | ||
| .setRequired(false).setType(String.class).setCreateable(false).setUpdateable(true).setReadable(true).build()); |
There was a problem hiding this comment.
I would really not want to specify this as a general assumption for all extension attributes. I'm no expert in MS Entra, but looking at this topic, it seems that there are also other supported data types than "String". Also, they can be creatable, rather than just updatable (and other flags like multiplicity can play a role as well).
| <groupId>com.evolveum.polygon</groupId> | ||
| <artifactId>connector-msgraph</artifactId> | ||
| <version>1.2.1.0-SNAPSHOT</version> | ||
| <version>1.2.1.4-SNAPSHOT</version> |
There was a problem hiding this comment.
Please do not update the "versioning" of the connector.
|
Thank you for your contribution. This feature could certainly be interesting in the Entra connector, yet the implementation limits it to only the "User" object class (which could be potentially documented as a limitation). The more problematic part is the general assumption, which I pointed out in the following comment. In this case, more information about the attribute schema might be needed. We do not have a way to specify complex parameters in the configuration (yet), so the possibilities might be a naming convention or a path to a file containing the schema in a machine-readable format (which could be parsed by the connector). |
Hi thanks for your feedback, this is a feature needed by a project I am doing which I thought others might find useful as well. I am working on the feedback you have given, and am adding support for all different types. This documentation page states the following types:
|
|
Thank you, that sounds great! For the binary types, an "array of bytes" as for the "type" definition should be used. Here is an example in the case of the "photo" attribute. |
…ensions. Datetime is handled as String because other time objects seem to be handled like that. reference is also handled as a string as it is an id, this id can be used with a simulated reference in midpoint if needed.
…nsions. Updated update method to fetch old state of multivalued extension attributes.
|
Hi |
Added support for entra directory extensions. The extensions need to be declared in the config separated by ";", only provide the actual names as "extension_{client_id}" prefix will be automatically added.