Loading

Mass disable portal users with Data Loader

Date de publication: Jun 5, 2026
Description

Data Loader can be used to disable multiple portal users in Salesforce. The process involves exporting portal user records, setting their IsPortalEnabled value to false, and performing an update via Data Loader using the newly saved file.

 

Résolution

 

Important Warning

Once a portal user has been disabled, it cannot be re-activated. If the user needs to be re-activated, a new portal user record must be created. This process applies to portal users only and does not apply to partner users.

Step 1: Export the User Details Using Data Loader

  1. Start Data Loader.
  2. Click Export.
  3. Log in and click Next.
  4. Choose the User Object.
  5. Click Browse to set the name of the file and where it will be saved.
  6. From "Choose the query fields," select the following fields: Id, IsActive, IsPortalEnabled, and any other fields that will be helpful in identifying the portal users to be deactivated.
  7. Set conditions to find User records where the IsPortalEnabled field is set to TRUE.
  8. Click Finish to perform the operation, then click Yes to confirm.
  9. Click OK to close.

Step 2: Open the Exported File and Update the Values

Open the exported CSV file and change the value for the IsActive and IsPortalEnabled columns from TRUE to FALSE.
Note: Make sure to save the file using CSV format. It is best practice to save an unaltered version of the file to a safe location as a backup.
Tip: If you are updating a large number of users, group users by Account, and enable Use Bulk API v1 and check Enable serial mode for Bulk API in the Data Loader Settings. This prevents record locking errors by processing batches one at a time.

Step 3: Use Data Loader to Update the User Records

  1. Start Data Loader.
  2. Click Update.
  3. Log in and click Next.
  4. Choose the User object again.
  5. Click Browse to select your CSV file.
  6. Click Next.
  7. Click OK.
  8. Define how the columns in your CSV file map to Salesforce fields. Click Create or Edit a Map, then click Auto-Match Fields to Columns, and click OK.
  9. Click Next.
  10. For every operation, Data Loader generates two unique CSV log files: one file name starts with "success" and the other starts with "error." Click Browse to specify a directory for these files.
  11. Click Finish to perform the operation, then click Yes to confirm.
  12. Click OK to close.

 

Numéro d’article de la base de connaissances

000386423

 
Chargement
Salesforce Help | Article