By: Ezequiel Sandoval user 10 Nov 2016 at 4:23 p.m. CST

5 Responses
Ezequiel Sandoval gravatar
Hi Community! I am trying to create users via SCIM over Gluu (with UMA protocol). Everything was working pretty good, but after a few days, we started to have the following response error when we try to create an user over SCIM protocol: { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "status": "500", "scimType": "", "detail": "Scim2UserService.createUser(): Failed to create user; GluuCustomPerson is null" } I attached my wrapper.log at the exact moment when the errors happens (when i call 'https://<myGluu>/identity/seam/resource/restv1/scim/v2/Users/') And also i attached my JSON Object that is sent with the message. Please any additional information that you need, just ask me.

By Valentino Pecaoco user 10 Nov 2016 at 6:09 p.m. CST

Valentino Pecaoco gravatar
Hi Ezequiel, Your source User JSON seems to be null [CopyUtils2.copy()](https://github.com/GluuFederation/oxTrust/blob/version_2.4.4/server/src/main/java/org/gluu/oxtrust/util/CopyUtils2.java#L125-L127) Please check your code. If you are using Java, I recommend [SCIM-Client](https://github.com/GluuFederation/SCIM-Client/) and use its API to create your requests (less prone to error than manually constructing the JSON payload, for example). Regards, Val

By Ezequiel Sandoval user 11 Nov 2016 at 6:11 a.m. CST

Ezequiel Sandoval gravatar
Hi Valentino, thanks for your quick response. Well, i am trying to do the creation with a postman message. In fact the JSON object i am sending, is the same that I send when i use the SCIM-Client API (and i have the same error). I feeling is that something is happening on this environment (because if i try with my test environment both solutions works). Finally, i can not use the API because of the customers wants to develop his own users CRUD with .NET. So i need to figured out the way to create users 'with HTTP messages'.

By Valentino Pecaoco user 11 Nov 2016 at 7:47 a.m. CST

Valentino Pecaoco gravatar
Well, if it's any clue, what works yesterday doesn't just get broken the next day. So check everything, a change might have been introduced.

By Ezequiel Sandoval user 11 Nov 2016 at 7:48 a.m. CST

Ezequiel Sandoval gravatar
OK, so your recommendation is re-install the environment just in case.

By Ezequiel Sandoval user 12 Nov 2016 at 5:35 p.m. CST

Ezequiel Sandoval gravatar
I've just restarted the environment and everything is working fine. I wonder what could be the problem really. Anyway, thanks so much for your help Valentino