How to add or access a keycloak user in client application project without the first login?

Skip to first unread message

rakesh kotian

May 19, 2022, 1:57:23 PMMay 19
to Keycloak User

My Use case is as follows:

My Client application for Keycloak is Harbor(we can assume any other application as well here) which I have integrated with Keycloak for Single Sign On. The Keycloak users are able to login to Harbor .

Let's say User1 is a Keycloak User who has logged in once or more than once into Harbor app, so he gets listed in the Harbor user listing page, Now the Harbor admin is able to add this user to a project in Harbor. No issues here.

Now let's say we have User2 in Keycloak, who has never logged into the application Harbor. Problem here is the Harbor admin is not able to add this User2 into any project in Harbor, Im looking for a solution to solve this challenge, i.e, When Harbor Admin is trying to grant access to particular project , he should be able to do it for any Keycloak user even though he ha not logged in to application at-least once.

Tony Harris

May 20, 2022, 3:57:12 AMMay 20
to rakesh kotian, Keycloak User
We looked at two possible options for a similar situation.  Some middleware that used Keycloak API's to extract users from the Keycloak realm and update/insert into the application that required them via its API's or a custom event listener in Keycloak to push new users/user updates into the other application via its API's.

Personally we went with the custom event listener.


You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

rakesh kotian

May 24, 2022, 2:38:20 AMMay 24
to Keycloak User
Thanks Tony.
Out of the events that are available in keycloak , here I could not find something like user create, But I see REGISTER event. Will that be appropriate for this usecase? 

Reply all
Reply to author
0 new messages