Auth0 Home Blog Docs

Need to query app_metadata in Delegated Admin Extension


#1

Hi guys,

I need to pass a lucene query containing a tenant ID for filtering the user list. So basically, I’m having the same problem mentioned in these topics:




and many others …

There is also a corresponding incident mentioned there, but the link seems broken: https://status.auth0.com/incidents/71nlbr16j7ng

How do I resolve this issue?


Delegated Adm: "User Details" view wrong memberships
#2

I’m afraid that if you don’t have a tenant that can perform search over custom metadata fields when using search engine v2 then you won’t be able to accomplish that in the extension. As noted in some of the links you posted this ability it’s not available to every tenant.

There’s a new version of the search engine that is being introduced where the query by a tenant ID in metadata would be possible (https://auth0.com/docs/users/search/v3), however, this is still not generally available and even if you can already use v3 through the Auth0 Management API, the DAE extension is still making use of v2 (https://github.com/auth0-extensions/auth0-delegated-administration-extension/blob/b5e3527f30a41df481d6af03cf78a01d98679beb/server/routes/users.js#L104). In conclusion, there does not seem to be a solution for this at this time.


#3

Hmm ok, that’s actually bad news for me :confused: Do you have a timeline for when DAE will use search engine v3? I mean in the link you’ve posted it says:

The user search engine v2 will be deprecated soon, so we recommend migrating user search functionality to search engine v3 (search_engine=v3).

So I’d expect DAE to be migrated to v3 very soon?


#4

As a personal opinion, soon in software development tends to be a bit more of an unknown then the dictionary definition. What I know is that at this precise time the v3 option is still not generally available so forcing DAE to use it (which would be a quick thing) is not feasible at it would be broken for some. In addition, there are some changes between both engines so even when v2 is deprecated there’s still need to be some time for people to move out of it. With all these in mind I’m a bit unsure in terms of timelines for the DAE. I’ll relay this information internally so that at least I know the possibility to use v3 in the extension is already being tracked.


#5

I just wanted to provide you with yet to be confirmed, but possibly some better news related to this. There was work already going for a future release of this extension and the possibility to configure which search engine to use may be included as part of that release so soon in this case may indeed prove to be soon. Have in mind things change, but there’s a good indication that this possibility will land already in the next version (and no, don’t have a timeline for the release of the version).


#6

Ok, that sounds good! Thank you :slight_smile: