By: guilherme augusto user 27 Aug 2021 at 1:04 p.m. CDT

2 Responses
guilherme augusto gravatar
I am trying to create a user through SCIM API using postman. Can you help me please ? I am sending a post to https://demoexample.gluu.org/identity/restv1/api/v1/users with beare token and this json at body { "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": { "o": "a2f21848-866c-4953-80b1-b908a025bc1c" }, "userName": "CXpartner", "displayName": "CX", "name": { "givenName": "CX", "middleName": "", "familyName": "Partner" }, "active": true, "password": "...", "emails": [ { "type": "primary", "value": "test@test.co.za" } ] } the response is 400 Bad request Unrecognized field "schemas" (class org.gluu.oxtrust.api.server.model.GluuPersonApi), not marked as ignorable I already try to remove the fields that it unrecognized. But the erro continues. I already loot at documentation https://www.gluu.org/docs/gluu-server/4.2/api-guide/scim-api/#post and not found the response for this problem. Can you help me ?

By Jose Gonzalez staff 27 Aug 2021 at 2:54 p.m. CDT

Jose Gonzalez gravatar
Guilherme, SCIM endpoints are of the form: `/identity/restv1/scim/v2/...` They can be seen in the doc page you referenced. Swagger docs are [here](https://github.com/GluuFederation/scim/tree/version_4.2.3/scim-server/src/main/resources) in case they are familiar to you .

By Aliaksandr Samuseu staff 27 Aug 2021 at 2:55 p.m. CDT

Aliaksandr Samuseu gravatar
Hi, Guilherme. If you would like a suggestion: building up from simple to more complex usually helps a lot with learning new things. We have pretty good docs on SCIM, like [here](https://gluu.org/docs/gluu-server/4.2/user-management/scim2/#creating-resources) it shows a simple JSON you can use to create an user. It works, I used it several times, so you could start from here, and then add the attributes you need one by one, testing user creation after each of them - until you'll find out which of them give you the trouble, or find what you were doing wrong perhaps. Hope this helps, feel free to create another ticket if you'll be stuck at some point again.