none
Detecting Sync type in Extension code RRS feed

  • Question

  • I have C# extension code for MapAttributesForExport in one of my MA’s. I want it to work differently depending on whether it is being called from a Delta Sync or a Full Sync. Is there a way of having the code detect which flavor of Sync is being run?

    Thanks

    Friday, December 20, 2019 1:17 PM

All replies

  • I think the answer is no, but do you mind sharing the use case. This seems highly risky even if it was poasible  as one can run a full sync manually and mess things up. if you tell us what is that you want to do, maybe there is better way

    Nosh Mernacaj, Identity Management Specialist

    Monday, December 30, 2019 5:20 PM
  • Thanks Nosh, I didn't think it was possible to do what I wanted but was worth asking. I can't go into details of the use case, it was an implementation I inherited that was not designed properly. I had to put a patch in to fix an issue with how disabled accounts are handled and the patch works well on Deltas since it only processes a handful of users but generates a lot of overhead on Full Syncs. Fortunately this should only be a temporary solution since we are reworking the implementation from the ground up. I didn't think it was possible to do what I wanted but was worth asking.
    Tuesday, December 31, 2019 11:46 AM
  • There is no way to know it from code libraries and information provided by synchronization engine.

    If you really need it you can workaround it. For example put manually (or by script) some file in well known place and check in code if the file exist. Then remove the file for full sync. However keep in mind that checking file existence during sync will slow down synchronization process.


    Borys Majewski, Identity Management Solutions Architect (Blog: IDArchitect.NET)

    Tuesday, January 14, 2020 4:39 PM