Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions

new_user

Create a user record. Use the returned ID to then call save_user() with the user details.

Variable Description Data type Default value
$username The username of the user string N/A

Return values

True if successful or a false if that username already exists or there is a permissions isue. Returns -2 if the user limit has been reached.