Set Up OAuth2 API Access and Manage Permissions

OAuth2 allows applications and integrations to access your DataEngine API. For automated connections, use the Client Credentials flow. You create an OAuth2 client and assign it to a DataEngine user. The user’s roles determine which modules and actions are available to the integration.

You need administrator permissions in your DataEngine to complete this setup.

1. Create an API User

Open User Management → Create New User. Create a dedicated user for the integration so that you can manage its access and permissions individually.

  • Choose a unique username and complete the required profile fields.
  • Set the status to Active.
  • Select Normal User as the user type.
  • Leave the User Management option disabled unless the integration requires this permission.

For more information, see User Management.

2. Define Permissions Using a Role

Open Admin → Role Management → Create New Role. Choose a descriptive name, explain the purpose of the role, and save it. Then configure the permissions and assign the role to the API user.

For each module, define whether the integration can access it and which actions it can perform. Only allow the functions required for its use case.

  • Read: Allow the required view and list functions.
  • Write: Allow the actions required to create and update records.
  • Delete: Allow this action only if it is explicitly required.
  • Additional functions: Review import, export, and mass update permissions separately.
  • Modules that are not required: Disable module access.

The following settings are available for record-level actions:

  • All: The action is allowed for all records in the relevant module.
  • Group: The action is allowed if the user belongs to a security group that is also assigned to the record.
  • Owner: The action is limited to records assigned to the user.
  • None: The action is denied.
  • Default: The configured system default applies.

Important: Explicitly set actions that should not be allowed to None. With additive permissions, Default can allow an action. Also review the API user’s other roles and security groups, as these affect the user’s effective permissions.

For details, see Role Management and Security Settings.

3. Create an OAuth2 Client

Open Admin → OAuth2 Clients and Tokens and select New Client Credential Client. Complete the following fields:

  • Client Name: A descriptive name for the application or integration.
  • Client Secret: A secure secret generated with a password generator and stored in a password manager.
  • Select DataEngine User: The API user you created earlier.

Save the client and securely store the generated Client ID. Also keep the Client Secret in a safe place: it will not be displayed again after creation.

The OAuth2 client uses the assigned user for API access. Manage its permissions through that user’s roles and security groups.

For more information, see Generating New Client Credentials.

4. Obtain an Access Token

Configure your application or an API tool such as Postman to use OAuth2 with the Client Credentials grant type. Use the following settings and replace the placeholders with your values:

Grant Type: Client Credentials
Access Token URL: https://<your-dataengine-instance>/Api/access_token
Client ID: <your-client-id>
Client Secret: <your-client-secret>

After successful authentication, you receive an access token. When it expires, your application requests a new token using the client credentials.

5. Authenticate API Requests

Include the access token in the Authorization header of your API requests:

Authorization: Bearer <access_token>

You can find the available endpoints, HTTP methods, and request formats in the DataEngine API Documentation.

6. Test Access and Permissions

Test the connection using the configured OAuth2 client before using the integration in production. Use suitable test records for write operations.

  • Do the required read and write operations work?
  • Is access to restricted modules denied?
  • Are actions that are not allowed, such as deleting records, denied?
  • Do the intended group or owner restrictions apply?

If an operation is unexpectedly allowed or denied, review the assigned API user’s roles, group memberships, and security group settings.

Marini Systems GmbH | Website | Privacy Statement | Legal