How to determine if an user belongs to a specific group?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Sirs,

How could i determine if an user belongs to a specific group, especially
nested group.

thanks,

-Kevin
 
Hi Kevin

If you're talking about groups as in ActiveDirectory, I think the command is

IsInRole(rolename);

HTH

Dan
 
Hi Dan,

I am sorry that the IsInRole does not match my need. IsInRole seems could
not determine if i am a member of a distribution group, as distribution group
could not be used to set security permission as it's not a security principle.

Let's say i have to determine the membership of both security and
non-security group, how should we do it?

thanks,

-Kevin
 

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