*Bug* - External ID is currently not searchable although it should be
See original GitHub issueIssue Description
What version of UAA are you running?
{“app”:{“version”:“4.11.0”},“links”:{“uaa”:"https://uaa…
How are you deploying the UAA?
I am deploying the UAA using cf-deployment
What did you do?
If possible, provide a recipe for reproducing the error. Exact curl
or uaac
commands with verbose output are helpful. If your problem is configuration-related, please include portions of your uaa.yml or bosh deployment manifest that you believe may be relevant (but do not divulge secrets!)
What did you expect to see? What goal are you trying to achieve with the UAA?
According to UAA documentation, external_id is a searchable attribute. See also https://github.com/cloudfoundry/uaa/blob/develop/docs/UAA-APIs.rst#a-note-on-filtering
" […] The following column names can be used for querying a user
[…]
- external_id - string […] "
- Get Users (working)
curl -H “Authorization: Bearer $TOKEN” -H “Accept: application/json” “https://uaa.ng.bluemix.net/Users?filter=userName+eq+“Martin.Smolny%40de.ibm.com””
{“resources”:[{“id”:“20523bc9-61ba-4224-9176-4590d6bed26a”,“meta”:{“version”:4,“created”:“2014-07-21T08:28:35.420Z”,“lastModified”:“2014-08-15T02:51:22.340Z”},“userName":"Martin.Smolny@de.ibm.com”,…}
- Get Users (bug)
external_id, as documented:
curl -H “Authorization: Bearer $TOKEN” -H “Accept: application/json” “https://uaa.ng.bluemix.net/Users?filter=external_id+eq+“abc””
{“error_description”:“Invalid filter expression: [external_id eq "abc"] [created]”,“error”:“scim”,“message”:“Invalid filter expression: [external_id eq "abc"] [created]”}
externalid without underscore:
curl -H “Authorization: Bearer $TOKEN” -H “Accept: application/json” “https://uaa.ng.bluemix.net/Users?filter=externalid+eq+“abc””
{“error_description”:“Invalid filter expression: [externalid eq "abc"] [created]”,“error”:“scim”,“message”:“Invalid filter expression: [externalid eq "abc"] [created]”}
for comparison the attribute phonenumber that is also documented as searchable:
curl -H “Authorization: Bearer $TOKEN” -H “Accept: application/json” “https://uaa.ng.bluemix.net/Users?filter=phonenumber+eq+“abc””
{“resources”:[],“startIndex”:1,“itemsPerPage”:100,“totalResults”:0,“schemas”:[“urn:scim:schemas:core:1.0”]}
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (4 by maintainers)
@sreetummidi Please don’t! I do have a requirement that I can store an external reference to a UAA record, and all I was asking is that field is searchable like it is documented. Let me know if you need more detailled explanation of the requirement, but in fact I think UAA has all of it already except that the field is not searchable (which is should be according to the doc and according to my requirement)
Closing due to inactivity.