Skip to main content
Version: 5.7.0

SysCreateUserUniversalId

Manually creates a new user for the current app. Note that this API is normally used for in an admin app for pre-creating users. Standard, dynamic, on-the-fly authentication is done via the Authentication service.

ServiceOperation
userSYS_CREATE_USER_UNIVERSAL_ID

Method Parameters

ParameterDescription
externalIdThe email address of the user
passwordThe user's initial password (if the password is null, a random one will be generated)
userNameThe display or contact name of the user (stored in player state)
contactEmailThe email address of the user
notificationTemplateIdIf specified, the user will be sent an email confirming that the account has been created

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"profileId": "0b53155b-1fc8-4916-xxxx-298379efc67a"
}
}
Common Error Code

Status Codes

CodeNameDescription
550022INVALID_PASSWORD_CONTENTThe password doesn't meet the minimum password requirements.