Does IsInRole work with ActiveDirectory?

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

Guest

Does IsInRole work with ActiveDirectory? If so, how do you format the group
name?

I am getting false for a group that I know should return true. I am using
Principal.IsInRole("DOMAINNAME[DNS SUFFIX]\GROUPNAME")

Thanks
 
Hi vbMental,

To my knowledge IsInRole is meant for the local machine groups only, ie
not Active Directory groups. I may be horribly wrong though.
 
Thanks, I just found it how to use it with AD. The problem was how to specify
the syntax of the group. I'll use it now, as flaky as it is - and hopefully
it will get upgraded in future versions of the framework.
 
¤ Hi vbMental,
¤
¤ To my knowledge IsInRole is meant for the local machine groups only, ie
¤ not Active Directory groups. I may be horribly wrong though.

It isn't restricted to the local machine. It can be used for built-in groups, local groups or domain
groups.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
And the syntax is, for us uninformed?

vbMental said:
Thanks, I just found it how to use it with AD. The problem was how to specify
the syntax of the group. I'll use it now, as flaky as it is - and hopefully
it will get upgraded in future versions of the framework.
 
Back
Top