IsInRole is a method of the WindowsPrincipal class found in the System.Security.Principal namespace of Microsoft's .NET framework. It has several overloads and returns a boolean value that indicates if the principal object is member of a particular group.
Tag Usage
The isinrole tag naturally should be applied to any questions regarding the usage of the method.
Sample Questions
- How do I find out if an arbitrary DOMAIN\username is in a specific role with C#?
- WindowsPrincipal.IsInRole and universal vs. global active directory groups
- How does IPrincipal gets its roles?
Resources
To learn more, read the official documentation on Docs.