Re: knowing wich previleges i have



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





.



Relevant Pages

  • Re: knowing wich previleges i have
    ... 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. ... "Eugene Rosenfeld" schrieb im Newsbeitrag ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: knowing wich previleges i have
    ... installations on the server are against the requirements of my ... In the web service, you ... check the permissions on servers that have the web service deployed. ... GetPermissionCollection web method. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Design question: User objects and a Role object
    ... permissions that I get about the user from a web service. ... turn the xml permissions into ROle objects, but does that mean that my ... <?php echo 'Just another PHP saint'; ...
    (comp.lang.php)
  • Design question: User objects and a Role object
    ... permissions that I get about the user from a web service. ... //get the securityRolesXML and then parse it setting the Role ...
    (comp.lang.php)
  • Re: Access Denied
    ... Determine the account ... is running under and grant it modify permissions on the folder where you ... > local machine but when I use the Web Service to log the error, ... > How can I overcome this security issue on a Web Server so that I can write ...
    (microsoft.public.dotnet.languages.csharp)

Loading