Loading

Error 'Insufficient Privileges' on Setup or 'My Settings' Caused by Api Only User Setting"

Udgivelsesdato: Jun 18, 2026
Beskrivelse

When a user attempts to access Setup, My Profile, or My Settings, they may receive an 'Insufficient Privileges' error message.

This error occurs when the Api Only User system permission is enabled in either the user's Profile or a Permission Set assigned to the user. The Api Only User permission is intended for integration users that access Salesforce exclusively through the API. Users with this permission cannot access the Salesforce user interface (UI).

If this permission is assigned to a regular Salesforce user who requires UI access, they will encounter an 'Insufficient Privileges' error when attempting to access Setup, My Profile, or My Settings

Løsning

 

To resolve this issue, disable the Api Only User permission. First, check whether the permission is enabled in the user's Profile. If it is not enabled at the Profile level, review the user's assigned Permission Sets.

Check the User's Profile for the Api Only User Permission

  1. Navigate to the affected user's User Detail page.

  2. Click the profile name in the Profile field.

  3. Select System Permissions.

  4. Locate Api Only User under the Permission Name column.

  5. If the permission is enabled, click Edit and clear the checkbox.

  6. Click Save.

Note: If the permission is not enabled in the Profile, continue with the Permission Set review steps below.

Check Assigned Permission Sets for the Api Only User Permission

  1. Navigate to the affected user's User Detail page.

  2. In the Permission Set Assignments related list, open an assigned Permission Set.

  3. Select System Permissions.

  4. Locate Api Only User under the Permission Name column.

  5. If the permission is enabled, click Edit and clear the checkbox.

  6. Click Save.

  7. If the permission is not enabled, repeat these steps for the remaining assigned Permission Sets until you identify the Permission Set that contains the setting.

Important: Troubleshooting with "Log In As" Does Not Replicate the Error

When an administrator uses the Log In As feature to access the affected user's account, the "Insufficient Privileges" error does not appear.

This behavior is expected because the Log In As feature bypasses the Api Only User restriction. To verify the issue and confirm the resolution, always have the affected user log in directly.

If the issue persists after reviewing both the user's Profile and assigned Permission Sets, contact Salesforce Support.

 

Yderligere ressourcer
  • Create a secure Salesforce API user
Vidensartikelnummer

000386308

 
Indlæser
Salesforce Help | Article