CRM 2011: How do you remove a security role from a systemuser?
-
07/رجب/1433 05:19 مIf you are supposed to use AssociateRequest to give a user a security role, how do you remove a security role from a systemuser?
جميع الردود
-
09/رجب/1433 05:07 ص
Hi
The Security role can removed by following steps
Setting-->Administration-->user
then select a user, select a Security role tab --> select the role and select the Remove role tab
Thanks
Dhamodharn
- تم الاقتراح كإجابة بواسطة Hoskinator 09/رجب/1433 08:34 ص
- تم إلغاء اقتراح كإجابة بواسطة D. Yates 12/رجب/1433 05:15 م
-
12/رجب/1433 05:15 م
Thanks, but I know how to do it via the UI. I'm looking for how to do this programmatically.
I have discovered that you can do this with the IOrganizationService.Associate Method and IOrganizationService.Disassociate Method.
However, I was looking for the opposite class to the AssociateRequest Class, which is DisassociateRequest Class. What's odd is that a search of the internet does not reveal this fact. I had to pop open the Micorsoft.Xrm.Sdk assembly to find that it does in fact exist. There is no link to it from the AssociateRequest class in MSDN, which I find odd as well.
Hopefully this helps someone else looking for info on how to do this.
Dave
- تم وضع علامة كإجابة بواسطة D. Yates 12/رجب/1433 05:15 م