Hi have a controller with constructor running below query
GroupMember groupMember = [SELECT Group.Name,GroupId, UserorGroupId
WHERE group.name = 'Company A Partner Users'
AND UserOrGroupId =: UserInfo.getUserId()
when I try to load the VF page that has this controller associated, I get below error.
Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.
Why is this error coming and how may I fix it ?
PS - I have already assigned both the VF page and Controller access to the permission set assigned to the logged in community user.