scimgateway
scimgateway copied to clipboard
Multiple mail aliases wont work
Hi Jarle, We would like to request an enhancement to handle multi-valued Other type email attributes. Currently the type converting process will fail if there is more than one address supplied for Other types. However, this is where aliases are populated for users with multiple addresses.
The skipTypeConvert option will successfully allow all email addresses to be processed, however, then we are unable to properly pull the work type address out into a separate attribute on our LDAP backend. We need to be able to map the Work type address to one attribute, and the Other type addresses to a different attribute.
Config (only the required parts):
"skipTypeConvert": true,
"mailacceptinggeneralid": { "mapTo": "emails.value", "type": "array" }, "maildrop": { "mapTo": "emails.0['value']", "type": "string"
Input:
'{"schemas":["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],"externalId":"scott_test1","userName":"[email protected]","active":true,"displayName":"Scott Test1","emails":[{"primary":true,"type":"work","value":"[email protected]"},{"primary":false,"type":"other","value":"[email protected]"},{"primary":false,"type":"other","value":"[email protected]"},{"primary":false,"type":"other","value":"[email protected]"},{"primary":false,"type":"other","value":"[email protected]"}],"meta":{"resourceType":"User"},"name":{"formatted":"Scott Test1","familyName":"Test1","givenName":"Scott"}}
Output:
emails":[{"primary":true,"type":"work","value":"mailto:[email protected]},{"primary":false,"type":"other","value":"mailto:[email protected]"},{"primary":false,"type":"other","value":"mailto:[email protected]"},{"primary":false,"type":"other","value":"mailto:[email protected]"},{"primary":false,"type":"other","value":"mailto:"mailto:mailto:[email protected]"}]
LDAP output:
mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected]
Expected LDAP output:
mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected] mailacceptinggeneralid: mailto:[email protected] maildrop: mailto:[email protected]
maildrop is not processed or submitted. EIther need type convert improved so it can be accessed with emails.work.value, or guidance on how to retrieve it properly with skipTypeConvert true
Thanks Raj DM