Skip to main content

4.23. Organisation Administrator - Create organisation access tokens [new]

Id 4.23.
Description As an Organisation Administrator

I need to be able to create access tokens linked to existing users of my organisation

So that I can grant access to the APIs to the different users
Priority Medium
Actors Organisation Administrator
API Calls POST /admin/tokens
Linked Processes N/A
Status Implemented

Preconditions

  1. The User must be authenticated and have the Organisation Administrator role.
  2. The User for which the Organisation Administrator wants to create a token must exist on the platform.

Postconditions

  1. The User token is generated

Main flow

  1. The Organisation Administrator retrieves the users.
  2. The Organisation Administrator uses the API to generate a token for the selected user.
  3. 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.