mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-23 12:26:47 +00:00
# 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 <27845747+adlerhurst@users.noreply.github.com> Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
46 lines
795 B
Go
46 lines
795 B
Go
package integration
|
|
|
|
import "github.com/brianvoe/gofakeit/v6"
|
|
|
|
// company private function to add a random string to the gofakeit.Company function
|
|
func company() string {
|
|
return gofakeit.Company() + "-" + RandString(5)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
func TargetName() string {
|
|
return appName()
|
|
}
|
|
|
|
func ApplicationName() string {
|
|
return appName()
|
|
}
|
|
|
|
func ProjectName() string {
|
|
return appName()
|
|
}
|
|
|
|
func IDPName() string {
|
|
return appName()
|
|
}
|
|
|
|
func RoleKey() string {
|
|
return appName()
|
|
}
|
|
|
|
func RoleDisplayName() string {
|
|
return appName()
|
|
}
|