Wiki

Clone wiki

Numera.LibrisAPI / identity.create

Home > API Reference Documentation > identity.create

identity.create

The identity.create action is used to create a new user identity. The way that a user will login is not known at the time you are creating an account, so this process reserves an email address, realm, and role for the user when they do register. This allows administrators in your application to create new accounts and then let their users register in your application and when those users authenticate for the first time their credentials and their identity will be linked using the email address. This will only work for users with the role of Agent Supervisor or above.

Input Parameters

PropertyRequiredDescription
roleyesA role for the user
realmyesA realm for the user
emailyesThe user's email (the user must register using this same email)
secretnoIf you want to update the user's secret (only SUPERUSERs can do this)

Output

If everything worked successfully, the result object will represent an identity object (the profile information will not be filled in since the user has not actually registered yet)... identity properties can be found here.

Possible Status Codes

Status CodeReasonDescription
1000NOT_IN_REALMIf the current user is not a Superuser, and their realm does not match the realm of the user they are trying to update, then the request will fail.
1003INVALID_USERThe user was created but could not be loaded for response, this is an unexpected error
1004ROLE_OUT_OF_BOUNDSYou tried to give a user a role you don't have the privilege to grant
1006DUPLICATE_EMAILThe email you are trying to create already exists for another user
1007SECRET_UPDATE_RESTRICTEDUser does not have permissions to update the secret

Updated