function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aarthi Manoharan 9Aarthi Manoharan 9 

Control Access to Records -data security

Configure appropriate organization-wide defaults
You’ve been asked to create a custom object for tracking projects. The Project custom object records should only be visible to the owner of the record and users above the owner on the role hierarchy. Create the Project custom object and then create an organization-wide default for the Project object to accommodate for this use case.
The custom object must be named 'Project' with a resulting API name of 'Project__c'.
 What I have tried is that I made in organization's sharing settings  for object Project below settings
Object: Project
Default Internal Access:Private

 Default External Access:Private
 Grant Access Using Hierarchies:Tick yes
 Got below error
"On the Project object, we can't find the correct organization-wide default sharing settings.

 
PriyaPriya (Salesforce Developers) 

Hi Aarthi,

Check this similar asked :-

https://developer.salesforce.com/forums/?id=906F0000000DE6mIAG

Regards,

Priya Ranjan