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
sultansultan 

If I make OWD for an object as "public read/write" as well as in profile level I given only "read access" to my user but my user can't create a record and also he can't edit a record.why?

Best Answer chosen by sultan
Virendra ChouhanVirendra Chouhan
Hi Raju,

The Answer is Simple - you know that Profile is used for Object level access. And OWD is used for record level access.
So,If you want to create or edit any record you must have  to Read / Write permision on that Object.

Profiles give users permission to each object and determine what a user can do to records within the object.In your case you set Read access for Object and set read / Write access for the record of that Object.
so you have to give create and edit permision in profile.





All Answers

Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)
This is because in salesforce profile level permissions overrides the OWD.
That means if profile only has 'read' access on account user will not be able tocreate account.


Thanks,
N.J
Virendra ChouhanVirendra Chouhan
Hi Raju 

When an user profile doesn’t have the visible permission for a particular object then that user doesn’t have the permission to view that object records even if it can be accessible through OWD.
Similarly even if OWD has read/write permission and profile has read only permission then that object records will be read only for the user.

Regards
Virendra


sultansultan
Hi virendra chouhan,

 we given "read/write" in OWD and profile level we given "read" access for an object. Actually we given full access to user on record level.

what is the reason  that the user can't createa record and edit a record.
Virendra ChouhanVirendra Chouhan
Hi Raju,

The Answer is Simple - you know that Profile is used for Object level access. And OWD is used for record level access.
So,If you want to create or edit any record you must have  to Read / Write permision on that Object.

Profiles give users permission to each object and determine what a user can do to records within the object.In your case you set Read access for Object and set read / Write access for the record of that Object.
so you have to give create and edit permision in profile.





This was selected as the best answer
Srinath R 9Srinath R 9
If profile has only 'Read' permission on object , then 'Edit' button will not be visible on the record and it is not possible to verify read/write access got via OWD. Best option is to verify the access is to add a 'Notes and Attachment' related list to the object and then if your are able to add attachment , it means you have read/write access to the record.
raj_sfdccraj_sfdcc
Hi ,
Find the below link to understand complete Step by Step Object Level Access Vs Record Level Access in Salesforce..
Object Level Access Vs Record Level Access (https://salessforcehacks.blogspot.com/2020/01/object-level-access-vs-record-level.html)
Anbarasan ParimalaselvanAnbarasan Parimalaselvan
Hi All 
Posting this table below for a simple explanation on OWD vs Profile permissions. 
Happy to get feedback for this post. 
OWDProfileOutcome
PrivateReadUser can only read their records.
PrivateCreate, ReadUser can create record, but they can read only their records.
PrivateCreate, Read, EditUser can create record, but they can read and edit their records only.
Public readReadUser can read all records as OWD being public read. But they will not have edit access to the object and internally to all records.
Public readCreate, ReadUser can create records and he can read all records as OWD being public read. But they will not have edit access to the object and internally to all records.
Public readCreate, Read, EditUser can create, read all records but they can edit only their records.
Public read/ writeReadUser can read all records as OWD being public read/write. But they will not have edit access to the object and internally to all records.
Public read/ writeCreate, ReadUser can create records and read all records as OWD being public read/write. But they will not have edit access to the object and internally to all records.
Public read/ writeCreate, Read, EditUser can create, read and write anyone's record.

Note:
If any records are shared with an user, the maximum permission he can get on that record will be the permission he has on that object from the Profile permissions.

Thanks
Anbarasan