Re: User.IsInRole
From: Willy Denoyette [MVP] (willy.denoyette@pandora.be)
Date: 06/25/02
- Next message: Arild Bakken: "Re: performance monitor and security"
- Previous message: tomasz kaszuba: "performance monitor and security"
- In reply to: Colin: "User.IsInRole"
- Next in thread: Frank Racis: "Re: User.IsInRole"
- Reply: Frank Racis: "Re: User.IsInRole"
- Reply: jazzandlatin: "Re: User.IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Willy Denoyette [MVP]" <willy.denoyette@pandora.be> Date: Tue, 25 Jun 2002 20:15:31 +0200
Administrators is a builtin group, use this "BUILTIN\\administrators" for administrators and other predefined groups.
Use "machine\\userdefinedgroup" for user defined groups (where machine stands for amachinename or domain name).
Willy.
"Colin" <colinjwhite74@hotmail.com> wrote in message news:10be801c218c5$9f912a30$9be62ecf@tkmsftngxa03...
> I have the following setup:
> -IIS Security = NT Authentication
> -web.config = <identity impersonate = "true" />
>
> running "Response.Write(User.Identity.Name)"
> will return (mydomain\login)
>
> I am an admin on the machine. If I run
> "Response.Write(User.Isinrole("Administrators"))"
> it returns false
>
> I am ultimately trying to block visibility and disable
> certain controls based on the user. I have a "Managers"
> group on the webserver, but I cannot seem to get my app
> to recognize that the user is part of this group using
> the above method. ???????????? Can anyone shed some more
> light on how to go about this? Thanks :)
- Next message: Arild Bakken: "Re: performance monitor and security"
- Previous message: tomasz kaszuba: "performance monitor and security"
- In reply to: Colin: "User.IsInRole"
- Next in thread: Frank Racis: "Re: User.IsInRole"
- Reply: Frank Racis: "Re: User.IsInRole"
- Reply: jazzandlatin: "Re: User.IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]