"sebapi" <se****@op.plwrote in message
news:11**********************@11g2000cwr.googlegro ups.com...
Hello!
How to detect if logged user is administrator with using C# ??
WindowsPrinciple wp = new WindowsPrincipal(WindowsIdentity.GetCurrent());
if (wp.IsInRole(WindowsBuiltInRole.Administrator))
{
//They're in the Administrator group
}