Evict a single user cache entry

455 views
Skip to first unread message

Keycloak CarGurus

unread,
Jan 10, 2022, 2:19:56 PM1/10/22
to Keycloak Dev
Hello,

Is there a way to evict a single user cache entry?   Currently we can call POST /{realm}/clear-user-cache to clear the whole user cache for a realm.   The UserCache.java interface defines a method to clear a single user cache entry, but it does not look like the current Admin Rest API provides an endpoint to perform this action.   

Is our understanding correct?   If we want to implement the single user cache eviction operation, can you suggest how this is best accomplished?

Thank you!

Thomas Darimont

unread,
Jan 10, 2022, 3:39:24 PM1/10/22
to Keycloak Dev
Hello,

this is the Keycloak Developers mailinglist, a better place for asking such questions is the keycloak-user group:

Btw. you could just create your own custom endpoint via the RealmResourceProvider SPI: 

Cheers,
Thomas

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages