Loading

Error “You Cannot Deactivate a User Who Is a Portal Administrator” When Deactivating a User in Salesforce

Udgivelsesdato: Oct 9, 2026
Beskrivelse

When trying to deactivate a user in Salesforce, administrators receive the following error: 'Error: You cannot deactivate a user who is a portal administrator'.

Løsning

This article explains why Salesforce shows the error 'You cannot deactivate a user who is a portal administrator' when you deactivate a user, and how to change the portal administrator so the user can be deactivated.

Why This Error Occurs

This happens if the user being deactivated is an administrator in 'Partner Relationship Management' settings. Note: This is only available in Salesforce Classic.

Note: Customer Portal and Partner Relationship Management (PRM) are legacy Salesforce features. In newer orgs, these may be replaced by Experience Cloud (formerly Community Cloud). The steps below apply to orgs still using these legacy portal features.

Change the User from Administrator to Portal User

  1. Go to Setup.
  2. Click Customize.
  3. Look for Customer Portal.
  4. Go to Customer Portal Settings.
  5. Click available portals. The user should be present in the 'Administrator' field.
  6. Click Edit and make the field blank.

What to Do If Customer Portal Settings Is Not Available in Setup

If "Customer Portal Settings" is not available in Setup, follow these steps.

  1. Go to Setup | Customize | Partner | Setting.
  2. Click available portals. The user should be present in the 'Administrator' field.
  3. Click Edit and change the administrator.
Vidensartikelnummer

000386638

 
Indlæser
Salesforce Help | Article