In the SCIM core schema there is a simple multivalued attribute "photos" defined to hold the urls of a user's photos.
In the UnboundID Data Store config directory the scim-resources.xml file has the following commented out under the User resource:
<!-- Mapping must be defined to use this attribute
<attribute name="photos" schema="urn:scim:schemas:core:1.0"
readOnly="false" required="false">
<description>URL of photos of the User</description>
<simpleMultiValued childName="photo" dataType="string">
<canonicalValue name="photo"/>
<canonicalValue name="thumbnail"/>
</simpleMultiValued>
</attribute>
-->
Further down in the spec is an example output:
"photos": [
{
"value": "https://photos.example.com/profilephoto/72930000000Ccne/F",
"type": "photo"
},
{
"value": "https://photos.example.com/profilephoto/72930000000Ccne/T",
"type": "thumbnail"
}
],
I have User entries with the jpegPhoto attribute populated. Questions:
- Does UnboundID already have an endpoint defined to access these photos? I don't want just the encoded binary string value of jpegPhoto
- If such an endpoint exists (or I create one), do I then need to write a transformation class and reference it in a
<subMapping>
child element of the<canonicalValue>
elements?
If how to do this is documented somewhere I haven't been able to find it.
Any guidance appreciated.
Grant