function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ellen MonroeEllen Monroe 

Incorrect usernames being received from salesforce preventing login

When a customer tries to log in to our wordpress site, the user  in our system is written over with an incorrect username, that merges our own organization’s salesforce ID with the customer’s email address. The salesforce ID for our organization is 00Dd0000000XXXX, so when a user (for example, johndoe@gmail.com) tries to log in, username 00Dd0000000XXXX@johndoe@gmail.com is created, and the email address assigned is 00Dd0000000XXXX@johndoegmail.com. We can correct the email address and username through our phpadmin, which allows John Doe to log in again, but after he logs in again, the username and email address are again incorrect. This only happens for users that are created through salesforce -- our own internal users aren't affected. We initially thought this was related to incorrect role mapping in our SAML authenticator, miniOrange. We had salesforce "NameID" as what was being mapped to wordpress Username and Email. Initially, it seemed like changing the mapping salesforce "Username" to wordpress Username and Email fixed the issue. The problem is back again, with the weird users being created, whether it's being mapped to "username" or "email." Interested in hearing if anybody has dealt with this problem before. Attached is a screenshot of the log from SAML tracer -- it shows "NameID" but the same issue is happening with "Username" and with "email"screenshot of json file from the SAML tracer log indicating the weird email address