Oops...You Don't Have The Necessary Privileges To Edit This Record. See Your Administrator For Help. Mean?

1.5K    Asked by ChrisDyer in Salesforce , Asked on Sep 4, 2023

I am having an issue trying to implement a sample application from the book “Development with the Force.com Platform.” I am getting an error: Oops...you don't have the necessary privileges to edit this record. See your administrator for help.The sample given is of the demonstration of manual sharing:

In the example, two employees have separate roles: West and Central.

The employee with the West role creates a manual share with Read Only permissions as   he owns a Resource record such that anyone with the Central role can go through the record.

After that, the employee having the Central role has to make an Assignment record by using the shared Resource record and a Project record which he is having.

When I am trying to do this as the Central user I am getting the following message:

The following I have verified:

There is a rule for manual sharing for the mentioned resource, which is shared with the Central role.

I can read the record when I am logged in as the Central user.

When I am trying to set the Central user’s role to West(same as the Resource owner’s), then the Assignment can be created.

I have also checked that the user is indeed set as the Central role.

Are there any suggestions to know the security settings denying this operation exactly? Or is it some debugging

You might try to check the access of the Central user to whatever record type you are not able to create. Inspect at the profile and object level. You also need to check whether the record is set to private because when the resource (object privacy) is already ‘public read-only,’ and you try to create a share, the DML puts up an arbitrary exception.


It also depends on the kind of Profile and the employee you are using. There is a diagram on page 51; according to what we know, Assignment is an intersection object, and the child of both Project and Resource has a Master-Detail relationship and thus gets access from the Master. If you look at page 78, the Sales Rep and Consultant do not have to create access for the Assignments as they only have “Read” access to the Master records.


As mentioned above, your sharing rule might cause errors and is unnecessary, as everyone has read access to resources. An Assignment record can be created only by the Staffing Coordinator and Vice President as they are the profiles having appropriate access to it. Therefore, only these two profiles can create Assignment records, regardless of sharing.

Please go through the settings–

security (for profiles as well as roles)

sharing - yea, check again

views (if they use different ones) - to note, I don’t know which “book” you follow, so won’t be able to help on that.

Take a look at the above idea at ideasexchange and some of your problem might be solved.


Your Answer

Answer (1)

he error message "Oops...You Don't Have The Necessary Privileges To Edit This Record. See Your Administrator For Help." typically indicates that the user attempting to edit a record does not have the required permissions or privileges to do so.

Here's what it means in different contexts:

Database Management Systems (DBMS): In the context of a database management system, such as MySQL, PostgreSQL, or Oracle, this message might appear when a user tries to modify a record in a database but lacks the necessary permissions. In database systems, permissions are typically granted by administrators to control who can read, write, modify, or delete data.

Web Applications or Software: This message can also appear in web applications or software systems when a user tries to edit a record, such as updating a user profile or modifying content, but their account does not have the required privileges. In such systems, roles and permissions are often defined to regulate access to certain features or data.

File Systems or Operating Systems: In some cases, this message might indicate a lack of permissions to edit a file or directory in a file system or operating system environment. This can happen when a user tries to modify system files or directories without the necessary permissions.

In any case, if you encounter this message, you should reach out to your system administrator or support team for assistance. They can help you understand why you don't have the necessary privileges and either grant you the required permissions or perform the necessary actions on your behalf.

7 Months

Interviews

Parent Categories