User and Group metadata provisioning via SCIM
1 min read
Unique AI supports sending user and group metadata along with SCIM. To use this, a custom attribute mapping is required for the respective object.
General
The user or group metadata is a JSON object. In order to send this via SCIM we added an additional attribute which must contain a valid JSON stringed object. To create such a valid string, the use of an expression is needed. Here are some examples of an expression which is creating a valid stringified JSON object.
With dummy values
Target object
{
"foo": "bar",
"num": 5,
"bool": true
}Expression
Join("", "{", Join(",", "\"foo\": \"bar\"", "\"num\": 2", "\"bool\": true"), "}")Result
'{"foo": "bar","num": 2,"bool": true}'With a Microsoft Entra Attribute included
Target object
{
"department": "IT",
"country": "Switzerland"
}Expression
Join("", "{", Join(",", Join("", "\"department\": \"", [department], "\""), Join("", "\"country\": \"", [country], "\"")), "}")Result
'{"department": "IT","country": "Switzerland"}'User
Adding customappsso attribute
Navigate to User Attribute Mapping, check “Show advanced options” and click “Edit attribute list for custoomappsso”

Insert
urn:ietf:params:scim:schemas:extension:uniqueai:2.0:User:userConfigurationas Name and String as Type and Save

Defining customappsso attribute
Back on the User Attribute Mapping click on “Add New Mapping“

Select “Expression”, insert “Expression”, select Target attribute
urn:ietf:params:scim:schemas:extension:uniqueai:2.0:User:userConfiguration.

Click “Ok”, validate the attribute is now on the list and Save the whole Attribute Mapping

Group
For the Group follow the instruction for the User. Take the Group Mapping instead the User and use this “customappsso Attribute” name: urn:ietf:params:scim:schemas:extension:uniqueai:2.0:Group:configuration