Create a new user without authentication
POST/auth/api/login/user
Create a new user object (which has no authentications yet) based on the given data.
Needs admin permissions.
Meant for admins to create users which can then be linked a authentication by a admin. Can be used, if self registration os turned off for all strategies globally.
Request
- application/json
Body
required
Set whether the newly created user will be an administrator.
If not given, defaults to false
The username to set for the new user. Must be given and cannot be empty
The name to display in the UI for the new user. Must be given and can't be empty
The email of the new user. Can be ommitted, but if given can't be empty.
Responses
- 200
- 201
- 400
If uscessful, the created user object
- application/json
- Schema
- Example (from schema)
Schema
The unique ID of this login user
The id of this user in the neo4j database.
If null after initialization, there was an error. Must be unique as relation to GropiusUser is 1:1.
The plain text username of the user. Must be kept in sync with username in backend.
Currently has no use outside the userpass strategy
All tokens (INCLUDING access tokens) issued to this user before this date are no longer valid.
Used to 'emergency'-Revoke tokens
{
"id": "12345678-90ab-cdef-fedc-ab0987654321",
"neo4jId": "string",
"username": "string",
"revokeTokensBefore": "2024-11-04T19:52:37.915Z"
}
- application/json
- Schema
- Example (from schema)
Schema
The unique ID of this login user
The id of this user in the neo4j database.
If null after initialization, there was an error. Must be unique as relation to GropiusUser is 1:1.
The plain text username of the user. Must be kept in sync with username in backend.
Currently has no use outside the userpass strategy
All tokens (INCLUDING access tokens) issued to this user before this date are no longer valid.
Used to 'emergency'-Revoke tokens
{
"id": "12345678-90ab-cdef-fedc-ab0987654321",
"neo4jId": "string",
"username": "string",
"revokeTokensBefore": "2024-11-04T19:52:37.915Z"
}
If the input data for the user is invalid or the username is already taken