Loading

Anypoint Experience Hub — SSO fails with REGISTRATION_HANDLER_ERROR "AccountId could not be found for the given community" (accountId=null in UserRegistrationRequest)

Publiceringsdatum: Sep 8, 2026
Beskrivning

The user experienced an SSO authentication failure between Anypoint Experience Hub and Salesforce through Okta. The error reported that AccountId could not be found for the community, and the Account field in Anypoint Login settings was empty.

Alt

Lösning

Steps to Configure Self-Registration in Salesforce

  1. Log in to your Salesforce Org.
  2. Navigate to Setup.
  3. Go to Digital Experiences → All Sites.
  4. Locate and open your Anypoint Experience Hub (AEH) Experience Site.
  5. Navigate to Workspaces → Administration.
  6. Select Login & Registration.
  7. Under the Registration Page Configuration section, enable the checkbox:
    Allow customers and partners to self-register
  8. After enabling self-registration, locate the Assign users to a profile and account section.
  9. Configure the following options:
    • Profile: Select the appropriate Salesforce profile for the users who will self-register.
    • Account: Select the appropriate Salesforce Account to which the self-registered users should be associated.
  10. Save the configuration.
  11. After saving the changes, please try logging in to the AEH site again and verify whether the issue is resolved.

Alt

     12. If needed after environment changes, verify the Anypoint to Salesforce connection is still authenticated and re-authenticate it. Then validate that the Account referenced in Anypoint still exists and is active in the target sandbox. 

     13. Confirm the Okta Auth Provider in Salesforce uses AEHPortalRegistrationHandler as the Registration Handler and that Execute Registration As is an active user with an assigned Role.

     14. Then perform an end-to-end SSO login test with a test user. 

     15. Use the following Salesforce references during validation: 

 

Salesforce Platform: New Connected Apps Can No Longer Be Created in Spring '26

Set Up Salesforce CRM Content

Knowledge-artikelnummer

005459309

 
Laddar
Salesforce Help | Article