By: Hamdi Bahrini user 18 Aug 2020 at 5:27 p.m. CDT

2 Responses
Hamdi Bahrini gravatar
Hello community, i'm trying to get user information using [SCIM API](https://gluu.org/docs/gluu-server/3.1.6/user-management/scim2/#retrieving-information-for-a-user), my question is how can i add the oxExternalUid attribute to the returned informations ? curl command ``` curl -G -H 'Authorization: Bearer 35a55266..................cb1' \ --data-urlencode 'filter=userName eq "test"' https://............../identity/restv1/scim/v2/Users ``` Response ``` { "Resources": [ { "active": true, "displayName": "foo", "emails": [ { "primary": false, "value": "test@....." } ], "id": "@!6DD5.2317.2C71.B3BD!0001!3F53............8", "meta": { "created": "2020-02-10T02:06:37.154Z", "lastModified": "2020-03-12T00:52:32.142Z", "location": "https://....../identity/restv1/scim/v2/Users/@!6DD5.2317.2C71.B3BD!0001!3F53............8", "resourceType": "User" }, "name": { "familyName": "bar", "formatted": "foo bar", "givenName": "foo" }, "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User" ], "userName": "test" } ], "itemsPerPage": 1, "schemas": [ "urn:ietf:params:scim:api:messages:2.0:ListResponse" ], "startIndex": 1, "totalResults": 1 } ```

By Jose Gonzalez staff 19 Aug 2020 at 7:18 a.m. CDT

Jose Gonzalez gravatar
Add that attribute to the extension. Basically use [these](https://gluu.org/docs/gluu-server/3.1.6/user-management/scim2/#creating-your-own-attributes-extensions) instructions except the two first bullets are not necessary since `oxExternalUid`is already part of LDAP schema.

By Hamdi Bahrini user 20 Aug 2020 at 7:11 p.m. CDT

Hamdi Bahrini gravatar
I opened another ticket for the issue..Thank you