Search bug in forms

I am not sure if this has been discovered or someone has already pointed this out but I think there is a gap in the search parameter inside of forms. If I build a query for Identities or roles I can successfully query no problem. Here is the issue. If I select to display the “name” attribute for end user selection, where does the technical ID for the object get stored for the workflow? It appears it is lost and then the only thing I can think of is to http request in the workflow to find search again. Maybe I am missing something but this seems like an obvious gap. No reason to have to search twice