Re: knowing wich previleges i have
- From: "Eugene Rosenfeld" <erosen03@xxxxxxxxxxx>
- Date: Tue, 10 Oct 2006 12:14:23 -0400
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@xxxxxxxxxxxxxxxxxxxxxxxYes, 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@xxxxxxxxxxxxxxxxxxxxxxxGetPermissionCollection 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@xxxxxxxxxxxxxxxxThere 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@xxxxxxxxxxxxxxxxxxxxxxxI'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
- Follow-Ups:
- Re: knowing wich previleges i have
- From: Christof Nordiek
- Re: knowing wich previleges i have
- 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
- knowing wich previleges i have
- Prev by Date: User profiles and active directory
- Next by Date: BDC Sample!
- Previous by thread: Re: knowing wich previleges i have
- Next by thread: Re: knowing wich previleges i have
- Index(es):
Relevant Pages
|
Loading