Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to find out whether a particular user has permissions to view a given sharepoint url. I tried to use the DoesUserHavePermissions method, but the problem is that I am not sure what object does the url points to (item/list/web/site).

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Not really sure but can try creating an HttpWebRequest for the target URI and POST some data. Depending whether the user has rights ot not, an exception will be thrown which you can further handle to code and conclude accordingly.

http://authors.aspalliance.com/stevesmith/articles/netscrape2.asp

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.