Re: Help with IsInRole

From: Joseph E Shook [MVP - ADSI] (joeshook_at_deploymentCentric.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 01:11:11 -0700

Administrators is one of the special BUILTIN Group. It is like a
localized kind of special domain. On your web server it is most likely
added to the users session token when authenticated against IIS because
the user is a member of your USA\Domain Admins group which has been
added to your Web Servers BUILTIN\Administrators group. If that is the
case then use:

User.IsInRole("BUILTIN\Administrators")

In C#
User.IsInRole(@"BUILTIN\Administrators")

Or you can use User.IsInRole("USA\Domain Admins").

But there is no USA\Administrators group available at the web server.