8000 Add get user count operation by syffer · Pull Request #45 · MohammadWaleed/keycloak-admin-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add get user count operation #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ Note: Ids are sent as clientScopeId or clientId and mapperId everything else is
|-----|:-------------:|:---------:|
| Create a new user Username must be unique. | createUser | ✔️ |
| Get users Returns a list of users, filtered according to query parameters | getUsers | ✔️ |
| GET /{realm}/users/count | | ❌ |
| GET /{realm}/users/count | getUserCount | ✔️ |
| Get representation of the user | getUser | ️️️✔️ |
| Update the user | updateUser | ️️️✔️ |
| Update partial data for the user | updatePartialUser | ️️️✔️ |
Expand Down
1 change: 1 addition & 0 deletions src/Admin/KeycloakClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
* @method array updateRealmRoleManagementPermissionsByRoleId (array $args = array()) { @command Keycloak updateRealmRoleManagementPermissionsByRoleId }
*
* @method array createUser(array $args = array()) { @command Keycloak createUser }
* @method array getUserCount(array $args = array()) { @command Keycloak getUserCount }
* @method array getUsers(array $args = array()) { @command Keycloak getUsers }
* @method array getUser(array $args = array()) { @command Keycloak getUser }
* @method array getUserGroups(array $args = array()) { @command Keycloak getUserGroups }
Expand Down
14 changes: 14 additions & 0 deletions src/Admin/Resources/keycloak-1_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -5023,6 +5023,20 @@
),
) + $UserRepresentation
),

'getUserCount' => array(
'uri' => 'auth/admin/realms/{realm}/users/count',
'description' => 'Get the number of users',
'httpMethod' => 'GET',
'parameters' => array(
'realm' => array(
'location' => 'uri',
'description' => 'The Realm name',
'type' => 'string',
'required' => true,
),
),
),

'getUsers' => array(
'uri' => 'auth/admin/realms/{realm}/users',
Expand Down
0