Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Salesforce User creation giving error: Error in user creation errorCode: INVALID_CROSS_REFERENCE_KEY

myasin
New Contributor II
New Contributor II

Error in user creation errorCode: INVALID_CROSS_REFERENCE_KEYmessage: invalid cross reference id

When trying to create a new salesforce user we are getting this error message. Any suggestions?

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Here are some steps to troubleshoot and resolve this issue:

1. Check the Reference IDs:

  • ProfileId: Ensure that the ProfileId provided corresponds to an existing profile in Salesforce.
  • RoleId: If a Role is being assigned, make sure the RoleId is valid.
  • ManagerId: If the user has a manager, verify that the ManagerId references an existing user.
  • TimeZoneSidKey: Confirm that the Time Zone provided is a valid Salesforce time zone.
  • LocaleSidKey: Ensure the locale provided is correct and exists in Salesforce.

2. Verify Permissions:

  • Ensure that the API user or integration performing the user creation has sufficient permissions to access and assign the IDs mentioned above.

3. Test with Minimal Data:

  • Try creating the user with the minimum required fields (like Username, Alias, Email, ProfileId, etc.) and see if the issue persists. This can help identify which field might be causing the issue.

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.