4.8. Application Administrator - Create access tokens [new]
| Id | 4.8. |
| Description | As an Application Administrator I need to be able to create access tokens linked to existing users So that I can grant access to the APIs to the different users |
| Priority | High |
| Actors | Application Administrator |
| API Calls | POST /admin/tokens |
| Linked Processes | N/A |
| Status | Implemented |
Preconditions
- The User must be authenticated and have the Application Administrator role.
- The User for which the Application Administrator wants to create a token must exist on the platform.
Postconditions
- The User token is generated
Main flow
- The Application Administrator retrieves the users.
- The Application Administrator uses the API to generate a token for the selected user.
- The system returns the generated token
Exceptions
[400 Bad Request] Invalid input:
If mandatory fields are missing or invalid, the system returns an error message.
[409 Already exists] Token already exists
A token already exists for the given user.
[500 Internal Server Error] System Error
If the system fails to save changes due to an internal error, it displays an appropriate message and logs the error for further investigation.