User.InRole upto Domain Users --Windows Authentication Problem

T

thomson

Hi All,
i used the code below to get the group of the user rfom
Active Directory

WindowsPrincipal wp=new WindowsPrincipal(WindowsIdentity.GetCurrent());
Response.Write(wp.IsInRole("MyDomain\\domain users"));

And iam getting true, for the same, but my problem is i belong to a
group as WebTeam, Iam not able to validate it

wp.IsInRole("MyDomain\\WebTeam"));

If i give this it return false,

Can somebody help me out how do i validate against my Group

Thanks in Advance

Thomson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top