By: yoom nguyen user 08 Sep 2016 at 1:26 p.m. CDT

7 Responses
yoom nguyen gravatar
greetings, It has been a while since last time we work on this project. I am current performance a test validation for an attribute through SCIM. I am using the following SCIM query syntax to query a record oxTrustEmail: yoom@test.com Example: ScimResponse response; try { response = client.personSearch("oxTrustEmail", "yoom@test.com", MediaType.APPLICATION_JSON); } catch (IOException | JAXBException e) { throw new PortalException(e, PortalException.SEVERITY_LEVEL_2); } But not thing coming back. Is it a wrong syntax or SCIM did not work? If it is a wrong syntax what is the correct syntax? I know I can query the record by using ./ldapsearch -h localhost -p 1389 -D "cn=directory manager" -w xxxxx -b "o=gluu" "UID=yoom@test.com" . . uid: yoom@misoccer.us userPassword: {SSHA}m0xe9uMjKyAn0WthLYVAzsuIVLCS4985H9QEDA== securityType: order,quote,wishlist,reorder,convertquote oxTrustEmail: [{"value":"yoom@misoccer.us","type":"Work","primary":"True"}] preferredLanguage: US_en contNo: 1 givenName: Yoom objectClass: gluuPerson objectClass: top cn: Yoom Nguyen . . . Thank you for you help. Yoom

By Michael Schwartz Account Admin 08 Sep 2016 at 3:33 p.m. CDT

Michael Schwartz gravatar
Are you sure you're obtaining the UMA token which would authorize this client to call the SCIM endpoint? Maybe if you included more code and logs we could get a better idea of what's going on.

By yoom nguyen user 08 Sep 2016 at 5:14 p.m. CDT

yoom nguyen gravatar
Yes, It can communicate to the endpoint. Here is what I used ScimClient client = ScimClient.oAuthInstance(email, password, "@!C032.8999B.2CCA5.5E8C!0001!AVVA42!0008!4ACB.875B", "2323232321", "https://test.galco.com/identity/seam/resource/restv1", "https://test.galco.com/oxauth/seam/resource/restv1/oxauth/token"); I can retrieval other information but not the oxTrustEmail. I am wondering if I need to manually mapping or point that attribute to some other group or schema??? Thanks, Yoom

By Valentino Pecaoco user 08 Sep 2016 at 8:56 p.m. CDT

Valentino Pecaoco gravatar
Hi Yoom, > ScimClient client = ScimClient.oAuthInstance Yes it seems you are using a pretty outdated version (and also still SCIM 1.1). What is the version of Gluu CE and SCIM-Client that you are using? The latest Gluu release is v2.4.4 and you can check the [unit tests](https://github.com/GluuFederation/SCIM-Client/tree/version_2.4.4/src/test/java/gluu/scim/client) or the [docs](https://gluu.org/docs/integrate/scimuma-howto/) if there is something similar to your version. Regards, Val

By William Lowe user 14 Sep 2016 at 4:49 p.m. CDT

William Lowe gravatar
Hi Yoom, please upgrade to the latest version of the code and open a new ticket if you still have issues. Thanks.

By yoom nguyen user 14 Sep 2016 at 9:30 p.m. CDT

yoom nguyen gravatar
OK. What is the best way to upgrade to the latest code without reconfiguring the whole system? Do I need to export the ldap data and import it back in? Thanks, Yoom

By Valentino Pecaoco user 14 Sep 2016 at 9:40 p.m. CDT

Valentino Pecaoco gravatar
Here is the [upgrade procedure](https://gluu.org/docs/deployment/upgrading/), but this is for versions 2.4.x. Please open a new ticket and tell us your Gluu version. Thanks, Val

By yoom nguyen user 14 Sep 2016 at 10:12 p.m. CDT

yoom nguyen gravatar
I am currently using version 2.1.0.0 older version. We were one of your earlier tester. I will open a new ticket Thanks, Yoom