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.
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"
}