CmdID / aws / aws cognito-idp
aws cognito-idp admin-link-provider-for-user
Links an existing user account in a user pool, or DestinationUser, to an identity from an external IdP, or SourceUser, based on a specified attribute name and value from the external IdP. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--destination-userThe existing user in the user pool that you want to assign to the external IdP user account.--source-userAn external IdP account for a user who doesn't exist yet in the user pool.--user-pool-idThe ID of the user pool where you want to link a federated identity.