How to synchronize Alfresco users with KeyCloak? (share, not APS)

Showing results for 
Search instead for 
Did you mean: 
Member II

How to synchronize Alfresco users with KeyCloak? (share, not APS)


I am using Alfresco 6.1 with share in docker containers and want to manage users in KeyCloak only. I already managed to get the possibility of creating users in KeyCloak in loggin in with These credentials in share. Here is my docker-compose.yml:

version: "3.7"

        image: alfresco/alfresco-content-repository-community:6.1.2-ga
            JAVA_OPTS : "
                -Ddb.url=jdbcSmiley Tongueostgresql://postgres:5432/alfresco
      \"failoverSmiley Sadnio://activemq:61616)?timeout=3000&jms.useCompression=true\"
                -Xms1g -Xmx1g
            - 8080 #Browser port
        restart: always

        image: alfresco/alfresco-share:6.1.0
            - REPO_HOST=alfresco
            - REPO_PORT=8080
            - "CATALINA_OPTS= -Xms500m -Xmx500m"
            - 8080
        restart: always
           - "alfresco:alfresco"

After Login a new user will be created in Alfresco, but only with ist username. No email or other Information ist beeing synchronized. Furthermore, when I delete a user in KeyCloak it will be still existent in Alfresco.

How can I configure Alfresco to do a full sync with KeyCloak? Thank you!

2 Replies
Established Member II

Re: How to synchronize Alfresco users with KeyCloak? (share, not APS)

Interesting. There seems to be no documentation about and I'm afraid there isn't anything like that yet and you have to use the ldap sync, wire that up with keycloak. It looks like with Alfresco 7 and up we need 26 containers and 12 admins to cover all the required components and knowledge to maintain that ...

If I remembr right Alfresco isn't sure to keep users/groups/permission in Alfresco.


Re: How to synchronize Alfresco users with KeyCloak? (share, not APS)

Heiko is right - there is no sync (yet) with Keycloak, and going forward, Alfresco may add something in their Alfresco Identity Service component to deal with this, albeit in a potentially non-Keycloak-standard kind of way. I have recently set up a 6.0 system with Keycloak to integrate an Azure Domain Services directory, and this included configuring identity-service subsystem for auth, and ldap-ad subsystem for synchronization (Keycloak itself was synching users via LDAP from Azure).

Also, Share currently does not specifically support Keycloak and SSO via OpenID Connect. Alfresco has publicly stated during the last DevCon that they are interested in adding this, and I have also been in contact with a product manager about this, but so far, nothing has materialised apart from some internal mails like "hey, Axel is interested in working with us on this, please keep him informed" (without any actual follow up / synch up).

I am considering using the existing identity-service subsystem implementation to create a minor fork as a "keycloak" subsystem which would include user/group synch using the Keycloak Rest API, since my client is considering future deployment scenarios where we might not actually have an LDAP-enabled central directory.