locked
Change User's Business unit - trigger plugin to reapply security roles RRS feed

  • Question

  • Microsoft CRM has a standard functionality wherein Security roels are wiped off if the user is allocated to new Busienss Unit. What we have been trying to do is prevent this wiping off, by writing a plugin that trigger on BU change for User. This plugin would store the security roles of that user beforehand in some shared variable, and reapply those security roles back to user once its BU is changed. 

    However, the problem is that this plug-in is not able to capture the Pre-Validation event and so we cannot retrieve the security roles. And, in pre-operation we are not able to retrieve the list of security roles for that user which means they have already been wiped off. So we are kind of stuck on how to achieve this.

    Can anybody assist?

    Regards,

    Yogesh

    Thursday, May 15, 2014 6:30 PM

Answers