Skip to main content
Version: 5.7.0

Attach

Attach an identity to the current profile.

ServiceOperation
identityATTACH

Method Parameters

ParameterDescription
externalIdUser ID
authenticationTokenPassword or client side token
authenticationTypeType of authentication. Full list of types can be found here.
externalAuthNameThe name of the external authentication mechanism (optional, used for custom authentication types)

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status" : 200,
"data" : null
}
Common Error Code

Status Codes

CodeNameDescription
40211DUPLICATE_IDENTITY_TYPEReturned when trying to attach an identity type that already exists for that profile. For instance you can have only one Facebook identity for a profile.
40212MERGE_PROFILESReturned when trying to attach an identity type that would result in two profiles being merged into one (for instance an anonymous account and a Facebook account).