Trying to see if a user is in a certain group

  • Thread starter Thread starter Ricky
  • Start date Start date
R

Ricky

Hello,

Does anyone know how to compare a username to a group and see if they are in
there.

Say the power users group.. I want to check if user A is apart of the power
usrs group and if so, they can use a dropdown or a button on the form,
something like that?

Any help or suggestions would be greatly appreciated...

Thank you in advance,
Ricky
 
Ricky said:
Does anyone know how to compare a username to a group and see if they are
in there.

Take a look at 'System.Security.Principal.WindowsPrincipal.IsInRole'.
 

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

Back
Top