Hot answers tagged

1

Your query is not specific enough. There are some types of shares you cannot manually delete, such as Owner, Team Member, Sharing Rules, etc. You can try deleting them with the allOrNone=false option to delete as many as possible, or filter the query to include only Manual shares (these are the only types you can directly delete).


1

The user who is running this class/method must not have the permission to 'Edit' this field. Make sure the running user has 'Manage Users' system permission. But this is a powerful permission. Check details here


1

The right answer is least permissive will win Lets say Object A is a Junction between B and C If the User have Public RW on B and No Access on C Access on Object A will be No Access


Only top voted, non community-wiki answers of a minimum length are eligible