Distribution groups & IsInRole & Windows Auth

M

Mike

I have searched and cannot find anything definitive. The IsInRole
method looks at a pre-populated set of groups which the identity has
membership in. Does the .Net framework look at both membership in
distribution and security groups when populating the set of groups, or
does it only look at membership in security groups.

I am having trouble seeing distribution group which I am a member of
when calling the IsInRole method.
 
J

Joe Kaplan \(MVP - ADSI\)

If it is the WindowsPrincipal class that is being used to call IsInRole,
then only security groups are included as these are the only groups that
will be in your logon token.

This is by design in Windows as distribution groups aren't supposed to be
used for security purposes.

Joe K.
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top