Hi Jacques,
I would like to make sure you understand the way SCIM extensions are setup in Gluu Server.
Take into account that the attributes supported by **default** for a user are found at
`https://<host-name>/identity/seam/resource/restv1/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:User` (or in RFC 7643, section 8.7.1)
If you find that you still need to store something different, you have to add a custom attribute to the extension as the [docs explain](https://www.gluu.org/docs/ce/3.0.2/admin-guide/user-scim/#extensions) (this link is for version 3.0.2)
Surprisingly you are passing **uid** as a custom attribute. You don't need to do that: just use `userName` (it maps to `uid` LDAP attribute) so whatever you pass as `userName` will get stored in `uid`).
As you may notice, "organization" is not part of core schema, so you are supposed to add it to the extension. I did this in my local Gluu Server 3.0.2 for your reference:
* Login to oxTrust
* Navigate to `Configuration` > `Attributes`
* Locate the Organization attribute (`o`)
* In the form shown choose **True** under "SCIM Attribute"
* Ensure that **active** appears under "status"
* Click update
If you visit `https://<host-name>/identity/seam/resource/restv1/scim/v2/Schemas/urn:ietf:params:scim:schemas:extension:gluu:2.0:User` organization now appears added to the list of custom attributes
I made this POST to `https://<host-name>/identity/seam/resource/restv1/scim/v2/Users?access_token=...` and works
```
{
"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"
}
]
}
```
If the problem persists in your live server, please attach your oxTrust log in TRACE level.
Kind regards,
Jose.