For the time being I have found a workaround. I need to synchronize the Colleagues with a third party membership, so for now I have a Timer Job looking into the profile changes using a UserProfileChangeQuery
and getting all the profile changements for all users since the last execution of the TimerJob.

I leave you with the piece of code that manages that, in case someone needs to do the same.

All replies

Is this a SharePoint list that you are adding your colleagues to? If that is the case did you look at Event Receiver or workflow option? If this does not answer your question can you please elaborate your question?

I hope you are using SharePoint list, When you add colleagues, you can write event handler on the list for Item adding or Item added event and write whatever code you want. similarly you can write event handler for delete

For the time being I have found a workaround. I need to synchronize the Colleagues with a third party membership, so for now I have a Timer Job looking into the profile changes using a UserProfileChangeQuery
and getting all the profile changements for all users since the last execution of the TimerJob.

I leave you with the piece of code that manages that, in case someone needs to do the same.