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
Do you know someone who can help? Share a link to this thread on twitter, or facebook.