Manually sync a User Storage Provider via SPI

67 views
Skip to first unread message

Will Furnell - STFC UKRI

unread,
Dec 14, 2022, 6:52:57 AM12/14/22
to Keycloak User

Hello,

 

Is it possible to manually sync a User Storage Provider inside my SPI? (an Event Listener)

 

Do I just need to call sync(KeycloakSessionFactory sessionFactory, String realmId, UserStorageProviderModel model) for the UserStorageProvider of my choice?

 

https://github.com/keycloak/keycloak/blob/ae7c01b7195574cb7a1d59bf76cfbe95f6d1bda0/federation/ldap/src/main/java/org/keycloak/storage/ldap/LDAPStorageProviderFactory.java#L474

 

Has anyone done this before?

 

Thanks,

 

Will.

This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. 

Reply all
Reply to author
Forward
0 new messages