Re: knowing wich previleges i have
- From: "Christof Nordiek" <cn@xxxxxxxxx>
- Date: Thu, 12 Oct 2006 09:06:45 +0200
Hi, Eugene,
thank you for all your effort.
Alas, installations on the server are against the requirements of my
project.
"Eugene Rosenfeld" <erosen03@xxxxxxxxxxx> schrieb im Newsbeitrag
news:OB2mdgI7GHA.4552@xxxxxxxxxxxxxxxxxxxxxxx
Christof,
I see that security is getting in the way of development again :). About
the only other thing I can think of would be to create a web service that
runs in the same application pool as SharePoint. In the web service, you
can run as the app pool identity and thus return all the permissions to
your client application. The downsides are that you have to write, deploy,
and maintain the web service, and that the client will only be able to
check the permissions on servers that have the web service deployed.
Depending on your requirements, it may or may not be worth the effort.
--
-Eugene Rosenfeld
"Christof Nordiek" <cn@xxxxxxxxx> wrote in message
news:#I3uTvE7GHA.4348@xxxxxxxxxxxxxxxxxxxxxxx
Hi Eugene,
thanks for the response. Alas, the GetWeb method doesn't work for my
problem because it doesn't return user and role information, if it is not
accessed with high previleges.
"Eugene Rosenfeld" <erosen03@xxxxxxxxxxx> schrieb im Newsbeitrag
news:Ogh7svZ6GHA.3384@xxxxxxxxxxxxxxxxxxxxxxx
Yes, you're correct. You can also try getting the permissions from the
web by invoking the GetWeb web method on the Site Data web service. One
of the output parameters has an XML string with the roles for the
current web, or a url reference to a parent web, if the current web is
using permissions inheritance. To get the perms for the list, try the
GetList method on the SiteData service. The _sListMetadata output
parameter has a Permissions property.
--
-Eugene Rosenfeld
"Christof Nordiek" <cn@xxxxxxxxx> wrote in message
news:OLzt#PR6GHA.3508@xxxxxxxxxxxxxxxxxxxxxxx
GetPermissionCollection seems only to work with administrator
privileges.
I want to know the restrictions for my own user account, without having
to log in as administrator.
"Eugene Rosenfeld" <erosen03@xxxxxxxxxxx> schrieb im Newsbeitrag
news:583434D1-E103-4100-B44B-8D098B6B2C3A@xxxxxxxxxxxxxxxx
There sure is. I had a similar requirement for a client. Take a look
at the permissions web service. Specifically, take a look at the
GetPermissionCollection web method.
-Eugene Rosenfeld
"Christof Nordiek" <cn@xxxxxxxxx> wrote in message
news:OFjZyG75GHA.4484@xxxxxxxxxxxxxxxxxxxxxxx
I'm writing an application wich uses FrontPage RPC to upload
documents to SharePoint. If the user doesn't have permissions to
wirte i get an answer with error code. But how can I detect, if the
restriction is on the library the folder or the docuement?
Is there a way i can detect the permissions (maybe with the WSS
webservices)?
thanks
.
- References:
- knowing wich previleges i have
- From: Christof Nordiek
- Re: knowing wich previleges i have
- From: Eugene Rosenfeld
- Re: knowing wich previleges i have
- From: Christof Nordiek
- Re: knowing wich previleges i have
- From: Eugene Rosenfeld
- Re: knowing wich previleges i have
- From: Christof Nordiek
- Re: knowing wich previleges i have
- From: Eugene Rosenfeld
- knowing wich previleges i have
- Prev by Date: Re: Reading an external .config file from webpart
- Next by Date: Re: User ID display code or web part?
- Previous by thread: Re: knowing wich previleges i have
- Next by thread: Re: WebPart Postback
- Index(es):
Relevant Pages
|