Manage Agents
Manage your agents and view agent activity
Register and manage agents
Create an agent
Required Immuta permission: USER_ADMIN
Register an agent in Immuta from your identity provider, by creating a new agent in Immuta, or by converting an existing user to an agent. Expand the blocks below for instructions on these methods.
Generate credentials for your agent
The credentials agents use for authentication depend on the version of the agentic access API you're using to request and manage ephemeral roles for the agent:
Agentic access V1 API: Agents use a personal access token to authenticate.
Deprecated legacy agentic access API: Agents use an API key to authenticate.
Click one of the tabs below for instructions on generating a personal access token or API key for your agent.
Requirement: USER_ADMIN Immuta permission or own the agent
The agent will use this token to make requests to the Immuta API to vend and delete ephemeral roles.
With the UI
Click Identities and select Agents.
Click the name of the agent you want to generate the API for.
Navigate to the Personal Access Tokens tab and click Generate Token.
Enter a token Description and opt to set an expiration date.
Click Generate token.
Copy the token and store it somewhere secure. It will not be visible in Immuta after closing the dialog.
This token can now be added to your agent service so that it can use it when requesting the ephemeral role.
With the API
Copy the request example below and replace the values with your own as directed to generate the agent's personal access token.
Replace the Immuta URL and bearer token with your own.
Replace the {iamId} request parameter with the unique identifier of your identity provider. You can find this ID in the identity provider's configuration section on the app settings page or through the Immuta API. If you created the agent in Immuta, this value is
bim.Replace the {agentId} request parameter with the unique identifier of the agent. You can get this ID through the Immuta API and using the agent's name as a search filter, or you can get it from the Agents page in the Immuta UI.
Change the payload values to your own, where
description is a brief description of the agent's personal access token.
expirationDate is the date the token expires.
This token can now be added to your agent service so that it can use it when requesting the ephemeral role. For information about additional endpoints used to manage agents' personal access tokens, see the Manage IAMs API reference guide.
Deprecation notice: Support for this method has been deprecated.
Requirement: USER_ADMIN Immuta permission or own the agent
The agent will use this API key to make requests to the Immuta API to vend and delete ephemeral roles.
With the UI
Click Identities and select Agents.
Click the name of the agent you want to generate the API for.
Navigate to the API Keys tab and click Generate API Key.
Enter an API key name and click Generate key.
This API key can now be added to your agent service so that it can use it when requesting the ephemeral role.
With the API
Copy the request example below and replace the values with your own as directed to generate the agent's API key.
Replace the Immuta URL and bearer token with your own.
Replace the {iamId} request parameter with the unique identifier of your identity provider. You can find this ID in the identity provider's configuration section on the app settings page or through the Immuta API. If you created the agent in Immuta, this value is
bim.Replace the {userId} request parameter with the unique identifier of the agent. You can get this ID through the Immuta API and using the agent's name as a search filter, or you can get it from the Agents page in the Immuta UI.
Change the payload values to your own, where
name is the name of the agent's API key.
expiration is the date the API key expires.
This API key can now be added to your agent service so that it can use it when requesting the ephemeral role.
Assign groups or attributes to your agent
Requirement: USER_ADMIN Immuta permission or own the agent
Opt to assign groups and attributes to the agent, just like you would for a human user. Once these entitlements are added, they can be used in global policies to target agents and grant or limit their access to data.
Click Identities and select Agents.
Click the name of the agent you want to add groups or attributes to.
Navigate to the Attributes or Groups tab to add these entitlements to the agent:
Attributes: Click Add Attributes.
Begin typing the attribute name in the Attribute text box. If the attribute already exists, select it from the dropdown list. If the attribute does not exist yet, enter the full name of the attribute, and then select it from the dropdown.
In the Attribute Value text box, enter a value. If the value already exists, select it from the dropdown list. If the value does not exist, enter the full name, and then select it from the dropdown.
Click Close.
Groups: Click Add Groups.
Begin typing in the Search by Group Name text box. If you need to create a new group, follow the instructions on the Manage attributes and groups page, and then add the agent to the group.
Click the name in the dropdown list to add the agent to the group.
Click close.
Map the agent to external data platforms
Requirement: USER_ADMIN Immuta permission or own the agent
Map external usernames to the agent account in Immuta to ensure Immuta properly enforces policies when connecting to the data platform.
The instructions below illustrate how to do this for individual agents, but you can also configure external mapping in your Identity provider connection on the app settings page.
Click Identities and select Agents.
Click the name of the agent you want to map to external data platforms.
Navigate to the External Mapping tab.
Click Edit for the data platform username you want to map to and complete the fields in the modal that appears. For guidance on what to enter in these fields, see the External user ID mapping page.
Request an ephemeral role and connect the agent to the data platform
The agent harness will use the new agentic access V1 API or the legacy agentic access API to request an ephemeral role for your agent. You will then use that ephemeral role to connect to the agent to the data platform. Expand the blocks below for guidance.
View agent activity
Click Identities and select Agents.
Click the name of the agent you want to view.
Click the Activity tab.
This view displays a list of vended roles, the vended role expiration dates, and the users the agent was acting on behalf of.
Disable or delete agents
Requirement: USER_ADMIN Immuta permission or own the agent
Click Identities and select Agents.
Click the overflow menu in the Action column of the agent you want to disable or delete and select Disable or Delete.
Click Disable or Delete again to confirm your changes.
Last updated
Was this helpful?

