cancel
Showing results for 
Search instead for 
Did you mean: 

triggering synchronization from action/web script

mrksjs
Champ on-the-rise
Champ on-the-rise
Hi.

we have ldap integrated to our installation. i dont want to configure a cron job for this since i want to trigger the synchronization from hand. for example by/after calling a webscript.
can i access the method/class for triggering ldap-synchronization from a java class/java script?


3 REPLIES 3

kaynezhang
World-Class Innovator
World-Class Innovator
I'm afraid there is no such javascript api,you can use java class org.alfresco.repo.security.sync.UserRegistrySynchronizer or make a make a java or javascript wrapper.

niketapatel
Star Contributor
Star Contributor
OR You can trigger sync manually by JMX mbean.

MBeans -> Alfresco -> Schedule -> MonitoredCronTrigger-> syncTrigger ->Operation Tab -> excuteNow()

mrogers
Star Contributor
Star Contributor
Or on 4.2 Enterprise there's a JMX action for sync that can be accessed from the admin console or a JMX client.

There's also a web script /enterprise/admin/admin-sync   although it is not part of the alfresco public API.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.