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?
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?


