Re: Help with IsInRole
From: Joseph E Shook [MVP - ADSI] (joeshook_at_deploymentCentric.com)
Date: 09/21/04
- Next message: Peter Sedman: "Web Service and SSL"
- Previous message: YK: ".NET Framework 1.1 SP1 and MSIDXS OLEDB Provider"
- In reply to: Chris: "Help with IsInRole"
- Next in thread: Chris: "Re: Help with IsInRole"
- Reply: Chris: "Re: Help with IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: Peter Sedman: "Web Service and SSL"
- Previous message: YK: ".NET Framework 1.1 SP1 and MSIDXS OLEDB Provider"
- In reply to: Chris: "Help with IsInRole"
- Next in thread: Chris: "Re: Help with IsInRole"
- Reply: Chris: "Re: Help with IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]