diff --git a/README.md b/README.md index f95200c..faaaf58 100644 --- a/README.md +++ b/README.md @@ -584,7 +584,7 @@ Note: Ids are sent as clientScopeId or clientId and mapperId everything else is | Update the user | updateUser | ️️️✔️ | | Update partial data for the user | updatePartialUser | ️️️✔️ | | Delete the user | deleteUser | ️️️✔️ | -| Get consents granted by the user | | ❌ | +| Get consents granted by the user | | ️✔️ | | Revoke consent and offline tokens for particular client from user | | ❌ | | Disable all credentials for a user of a specific type | | ❌ | | Send a update account email to the user An email contains a link the user can click to perform a set of required actions. | executeActionsEmail | ✔️ | diff --git a/src/Admin/Resources/keycloak-1_0.php b/src/Admin/Resources/keycloak-1_0.php index d02221a..dc267ce 100644 --- a/src/Admin/Resources/keycloak-1_0.php +++ b/src/Admin/Resources/keycloak-1_0.php @@ -5197,6 +5197,26 @@ ) ), + 'getUserConsents' => array( + 'uri' => 'admin/realms/{realm}/users/{id}/consents', + 'description' => 'Get the consents granted by a user', + 'httpMethod' => 'GET', + 'parameters' => array( + 'realm' => array( + 'location' => 'uri', + 'description' => 'The Realm name', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'uri', + 'description' => 'User id', + 'type' => 'string', + 'required' => true + ) + ) + ), + 'updateUser' => array( 'uri' => 'admin/realms/{realm}/users/{id}', 'description' => 'Update a user (Username must be unique)',