HOW TO Scenarios

Add Custom Attribute to Syncope Users

Purpose

Often, when Apache Syncope is used to store user data, it becomes important to customize the fields that can be added to user.  For example, if we needed to include an Email address, First and Last names, or any other attributes, the following guide will illustrate how.

Via Apache Syncope Console

Via REST Request

     SYNCOPE_BASE_URL=http://localhost:8080
     USER=admin
     PASS=password
     SCHEMA_FILE=custom-schema.json
     while read MSG
     do
       curl -v -X POST -u ${USER}:${PASS} \
               -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-Syncope-Domain: Master' \
--data "$MSG" \
${SYNCOPE_BASE_URL}/syncope/rest/schemas/PLAIN
done < ${SCHEMA_FILE}