By: Hamdi Bahrini user 22 Aug 2020 at 10:34 a.m. CDT

3 Responses
Hamdi Bahrini gravatar
Hello community, i'm trying to get the value of the *oxExternalUid* attribute already added to the extension. I think there is a problem with this attribute because it works with the attribute *oxEnrollmentCode* (wich is in the extension by default) but not with the added attribute. **The extension:** ``` { "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:Schema" ], "id": "urn:ietf:params:scim:schemas:extension:gluu:2.0:User", "meta": { "resourceType": "Schema", "location": "https://.../identity/restv1/scim/v2/Schemas/urn:ietf:params:scim:schemas:extension:gluu:2.0:User" }, "name": "GluuUserCustomExtension", "description": "Gluu User Custom Extension", "attributes": [ { "name": "oxEnrollmentCode", "type": "string", "multiValued": false, "description": "oxEnrollmentCode", "required": false, "caseExact": false, "mutability": "readWrite", "returned": "default", "uniqueness": "none" }, { "name": "oxExternalUid", "type": "string", "multiValued": false, "description": "user secret key", "required": false, "caseExact": false, "mutability": "readWrite", "returned": "default", "uniqueness": "none" } ] } ``` **The request to get the oxExternalUid:** ``` curl -G -H 'Authorization: Bearer 520cb...............' \ --data-urlencode 'filter=userName eq "test"' \ https://..../identity/restv1/scim/v2/Users?attributes=urn:ietf:params:scim:schemas:extension:gluu:2.0:User:oxExternalUid ``` **The response:** ``` { "Resources": [ { "id": "@!6DD5.2317.2C71.B3BD!0001!3F53.7A78!0000!61AF.AD9A.51A6.5AA8", "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ] } ], "itemsPerPage": 1, "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "startIndex": 1, "totalResults": 1 } ``` **The request to get the oxEnrollmentCode:** ``` curl -G -H 'Authorization: Bearer 29f46...............' \ --data-urlencode 'filter=userName eq "test"' \ https://......../identity/restv1/scim/v2/Users?attributes=urn:ietf:params:scim:schemas:extension:gluu:2.0:User:oxEnrollmentCode ``` **The response:** ``` { "Resources": [ { "id": "@!6DD5.2317.2C71.B3BD!0001!3F53.7A78!0000!61AF.AD9A.51A6.5AA8", "schemas": [ "urn:ietf:params:scim:schemas:extension:gluu:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User" ], "urn:ietf:params:scim:schemas:extension:gluu:2.0:User": { "oxEnrollmentCode": "888888" } } ], "itemsPerPage": 1, "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "startIndex": 1, "totalResults": 1 } ```

By Mohib Zico Account Admin 26 Aug 2020 at 11:54 p.m. CDT

Mohib Zico gravatar
What do you think @Jose.Gonzalez?

By Jose Gonzalez staff 27 Aug 2020 at 8:12 a.m. CDT

Jose Gonzalez gravatar
I'm able to replicate... Suggestion for Ham is: try to use another attribute if possible, better yet start using Gluu Server 4.1 or 4.2. I tried on those versions and it works as expected.

By Hamdi Bahrini user 27 Aug 2020 at 7:02 p.m. CDT

Hamdi Bahrini gravatar
I can't use another attribute (the _oxExternalUid_ is what i need) and we are using the 3.1.6 version of Gluu so using a recent version is not possible right now