Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

AccessDeniedException on accessing SPWeb.Permissions

  Asked By: Samir    Date: Jan 23    Category: Sharepoint    Views: 1952

I need to retrieve the user permissions for a SPWeb.
I am a Box admin and eventually SharePoint admin. But when i run the following
code I get AccessDenied exception. Please let me know if you have a solution.

foreach(SPPermission perm in objWeb.Permissions)
if (perm.Member.ID == user.ID)
return true;
return false;

Ideally I shoudn't be getting AccessDenied exception, since I am a Portal admin



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on AccessDeniedException on accessing SPWeb.Permissions Or get search suggestion and latest updates.