Problem statement
The following error is received when an Account Linking Rule exists in the Auth0 Tenant and organizations are set to Prompt for Credentials/Prompt for Organizations during login.
organizations is not supported together with primary user modifications in rules
Symptoms
organizations is not supported together with primary user modifications in rules.
Steps to reproduce
- Add an account linking rule to your tenant
- Set the application’s Organization Login Flow to “Prompt for Credentials” or “Prompt for Organization”
- Attempt to authenticate with user that has an email address matching an existing user in your tenant (normally the profiles would be linked)
Troubleshooting
- Steps that can be taken by the user to identify and verify the problem, including relevant links to external resources
Solution
Because the use of organizations is not supported with primary user modifications in rules, if using an account linking rule AND organizations the Organization login flow for the application must be set to no-prompt. This is expected behavior.