2isprime
2isprime13mo ago

Search User Grants

Hello , For the endpoint: https://zitadel.com/docs/apis/resources/mgmt/management-service-list-user-grants the queries parameter only allows a single query. Is there a way to perfrom and/or operation on these queries? Or a better way to combine multiple queries and send the request
ZITADEL Docs
Returns a list of user grants that match the search queries. User grants are the roles users have for a specific project and organization.
6 Replies
fabienne
fabienne13mo ago
It is possible to send multiple queries, they are and operations { "queries": [ { "projectIdQuery": { "projectId": "236476529792553067" } }, { "userIdQuery": { "userId": "212401993329737985" } } ] } if you send the body like that it should work
2isprime
2isprimeOP13mo ago
awesome , this works..thank @fabienne
fabienne
fabienne13mo ago
great to hear
2isprime
2isprimeOP13mo ago
So for now we have and operations possible, is there any existing way to or these queries? @hi.fabienne
fabienne
fabienne13mo ago
no at the moment we only support and queries
2isprime
2isprimeOP13mo ago
Thanks 👍

Did you find this page helpful?