Learn how to create and map custom attributes as a part of user provisioning to the Staffbase platform using SCIM.
In this article, you will learn how to create and map custom attributes to provision users from your identity provider to the Staffbase platform using
You can define the SCIM schema for user attributes and extend it with custom attributes. These custom attributes can be specific to your Staffbase platform users.
For example, you can create additional custom profile fields to record your users’ skills in the Staffbase platform. If you want to automatically provision values to a custom profile field using SCIM, do the following:
The schema for creating the custom attributes is urn:ietf:params:scim:schemas:extension:{{CompanyName}}:2.0:User:{{CustomAttribute}}
, you need to input the values within {{ }}
.
Here, CompanyName
is the name of your company and CustomAttribute
is the name you want to give the new custom attribute that you want to create.
If your CompanyName
is showcase
and the custom attribute you want to create is custom_department
.
The schema will look like this: urn:ietf:params:scim:schemas:extension:showcase:2.0:User:custom_department
.
The schema for creating custom attributes is the same for all Staffbase supported identity providers. Learn more about the identity providers that Staffbase supports.
In the same section where you configured your default mappings, you can also add custom attributes to provision information to custom profile fields in Staffbase.
The minimum default mapping required for Staffbase contains the following attributes:
externalId
Firstname
Lastname
Email
The JSON template for the attributes looks like this:
An example of an additional attribute custom_department
for the company name showcase
.
Example department custom attribute
urn:ietf:params:scim:schemas:extension:{CompanyName}:2.0:User:{CustomField}
{CompanyName}
: showcase{CustomField}
: custom_departmenturn:ietf:params:scim:schemas:extension:showcase:2.0:User:custom_department
urn:ietf:params:scim:schemas:extension:showcase:2.0:User
custom_department
as part of urn:ietf:params:scim:schemas:extension:showcase:2.0:User
Add the following to the template as shown in the example below:
urn:ietf:params:scim:schemas:extension:showcase:2.0:User
urn:ietf:params:scim:schemas:extension:showcase:2.0:User:custom_department
Now, you can give the custom attribute schema you created to the Staffbase administrator, who can configure the custom profile field. Learn more.
In the above example, the custom attribute schema looks like this: urn:ietf:params:scim:schemas:extension:showcase:2.0:User:custom_department