/
POST
/
DestinationUser
, the user must create a new user account. See AdminLinkProviderForUser.ProviderName
must match the value specified when creating an IdP for the pool. ProviderName
value must be Cognito
and the ProviderAttributeName
must be Cognito_Subject
. The ProviderAttributeValue
must be the name that is used in the user pool for the user.ProviderAttributeName
must always be Cognito_Subject
for social IdPs. The ProviderAttributeValue
must always be the exact subject that was used when the user was originally linked as a source user.ProviderAttributeName
and ProviderAttributeValue
must be the same values that were used for the SourceUser
when the identities were originally linked using AdminLinkProviderForUser
call. (If the linking was done with ProviderAttributeName
set to Cognito_Subject
, the same applies here). However, if the user has already signed in, the ProviderAttributeName
must be Cognito_Subject
and ProviderAttributeValue
must be the subject of the SAML assertion.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
"UserPoolId": "string",
"User": {
"ProviderName": "string",
"ProviderAttributeName": "string",
"ProviderAttributeValue": "string"
}
}'
Response Response Example
200 - Example 1
{}
Request
Header Params
X-Amz-Target
stringÂ
required
Body Params application/json
Responses
Modified at 2023-08-15 07:11:06