mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-08 07:05:12 +00:00
fix: add InUserIDs query to query of user grants (#10741)
# Which Problems Are Solved Currently there is only the option to either filter for all usergrants of an organization or the usergrants of a singluar user. # How the Problems Are Solved Add the option to provide a list of userIDs to query user grants. # Additional Changes Fixed internal typo for function. # Additional Context Closes #9675
This commit is contained in:
@@ -114,6 +114,14 @@ func NewUserGrantUserIDSearchQuery(id string) (SearchQuery, error) {
|
||||
return NewTextQuery(UserGrantUserID, id, TextEquals)
|
||||
}
|
||||
|
||||
func NewUserGrantInUserIDsSearchQuery(ids []string) (SearchQuery, error) {
|
||||
list := make([]interface{}, len(ids))
|
||||
for i, value := range ids {
|
||||
list[i] = value
|
||||
}
|
||||
return NewListQuery(UserGrantUserID, list, ListIn)
|
||||
}
|
||||
|
||||
func NewUserGrantProjectIDSearchQuery(id string) (SearchQuery, error) {
|
||||
return NewTextQuery(UserGrantProjectID, id, TextEquals)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user