cancel
Showing results for 
Search instead for 
Did you mean: 

Can we add Custom Attribute in Extesion Schma e.g hireDate

Highlighted
scim
New Member
0 Kudos

Can we add Custom Attribute in Extesion Schma e.g hireDate

Hi Team,

I am using UnboundID SCIM SDK 1.8.14,

In CoreSchema.java few attributes such as employeeNumber, costCenter, organization, division, department are part of "urn:scim:schemas:extension:enterprise:1.0".

 

If we have hireDate as extension attribute in SCIM server, will SCIM Unbound SCIM SDK able to handle such custom attribute?

 

Thanks

Ajit

 

1 REPLY
UnboundID _-rc-_
UnboundID
0 Kudos

Re: Can we add Custom Attribute in Extesion Schma e.g hireDate

Section 4 of SCIM 1.1 specification the describes schema extensions using custom xml namespaces and a schema URI

 

You're welcome to extended a resource and add attributes you need, e.g. UserResource < EnterpriseUser (extension) < AcmeEnterpriseUser (extension)

 

You should add your own schema namespace, e.g.

"schemas": [
"urn:scim:schemas:core:1.0",
"urn:scim:schemas:extension:enterprise:1.0",
"urn:scim:schemas:extension:com:acme:1.0",
]

 

In that namespace you can place the hireDate attribute in the com.acme extension. You will want to subclass and extend your own versions of CoreSchema and UserResource to support the custom attribute. If you have a server that has a non-standard Core Schema, you would still subclass CoreSchema and UserResource but you have to be careful not to make your subclasses incompatible with other SCIM servers that do not support your custom attribute.

Labels