Skip to main content Take our 5-minute Community Survey. Open now through 4/11/2025. Click here to participate.

Hello!

I'm trying to follow the instructions to Configure Inbound SSO with a Third-Party Identity Provider but got stuck on 1st step.

 

When I try to edit an existing user to add a Federation ID, I got the error: Error: Duplicate Username.

 

The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations. To resolve, use a different username (it doesn't need to match the user's email address).

 

And I'm like "ofc it exists, it's my user, this same user I'm in it" and ofc I even tried to change the username, which gets me a Error: Please do not change usernames in the Trailhead Playground.

 

And I tried wait, log out/log in again, all the dummie stuff...

 

Help, please!

 

User Authentication - Set Up Single Sign-OnUser-added image
11 answers
  1. May 13, 2021, 6:35 PM

    Hi!

    So after all, Keiji was right in the first answer and Santosh walked me through the solution to change the username.

     

    There's a validation rule that prevents username changes. To deactivate the rule, the steps are:

     

    Setup > Object Manager > Users > Validation Rules > NoUsernameChangesAllowed > Edit > Click the box next to Active to deactivate it > Save

     

    Hi!So after all, Keiji was right in the first answer and Santosh walked me through the solution to change the username. There's a validation rule that prevents username changes.

     

    After deactivate the rule, go back to the user, change the username and save it.

     

    Then I was able to insert the Federation ID. 

     

    Thank you for your help! =)
Loading
0/9000