Is Impersonation a Solution for WebParts?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Brad Smith (asmodean_at_cox.net)
Date: 02/10/04


Date: Tue, 10 Feb 2004 10:55:03 -0800

I can't really say since the permissions to different
operations vary. If you want everyone to be able to
execute these task, then you can impersonate an
administrator account and it'll work fine.

-Brad

>-----Original Message-----
>I developed a WebPart that does some administrative tasks.
>
>It creates a new Site with a certain template, deletes
the default
>SiteGroups and creates some new ones (incl. all
Permissions).
>Then it add some list entries for that Site.
>
>I noticed that I'm using some objects that are probably
meant for
>administrators only.
>
>Is it possible to just do those tasks within the
impersonation context
>of a SPPS Administrator?
>
>Will this work for regular users?
>.
>



Relevant Pages

  • Re: Cannot Execute program in WIN2K
    ... I think if you give the user traverse folder permission and place a link on ... program is without giving them explicit permissions. ... When I try to execute ... I don't want to make the user as an administrator. ...
    (microsoft.public.win2000.security)
  • Re: Cannot Execute program in WIN2K
    ... > I think if you give the user traverse folder permission and place a link ... > program is without giving them explicit permissions. ... >> the software after logging in as a normal user I'm not able to execute ... I don't want to make the user as an administrator. ...
    (microsoft.public.win2000.security)
  • Re: How can a user impersonate an adminstrator
    ... But only if you are connecting to a remote computer, ... You can not impersonate an administrator on the "local" computer without ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Help with SBS 2000 Permission/ Exchange
    ... Everyone - Read & Execute, List Folder Contents, Read ... get a handle on what permissions I am missing and where to apply them. ... I am logged on as the administrator. ...
    (microsoft.public.windows.server.sbs)
  • Re: Thread identity
    ... You can impersonate an administrator for the duration of the call, ... can run the worker process as the administrator and undo the impersonation ... The WindowsImpersonationContext starts and stops impersonation. ...
    (microsoft.public.dotnet.framework.aspnet.security)