I have developed a couple of Add-Ins for the Viewer using Silverlight API and now I am wanting to provide authentication and authorization (single sign-on to AD) when the user clicks those buttons. I have two buttons and I want to assign two different AD roles to them. Ideally, if button1 is for roleA and button2 is for roleB and a user is in roleA, she would be able to click button1 and proceed; if not, clicking button1 would bring up an error message. What are the general steps to accomplish something like this? I can see setting up an authentication web service but does that go out and know/get the user and its roles, and how to get that information (InitParam?) back to Silverlight? I have not done any credentials in Silverlight before and don't know how to start.