CRM 2011: How do you remove a security role from a systemuser?
-
Monday, 28 May 2012 5:19 PMIf you are supposed to use AssociateRequest to give a user a security role, how do you remove a security role from a systemuser?
All Replies
-
Wednesday, 30 May 2012 5:07 AM
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
- Proposed As Answer by Hoskinator Wednesday, 30 May 2012 8:34 AM
- Unproposed As Answer by D. Yates Saturday, 2 June 2012 5:15 PM
-
Saturday, 2 June 2012 5:15 PM
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
- Marked As Answer by D. Yates Saturday, 2 June 2012 5:15 PM