Get offline sessions associated with the user and client [SAT] - ERROR: "Client not found"

So from the keycloak API docs I want to use the API to get all offline sessions of the user because I want to delete some of these offline sessions because just by removing regular session token is still working.

API : {{keycloak_url}}/admin/realms/{{realm}}/users/{{userId}}/offline-sessions/{{clientId}}

BUT… When I tried to hit this API to get offline session then this error is coming “Client not found” everytime.

I’m passing everything correctly and I’m able to fetch the regular sessions but not offline-sessions

https://auth.work.com/admin/realms/work-dev/users/4485e3fd-1dca-91c7-92t5-1f2cfbbfdf4e/offline-sessions/workclient

1 Like

I also got this error …

Did you get any leads on how to solve this.

no, still looking for solution …

got any updates for this error … i am still looking for an answer