<@U04UQ68083H> Is there a way for a user to link a...
# ory-copilot
b
@chilly-king-10285 Is there a way for a user to link an SSO account without entering their password first? In particular if we created their identity programmatically but did not set a password on the identity
c
A message from kapa.ai
Based on the information provided in the knowledge sources, Ory supports the linking of social sign-in accounts to user accounts. However, for security reasons, the user is required to enter their password before the accounts can be linked. This is to prevent malicious actors from creating duplicate accounts and gaining unauthorized access. Here's how the process works: 1. The user creates an account with an identifier (like an email) and a password. 2. When signing in later, the user chooses to sign in with a social sign-in provider. If the social sign-in account contains the same identifier, the user will be prompted to enter the password chosen in step 1. 3. After entering the correct password, the social sign-in is linked to the user's account. Now they can sign in with either password or social sign-in provider. This process is designed to ensure the security of user accounts. If you created their identity programmatically and did not set a password on the identity, the user would still need to set a password before they could link their social sign-in account. For more details, you can refer to the [Ory documentation on automatic account linking](https://www.ory.sh/docs/kratos/social-signin/link-multiple-provider-account#automatic-account-linking).