question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

*Bug* - External ID is currently not searchable although it should be

See original GitHub issue

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 […] "
  1. 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”,…}

  1. 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:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
smoser-ibmcommented, Sep 20, 2018

@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)

0reactions
shamuscommented, May 23, 2020

Closing due to inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

externalid - External ID not searchable in Global Search
1 Answer 1 ... As per Searchable Fields by Object, all the external Id fields are searchable. Whenever you search for a keyword,...
Read more >
External Issue Id / External ID cannot be imported in JIRA
As a user, i cannot import issues with column external ID. I would like to have the ID of requirements from other tool...
Read more >
External ID..Help - Salesforce Developer Community
I am testing one of my class wsdl through SOAP UI and passing the same values to that external Id field(Text type) more...
Read more >
Error 404: Provided external ID field does not exist or is not ...
It means the plugin is trying to push to a Salesforce record that does not exist. Usually it means it previously tried to...
Read more >
How to use an external ID when granting access to your AWS ...
For example, you could specify that the role allows someone to manage only your Amazon EC2 and Amazon RDS resources but not your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found