Users
Last updated
Last updated
A user is an entity which can be an individual that holds an account at nCore which is represented by the user object. The user object stores the user's demographic data like (name, date of birth, email, address, nationality, gender etc.). Your application calls the nCore API to create and manage the users and their identification.
nCore supports linking multiple users in a parent-child relationship. You can use the /users endpoint to create these relationships between two users (where one user is the parent and the other is the child). The parent-child relationship can be extended to n-level of parent-child hierarchy. This relationship is very useful in maintaining real world relationships between multiple users.
To create a parent-child relationship, the parent must be an existing user. When creating a child user, set the parent_user_id field to the unique identifier of the parent. The parent_user_id can also be set or reset later on by using the update user API.
Below you can find user management decision flow:
Before creating user, what you will need:
A nCore API Key
Details about the individual you would like to onboard
The following is sample code used to create a normal user.
If you want to create a child user please include the parent user id in your POST request as given below.
nCore supports following retrieval methods.
To retrieve a list of all users, you can send a GET request to /users endpoint
To retrieve a specific user, you can include the user ‘ID’ path parameter in your GET request
To retrieve a specific user by name, email id or phone number as given below.
You can retrieve child users for a specific parent user as given below.
You can update a specific user by sending a PUT request to /users/{id} endpoint as given below.