2

When I try to delete a contact I get the error:

Your attempt to delete CONTACT NAME could not be completed because it is associated with the following portal users

When I click into the portal user which is reported, I see that "Customer Portal User" is checked, and they have a "Customer" role and profile, but there's no delete option, and they are not currently marked as Active.

When i go to the contact record and use the "Manage External User" drop down - I only get "View Customer User" - no option to disable.

My user is an SA on this org.

Please let me know what you think - or any other information which I could provide to be helpful?

Thanks in advance!

Shamir

  • 1
    I believe all you can do is deactivate the user associated with the contact. – Eric Nov 26 '16 at 5:18
4

Just to add to @John Thompson's answer, you can add the button that disables the customer user:

enter image description here

This will remove the connection between the user and the contact, and mark the user as deleted. If you don't have this button - you can add it to your layout from the page layout editor:

enter image description here

After removing the connection between the contact and the user you can delete the contact without any problem.

2

Once a User record is created in Salesforce it can't be deleted. This applies to all User license types, including Portal and Community Users.

The reason User records can't be deleted almost certainly has to do with event logs. All transactions in Salesforce (including login) have a reference to the User. If the User reference is no longer there, you have a broken event log record.

Portal and Community Users both have a dependancy on a Contact record.... You can't have the User without the Contact. As such, you won't be able to delete that Contact record now either.

In addition to deactivating the Portal/Community User from the (inexorably linked) Contact detail page, you can also deactivate the User from the User detail page by unchecking the "Active" checkbox as illustrated. I'll wager that's why there isn't a deactivate option on the Contact detail page.

Portal User Detail page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.