User Management and Authentication
To create new User(s) in the system. API supports bulk creation with max limit as defined in the UserReq. Please note that either whole batch succeeds or fails, there's no partial batch success. To create one user, please pass array with one user object.
Users can be created based on the roles. Users with types as SYSTEM and EMPLOYEE can create other users if their RBAC mapping provides them the permission. Users with CITIZEN type can only create themselves, while EMPLOYEE and SYSTEM type users can also create other EMPLOYEES and CITIZENS.
User registration will always be a two step process, where this API will create a non authenticated user (without password) and after verification (using OTP) other user details (including password) can be updated using update user API to complete the user registration process.
Details for the new user + RequestInfo meta data
Unique Identifier of the tenant to which user primarily belongs
The unique numeric id of an user. To be deprecated in future.
The unique username used of the user - this will be used for user login. This needs to be unique within the tenant.
Authentication token for the user that may be -
The salutation of user name. Example- Mr, Miss, Mrs
The full name of the user.
Gender of the user.
Mobile number of the user
Email address of the user
Aadhaar number of the user
[0-9]
True if the user is active and False if the user is inactive.
epoch of time when the current auth token (password/OTP) will expire.
Value will be set to "en_IN".
System set value internally. For employee value will be always "EMPLOYEE". For citizen value will be "CITIZEN".
Set to True if account is locked after several incorrect password attempt. False if account is not locked.
List of roles that are attached to the user.
Infrequently used details for the user
The full name of the user.
The full name of the user.
The full name of the user.
Date of birth of the user in dd/mm/yyyy format.
Alternate contact number of the user
User's father's name if available
Name of user's husband - if applicable
Blood group of the user.
PAN number of the user
Permanent address of the user.
City of the permanent address.
Permanent address pincode.
City of the correspondence address.
Permanent address pincode.
Correspondence address of the user.
Image to be loaded for the signature of the employee
Any identification mark of the person.
Image to be loaded for the photo of the user
User(s) created sucessfully
Unique Identifier of the tenant to which user primarily belongs
The unique numeric id of an user. To be deprecated in future.
The unique username used of the user - this will be used for user login. This needs to be unique within the tenant.
Authentication token for the user that may be -
The salutation of user name. Example- Mr, Miss, Mrs
The full name of the user.
Gender of the user.
Mobile number of the user
Email address of the user
Aadhaar number of the user
[0-9]
True if the user is active and False if the user is inactive.
epoch of time when the current auth token (password/OTP) will expire.
Value will be set to "en_IN".
System set value internally. For employee value will be always "EMPLOYEE". For citizen value will be "CITIZEN".
Set to True if account is locked after several incorrect password attempt. False if account is not locked.
List of roles that are attached to the user.
Infrequently used details for the user
The full name of the user.
The full name of the user.
The full name of the user.
Date of birth of the user in dd/mm/yyyy format.
Alternate contact number of the user
User's father's name if available
Name of user's husband - if applicable
Blood group of the user.
PAN number of the user
Permanent address of the user.
City of the permanent address.
Permanent address pincode.
City of the correspondence address.
Permanent address pincode.
Correspondence address of the user.
Image to be loaded for the signature of the employee
Any identification mark of the person.
Image to be loaded for the photo of the user
This API used for update the password after login
Request header for the user with new of values.
Existing password
New password
Unique Identifier of the tenant to which user primarily belongs
Updated password successful
This API used for reset the password when user forgot his password by getting otp Reference through registerd mobile number,
Request header for the user with new of values.
otp reference number which sent to registered mobile
Registered User name
New password
Unique Identifier of the tenant to which user primarily belongs
Updated password successful
This API will update all user related details based on their type. Following rules apply -
Request header for the user with new of values.
Unique Identifier of the tenant to which user primarily belongs
The unique numeric id of an user. To be deprecated in future.
The unique username used of the user - this will be used for user login. This needs to be unique within the tenant.
Authentication token for the user that may be -
The salutation of user name. Example- Mr, Miss, Mrs
The full name of the user.
Gender of the user.
Mobile number of the user
Email address of the user
Aadhaar number of the user
[0-9]
True if the user is active and False if the user is inactive.
epoch of time when the current auth token (password/OTP) will expire.
Value will be set to "en_IN".
System set value internally. For employee value will be always "EMPLOYEE". For citizen value will be "CITIZEN".
Set to True if account is locked after several incorrect password attempt. False if account is not locked.
List of roles that are attached to the user.
Infrequently used details for the user
The full name of the user.
The full name of the user.
The full name of the user.
Date of birth of the user in dd/mm/yyyy format.
Alternate contact number of the user
User's father's name if available
Name of user's husband - if applicable
Blood group of the user.
PAN number of the user
Permanent address of the user.
City of the permanent address.
Permanent address pincode.
City of the correspondence address.
Permanent address pincode.
Correspondence address of the user.
Image to be loaded for the signature of the employee
Any identification mark of the person.
Image to be loaded for the photo of the user
Update user(s) successful
Unique Identifier of the tenant to which user primarily belongs
The unique numeric id of an user. To be deprecated in future.
The unique username used of the user - this will be used for user login. This needs to be unique within the tenant.
Authentication token for the user that may be -
The salutation of user name. Example- Mr, Miss, Mrs
The full name of the user.
Gender of the user.
Mobile number of the user
Email address of the user
Aadhaar number of the user
[0-9]
True if the user is active and False if the user is inactive.
epoch of time when the current auth token (password/OTP) will expire.
Value will be set to "en_IN".
System set value internally. For employee value will be always "EMPLOYEE". For citizen value will be "CITIZEN".
Set to True if account is locked after several incorrect password attempt. False if account is not locked.
List of roles that are attached to the user.
Infrequently used details for the user
The full name of the user.
The full name of the user.
The full name of the user.
Date of birth of the user in dd/mm/yyyy format.
Alternate contact number of the user
User's father's name if available
Name of user's husband - if applicable
Blood group of the user.
PAN number of the user
Permanent address of the user.
City of the permanent address.
Permanent address pincode.
City of the correspondence address.
Permanent address pincode.
Correspondence address of the user.
Image to be loaded for the signature of the employee
Any identification mark of the person.
Image to be loaded for the photo of the user