diff --git a/src/Keycloak.AuthServices.Sdk/Admin/Requests/Users/GetUserCountRequestParameters.cs b/src/Keycloak.AuthServices.Sdk/Admin/Requests/Users/GetUserCountRequestParameters.cs new file mode 100644 index 00000000..6a9ebea5 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk/Admin/Requests/Users/GetUserCountRequestParameters.cs @@ -0,0 +1,50 @@ +namespace Keycloak.AuthServices.Sdk.Admin.Requests.Users; + +/// +/// Optional request parameters for the endpoint. +/// If these are not specified, the total amount of users in the provided realm will be returned, otherwise, the amount +/// of users in the realm that match the criteria defined in these parameters will be returned. +/// +public class GetUserCountRequestParameters +{ + /// + /// An optional filter for a user's email. + /// + public string? Email { get; init; } + + /// + /// Whether a user's email has to be verified to be included. + /// + public bool? EmailVerified { get; init; } + + /// + /// Whether a user has to be enabled to be included. + /// + public bool? Enabled { get; init; } + + /// + /// An optional filter for a user's first name. + /// + public string? FirstName { get; init; } + + /// + /// An optional filter for a user's last name. + /// + public string? LastName { get; init; } + + /// + /// An optional query to search for custom attributes, in the format "key1:value2 key2:value2". + /// + public string? Query { get; init; } + + /// + /// An optional search string for all the fields of a user. + /// Default search behavior is prefix-based (e.g., foo or foo*). Use foo for infix search and "foo" for exact search. + /// + public string? Search { get; init; } + + /// + /// An optional filter for a user's username. + /// + public string? Username { get; init; } +}