469,927 Members | 1,912 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Check if user is a member of a domain group

I am writing a C#/asp.net app.I have a requirement to check if the user is
member of specific Domain group,how can this be accomplished?
I tried the following and it always returns false ,even if the user is part
of the group.
WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent());
MessageBox.Show("not menber",wp.Identity.Name);

Nov 17 '05 #1
0 4643

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Vinny Vinn | last post: by
9 posts views Thread by Sameh Ahmed | last post: by
7 posts views Thread by Sameh Ahmed | last post: by
10 posts views Thread by Jeff Williams | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.