Service Users
3 minute read
Service Users are specialized accounts designed for machine-to-machine interactions and automated integrations. Unlike standard users, Service Users cannot log in to the Trustgrid Portal UI. Instead, they are used to invoke the Trustgrid API programmatically.
Service Users can be assigned specific permissions via policies, allowing granular control over what resources an automation script or external system can access.
Managing Service Users
To manage Service Users, navigate to the Service Users section in the Portal.

Creating a Service User
- Click the Add Service User button.
- Enter a unique Name. Names must consist of alphanumeric characters and hyphens.
- (Optional) Select initial Policies to attach.
- Click Submit.
Enabling and Disabling
Service Users can be temporarily disabled without deleting them. This immediately revokes their API access.
- To Disable: Select one or more active users in the list and click Disable.
- To Enable: Select one or more inactive users in the list and click Enable.
Deleting
To permanently remove a Service User and all associated API keys:
- Select the user(s) from the list.
- Click the Delete icon.
Permissions & Policies
Service Users rely on Policies to determine what actions they can perform.
On the Service User’s detail page, you can manage these policies in the Attached Policies section.

- Attach Policy: Click Attach Policy to select an existing policy to apply to this user.
- Detach Policy: Click Detach next to a policy to remove those permissions from the user.
API Access
To use a Service User for API calls, you must generate an API Token. This is done on the Service User’s detail page in the API Access section.
Generating Tokens
Click Generate API keys (or Regenerate API keys if keys already exist). The Client ID and Client Secret will be displayed.

Authenticating Requests
Include the generated credentials in the HTTP headers of your API requests. The format is trustgrid-token {ClientId}:{ClientSecret}.
Header Example:
Authorization: trustgrid-token 12345-abcde:secret-key-content-here
Authorization Header Format
The UI provides a copy-pasteable example of the header:
Authorization: trustgrid-token <ClientId>:<Secret>
Best Practices
- Least Privilege: Create specific Policies for your integrations rather than reusing broad admin policies. Assign only the permissions necessary for the specific task the Service User performs.
- Key Rotation: Regularly rotate API keys by using the Regenerate API keys function. This invalidates the old secret immediately.
- Unique Identity: Create separate Service Users for different integrations (e.g., one for “CI/CD Pipeline” and another for “Monitoring System”). This makes audit logs clearer and allows you to revoke access for one system without affecting others.
- Disable Unused Users: If an integration is paused or decommissioned, disable the Service User immediately.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.