Loading

Mass disable portal users with Data Loader

Data pubblicazione: May 22, 2025
Descrizione

Data Loader can be used to disable multiple portal user. 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.
 

Risoluzione


Note: Once a portal user has been disabled, it cannot be re-activated. If the user needs to be re-activated, then a new portal user record must be created.

The following steps are used for portal users. This does not apply for partner users.


Outlined here are the steps to disable portal users using Data Loader.
 

  • Export the User details using Data Loader

 
1. Start Data Loader

2. Click Export

3. Login, click Next

4. Choose the User Object

5. Click Browse to set the name of the file and where its is going to 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, and then click Yes to confirm

9. Click Ok to close

 
  • Open the exported file and change the value for 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 to retain 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. For more details on these settings, please refer Configure Data Loader.

 

 
  • Use Data Loader to update the user records with your newly saved file: 


1. Start Data Loader

2. Click Update

3. Login, 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 on Auto-Match Fields to Columns, click ok

9. Click Next

10. For every operation, the Data Loader generates two unique CSV log files; one file name starts with “success,” while the other starts with “error.” Click Browse... to specify a directory for these files.

11. Click Finish to perform the operation, and then click Yes to confirm.

12. Click Ok to close.
 
 

See also:

Download and activate Data Loader ​​​​​​​

Numero articolo Knowledge

000386423

 
Caricamento
Salesforce Help | Article