Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

AccessDeniedException on accessing SPWeb.Permissions

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

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;
}
else
{
return false;
}
}

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

Share: 

 

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.