By: Naga Praveen user 08 Nov 2017 at 7:28 a.m. CST

2 Responses
Naga Praveen gravatar
Hi, I am trying to create a user through SCIM [identity/restv1/scim/v2/Users]. I am sending in birthdate[in YYYY-MM-DD] and gender[male/female] values as well while I am creating a user, even though the user is getting created, these values are being ignored. Is there anything I have to do additional so that these attributes are accepted by Gluu. Also, when I try to add a person from the Gluu admin UI, it does not show these fields by default. Thanks for your help.

By Michael Schwartz Account Admin 09 Nov 2017 at 1:24 a.m. CST

Michael Schwartz gravatar
What fields are shown in the UI are determined by the settings for that attribute (check the Admin/Attributes section). Regarding your SCIM question, in order to help you, it would be best if you could show the code you are using to make the request, the resulting request, the logs, and the data (if any) that you see in LDAP.

By Jose Gonzalez staff 09 Nov 2017 at 8:46 a.m. CST

Jose Gonzalez gravatar
Hi Naga, SCIM user schema does not have something like **birthday** or **gender** attrs, so it's not supported by default. If you want to add those, you will have to resort to using the schema extension. Suggested reading: [Creating your own attributes by using extensions](https://www.gluu.org/docs/ce/user-management/scim2/#creating-your-own-attributes-by-using-extensions). Example of a POST payload for creating a user that includes custom attributes: ``` { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:gluu:2.0:User" ], "urn:ietf:params:scim:schemas:extension:gluu:2.0:User": { "scimCustomFirst": "String single-valued", "scimCustomSecond": [ "2016-02-23T15:35:22Z" ], "scimCustomThird": 3000 }, "userName": "scim_test_bjensen", "name": { "familyName":"Jensen", "givenName":"Barbara", "middleName":"Jane" }, "displayName": "Brava", "nickName": "Babas" } ``` In your case, as **birthday** and **gender** already exist as LDAP attributes, you would just need to flag those as scim'd: in oxTrust go to `Configuration` > `Attributes`, click on **birthday**, and under "SCIM Attribute" choose `True`. The same goes for **gender**. Regards, Jose.