BlogLennart Stevens

Insufficient Privileges may mean a missing feature licence

A System Administrator could not delete a Visualforce page because of an Insufficient Privileges error. The cause was an unticked feature licence.

A blueprint drawing in white line on deep blue: a page with a padlock on the left, a user card with four checkboxes on the right, and a turquoise dashed line from the lock to the one empty box.

I set out to clean up an org by deleting old Visualforce pages that Lightning components had replaced long ago. Salesforce blocked the first delete with a message I did not expect.

The delete that failed

I opened the first Visualforce page and clicked Delete. Salesforce refused:

Unable to complete the requested operation. The component is in use by a console sidebar component.

Fair enough. The message linked to the dependent component, so I clicked through to remove the reference and try again.

Instead of the component’s configuration I got the “Insufficient Privileges” error, with the advice to contact the record owner. I am the System Administrator on this org. I checked my profile and my permission sets. Everything was correct. Standard permissions were not the problem. The error was not about record ownership or CRUD (create, read, update, delete) access either.

Finding the console sidebar component

What is a “console sidebar component”? It belongs to the Classic Console, and its configuration lives in Page Layouts. So I opened the Page Layout the dependency pointed at and looked for the console section.

The section I needed, “Custom Console Components”, was not in the layout editor at all. Part of the Page Layout editor was hidden from a System Administrator.

Custom Console Components are a Service Cloud feature, used mainly in the Classic Service Console. That pointed at licensing.

The missing checkbox

I opened my own User record in Setup. The “Service Cloud User” checkbox was unticked.

The Service Cloud User feature licence does more than give an end user access to Service Cloud features. It also controls whether an administrator can configure certain Service Cloud parts of Setup. The Custom Console Components section on a Page Layout is one of them. The “Insufficient Privileges” error was technically right and practically unhelpful. It was not about the record. It was about my licensed capability to see that part of the configuration.

I ticked “Service Cloud User” on my User record and saved. Check that you have a spare licence before you do this.

Back in the Page Layout editor, the “Custom Console Components” section was there. I found the Visualforce page in the sidebar component list and removed it. Then I returned to the Visualforce pages list, selected the page, clicked Delete, and it was gone.

What to check next time

When Setup gives you “Insufficient Privileges”, especially around Console configuration, do not stop at profiles and record access. Check the feature licences on your User record. “Service Cloud User”, and similar checkboxes such as “Sales Cloud User” and “CRM User”, control more than end-user features. They decide whether you, as an administrator, can configure certain areas at all.

Add “check feature licences” to your troubleshooting list. A more specific error message from Salesforce would help too.