Enterprise backend servers can use this API to register a new user into the REL-ID system under a specified group. Optionally, access credentials for activation (access code or OTP) can be predefined or auto-generated. This API will return an error if the user already exists.
š§¾ Request Parameters (as per REL-ID GM API Guide)
Parameter
Required
Description
userId
ā Yes
REL-ID user ID of the user to be created.
primaryGroup
ā Yes
Group name under which the user needs to be enrolled. This group must already exist in REL-ID.
firstName
ā Yes
First name of the user to be created.
lastName
ā Yes
Last name of the user to be created.
secondaryGroups
ā Yes
Comma-separated names of additional REL-ID groups to which the user should also belong.
emailId
ā Yes
Email address of the user. If provided and predefinedCode is not set, then a random access code will be generated by the server and sent through email to this ID.
mobileNumber
ā Yes
Mobile number of the user. If provided and predefinedCode is not set, then a random access code will be generated by the server and sent via SMS. The number must be 10 to 15 digits, optionally starting with '+'.
preferredStatus
ā Optional
Default: 'CREATED'. Must be either 'ONBOARDING' or 'CREATED'. Used for identity verification (IDV) flows.
predefinedCode
ā Optional
Predefined activation code to be used during activation. If not provided, one will be generated dynamically.
predefinedVerKey
ā Optional
Verification key shown during activation. If not set, it will be generated dynamically.
sourceType
ā Optional
Source type of the user being enrolled. Default: RELID. Allowed values: RELID, UNIKEN-AD.
loginId
ā Optional
Login ID for REL-ID apps. Defaults to the value of userId if not provided.
comments
ā Optional
Extra information about the caller (e.g., maker/checker). Visible in Admin Activity Report.
selfieImage
ā Optional
Base64-encoded selfie image. Compliance checks will be applied. On success, biometric fields are generated: server_bio_template_hash, server_bio_template_hash_created_ts, and server_bio_template_source.
{
"timestamp": "2023-06-23T11:52:56IST",
"status": 409,
"error": "Invalid data.",
"message": "Primary and secondary group name cannot be same.",
"path": "/v1/users"
}
š Group Not Present
{
"timestamp": "2023-06-23T11:52:56IST",
"status": 409,
"error": "Invalid data.",
"message": "The group name : gs1 does not exist in the system.",
"path": "/v1/users"
}