Skip to main content

How to Assign Roles and Generate a Token for an API Account in ProdSys

Updated over 2 weeks ago

This guide explains how to create or edit a user account in ProdSys, assign roles, and generate an API token for integration purposes.


1. Open the User Account


2. Enter or Update Basic Information

  • Press plus button to add a new Employee

  • Name: Provide a descriptive name for the account (e.g., API Account).

  • Email: Specify the email address linked to the account (e.g., api@prodsys.no).

  • Company and User number are set according to your organization’s configuration.


2. Assign the account as a user in ProdSys

  • Navigate to the User section in the admin interface. System / User

  • Press Pluss button to add the employee "API Account" as a user

  • Locate the user you want to set up for API access (or create a new one).

  • Ensure the Active checkbox is selected so the account is enabled.


3. Assign Roles (Access Permissions)

Under Roles, select the access levels the API account should have:

Examples of roles to be used

  • Web API USER – for API usage.


4. Set an Expiration Date

  • Specify how long the token will remain valid.

  • For long-term access, you can set a distant date (e.g., 01/01/2038).


5. Generate the Token

  • Click Generate token.

  • The system will create a token string, displayed in the Token field.

  • Copy the token using the copy icon – store it securely, as it functions like a password.

  • The token will be used in your API calls for authentication.


6. Save the Changes

  • Click Save to confirm and store the roles and token with the user account.


7. Use the Token in API Requests

  • Include the token in your requests to the ProdSys API.

  • Example (HTTP header):

    httpKopierRedigerAuthorization: Bearer M2owDzhqK4GFcuSbyklPv0PSLC8T...
  • Keep the token secret to prevent unauthorized access.


If you want, I can also merge this text directly into the visual guide you just received so it becomes a complete illustrated manual.

Did this answer your question?