Targeting AD import event in code

Kàren Vaganyan asked on February 28, 2017 19:06

We have the AD import tool running nightly and bringing in new employees into our kentico site and also updating any imported fields that might have changes. Unfortunately there are a few fields and tasks that the AD import can’t do on its own, so I’m trying to target the event that fires during the AD import and add my additional code for the fields and the tasks.

I’ve tried targeting ‘ImportExportEvents.ImportObject.After’ and also ‘UserInfo.TYPEINFO.Events.Insert.After’ but unfortunately they don’t seem to work. I took a look through the reference document for all global events but can’t seem to find one that is specifically used for the ad import.

Is there an event that fires during the AD import and if there is, how can I target it?

Thanks!

Recent Answers


Zach Perry answered on February 28, 2017 22:04

I believe when you set up the AD Import Toolkit, you have to set it up to connect to the Database and not the web application, so I would assume it makes the changes through the database and not through the API, so the events won't fire. Since it is an external application, not sure if there is much you can do. The source is on GitHub, so you could download it and modify it to suit your needs.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.