Re: User.IsInRole
From: Jason Watts (jawatts@pacbell.net)
Date: 06/24/02
- Next message: Matt Lyons [MS]: "Re: Modifying security checks"
- Previous message: David Adams: "Re: Encrypt QueryString"
- In reply to: Colin: "User.IsInRole"
- Next in thread: Todd Thompson: "Re: User.IsInRole"
- Reply: Todd Thompson: "Re: User.IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Jason Watts" <jawatts@pacbell.net> Date: Mon, 24 Jun 2002 13:19:31 -0700
try
User.IsInRole("mydomain\Administrators")
"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: Matt Lyons [MS]: "Re: Modifying security checks"
- Previous message: David Adams: "Re: Encrypt QueryString"
- In reply to: Colin: "User.IsInRole"
- Next in thread: Todd Thompson: "Re: User.IsInRole"
- Reply: Todd Thompson: "Re: User.IsInRole"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|