Advertisement

03.28.2008 at 07:50AM PDT, ID: 23277318
[x]
Attachment Details

How do I  determine if a user is in a specific usergroup in code

Asked by Prysson in C# Programming Language

Tags: c#

How can I go about checking (by adding to this code) whetehr or not a user is in a specifc group.

if (HttpContext.Current.User.Identity.IsAuthenticated)
{
WindowsPrincipal uid = (WindowsPrincipal)HttpContext.Current.User;
            string id = uid.Identity.Name.ToString();
}Start Free Trial
[+][-]03.28.2008 at 08:16AM PDT, ID: 21231162

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 03:15PM PDT, ID: 21234480

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: c#
Sign Up Now!
Solution Provided By: Prysson
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628