ZITADELZZITADEL
Powered by
boblack_zockerB
ZITADEL•4y ago•
9 replies
boblack_zocker

Retrieving User Object from UserGrant

Hey there, I am facing a problem in retrieving the User behind the UserGrant Object. As far as I understand, I can retrieve the User from the UserGrant object using the user_id property, as shown in the first picture.

However, I have two problems: Firstly, I cannot compare the user_id to the id of the User Object because there is no SearchQuery (I am not aware of any other way to do this yet). Secondly, I tried to retrieve the user by comparing it with the UserName of each object, but I can only compare one username at a time. I tried creating a list of queries and adding it to the ListUsers method, but it doesn't work with multiple queries. Am I doing something wrong here?

Is there a way to retrieve the users without having to perform a query for each object, as it is very time-consuming and would result in many database calls?
image.png
image.png
ZITADEL banner
ZITADELJoin
ZITADEL - Identity infrastructure, simplified for you.
4,374Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

User's object.Details is nil
sp132Ssp132 / questions-help-bugs
2y ago
Retrieving user roles and the shape of the data returned
spicypixelSspicypixel / questions-help-bugs
9mo ago
Issue with Retrieving Session and User Details in Zitadel API v2
fabienneFfabienne / questions-help-bugs
15mo ago