Periodically sync cardholders/object from Protege GX to XProtect

I’m developing a plugin to integrate with Protege GX.

I need to sync cardholders, objects every hour. The result should be like clicking button “Refresh Configuration” in XProtect Management

Is there any way that we can do it?

I’ve been looking at the document and found this method: StartFetchConfiguration()

https://doc.developer.milestonesys.com/html/index.html?base=mipachelp/class_video_o_s_1_1_platform_1_1_access_control_1_1_plugin_1_1_a_c_configuration_manager.html&tree=tree_search.html?search=startfetchconfiguration

Should this function work for this case?

Many thanks.

Hi @Thuy Pham​,

The answer is No you cannot run the “StartFetchConfiguration()” to sync the cardholders or to refresh the configuration periodically.

I have been testing your case and some changes need to be done to enable this feature. Currently, “refresh configuration” is only possible through the “refresh configuration” button in the Management Client.

This will ensure the atomicity of the procedure when executed by several management clients. In addition, refreshing configuration form the Management Client allows the user to view and verify the retrieved configuration.

The method “StartFetchConfiguration()” is required to be overwritten and implemented by your MIP Plugin to allow MIP fetch new configurations from your Access Control system. It is not meant to be run periodically from your integration as it won’t make any effect on the system.

I hope my answer helped you, I will be waiting for your response.

Hi @Thuy Pham​,

Adding more information. In my previous answer I focused on the part of your question about the StartFetchConfiguration(). However, I received another useful information: