mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-28 23:18:54 +00:00
feat: List users by metadata (#10415)
# Which Problems Are Solved Some users have reported the need of retrieving users given a metadata key, metadata value or both. This change introduces metadata search filter on the `ListUsers()` endpoint to allow Zitadel users to search for user records by metadata. The changes affect only v2 APIs. # How the Problems Are Solved - Add new search filter to `ListUserRequest`: `MetaKey` and `MetaValue` - Add SQL indices on metadata key and metadata value - Update query to left join `user_metadata` table # Additional Context - Closes #9053 - Depends on https://github.com/zitadel/zitadel/pull/10567 --------- Co-authored-by: Silvan <[email protected]> Co-authored-by: Stefan Benz <[email protected]>
This commit is contained in:
co-authored by
Silvan
Stefan Benz
parent
5517fe234f
commit
8df402fb4f
@@ -11,6 +11,10 @@ func OrganizationName() string {
|
||||
return company()
|
||||
}
|
||||
|
||||
func Email() string {
|
||||
return RandString(5) + gofakeit.Email()
|
||||
}
|
||||
|
||||
// appName private function to add a random string to the gofakeit.AppName function
|
||||
func appName() string {
|
||||
return gofakeit.AppName() + "-" + RandString(5)
|
||||
|
||||
Reference in New Issue
Block a user