Wednesday 6 August 2014

"Access denied. You do not have permission to perform this action or access this resource."

I am getting this error in SharePoint App, when i try to read group using CSOM.
Error: "Access denied. You do not have permission to perform this action or access this resource."

Solution:

Users should have view access on the Group.

Steps to give view permissions to all users:
Go to Site Settings
Click People and groups under Users and Permissions
Click on Group name (Your group Name)under Groups
Click on Settings
Select Group Settings
Under Group Settings

Who can view the membership of the group?
Select "Everyone"
Ok



Problem solved.