Skip to main content

Create and Manage Agents

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Create an agent, give it identifiers and an owner, and assign the groups and roles that decide what it can reach. Manage its attribute schema, then delete it when it is retired.

Create an agent​

Creating an agent gives that agent its own identity in Choreo Identity & Access Management, with its own owner, attributes, and lifecycle, separate from any user.

  1. Select your project in the project switcher in the header. Go to Agents and click Add agent. The agent is created in the selected project. The agent does not work until you deploy the change: go to Deployment pipeline and deploy the latest version to your first environment, unless auto deploy is on.
  2. If the organization hierarchy requires it, choose an Organization Unit.
  3. Enter an Agent name (type one or pick a suggestion).
  4. If the agent schema defines attributes, fill them in.
  5. Choose an Owner (defaults to the creator), the person accountable for the agent throughout its lifecycle.
  6. Click Create.
Agents also get an OAuth profile

An agent needs an OAuth profile before it can request tokens. The Console creates one at registration, issuing a Client ID and showing the Client Secret once on the confirmation screen. Copy the secret there, because it cannot be retrieved later, only regenerated.

That profile is configured on the Credentials, Flows, Tokens, and Advanced tabs, which appear only for an agent that has one, and are summarized under Manage an agent below.

Deploy your changes

Saving a change does not make it live. You author in the control plane, and your users sign in on a separate data plane, so a change takes effect in an environment only after you deploy it. Go to Deploy, deploy the latest version to your first environment, then promote it to the next environment when you are ready.

Auto-sync deploys saved changes to your first environment within seconds. Turning it on is your choice, per project. See Deploy a Version, or learn why you deploy and how auto-sync works.

Manage an agent​

In the Console, open the agent from the list. The name and description are editable inline in the header, and changes across tabs are saved together from the unsaved-changes bar.

Identifiers and owner​

Every agent has an Agent ID, its identity in Choreo Identity & Access Management, and an Owner, the person accountable for it. The owner is the contact point for what the agent does. Assigning one grants that user no access to the agent.

The Overview tab shows the Agent ID and owner under Agent details, and the Advanced tab is where the owner is changed.

Attribute values​

The agent schema decides which attributes an agent carries, and each agent holds its own values for them.

Set the values on the Attributes tab. The Overview tab previews them under Attributes, alongside the agent's organization unit under Agent details.

Groups and roles​

An agent should reach only the resources its task needs. What its tokens are allowed to carry comes from the groups and roles assigned to it, so the agent's reach is controlled separately from its credential, and changing what an agent can do never rotates its secret.

The scopes an agent can hold, the permissions that travel in the token's scope claim, are defined by the resource it will call, not by the agent. Register the API and its scopes as a Resource Server first, then grant the matching scopes to the agent. An agent can never be granted a scope the resource has not declared.

The Access tab is a read-only view of the groups the agent belongs to and the roles assigned to it, directly or through its groups. Assign them from the Console Roles and Groups pages; see Manage Roles and Manage Groups. A role carries a set of scopes, and a group can carry roles and inherit from parent groups.

Group membership is transitive: scopes inherited from a parent group are included.

Credentials​

The credential the agent authenticates with, either a client secret or a signed key, along with any sensitive credential attributes it carries. Rotate the secret or switch to a private key JWT here.

Flows​

Applies only when the agent signs users in with the authorization code or CIBA grant. An agent that holds only token exchange or JWT bearer never starts a sign-in, so these settings stay frozen. Pick the authentication and registration flows that decide how users authenticate through the agent. The flows themselves are built in the flow builder, Login and Registration Flows; this tab only selects which one the agent uses. See Agent Access on Behalf of Users.

Tokens​

What the agent's tokens carry and how long they last, set independently for each audience: the Agent token it uses on its own, and the User token it holds when acting for a user. Without the authorization code or CIBA grant, the User token shows only the access token settings, since the other delegated grants issue no ID or refresh token. See Agent Token for the agent token and Agent Access on Behalf of Users for the user token. When the agent issues identity assertions, they carry the attributes selected for the User ID token too, except roles and groups. See Issue Identity Assertions (ID-JAG).

Advanced​

The Advanced tab gathers the agent's OAuth and operational settings:

  • Operating mode has a Delegated mode toggle that sets whether the agent acts only on its own or is extended to also act for a signed-in user. On its own it uses its own credentials (client_credentials); with Delegated mode on, it can also act for a user, and turning it on adds the authorization code (authorization_code with PKCE) and refresh token grants by default. Turning it off removes every grant that depends on it and turns off identity assertions. See Agent Access on Behalf of Users.
  • Owner is changed here; see Identifiers and owner for what it means.
  • Allowed user types restricts self-service registration to the selected user types. Once the authorization code grant is on, you must select at least one user type before Save is enabled. Users of the selected types can register through the agent. See Agent Access on Behalf of Users.
  • Agent sign-in controls whether other agents can sign in to this agent. Turn it on to let agents sign in, and leave it off to block every agent. This setting does not affect users.
  • Grant types are the OAuth grants the agent may use. Acting on its own (client_credentials) is always on. The other grants stay locked until the agent is extended to act for users: signing users in (authorization_code), keeping that access without a new sign-in (refresh_token), out-of-band approval (CIBA), handing a task to another agent (Token exchange), and redeeming an ID-JAG from an external identity provider (JWT bearer). See Agent Token and Agent Access on Behalf of Users.
  • Authorized redirect URIs are the callback URLs allowed for the authorization_code grant. See Agent Access on Behalf of Users.
  • Client authentication method is how the agent authenticates to the token endpoint, with a client secret or a private key JWT. See Agent Authentication.
  • Security covers Require PKCE and Require Pushed Authorization Requests (PAR), which apply to the authorization_code grant. Require PKCE turns on automatically when the authorization_code grant is on and cannot be turned off here; PAR is optional.
  • Default audience is the aud the agent's own token carries when a request names no resource and no scopes. See Agent Token.
  • Identity assertions (ID-JAG) lets the agent issue an Identity Assertion JWT Authorization Grant for the signed-in user that an external authorization server accepts. The card appears after the grant settings, only while Delegated mode is on. Set the Allowed audiences and the Assertion validity. Turning it on also enables the token exchange grant, which you cannot remove while identity assertions are on. See Issue Identity Assertions (ID-JAG).

Agent schema​

The custom attributes every agent carries come from the agent schema, a single built-in schema shared by all agents. See Agent Schema to view the default attributes and change what an agent holds.

Set a lifespan​

Give an agent an end date, its validUntil, to stop it authenticating and obtaining tokens automatically once its work is done. Set it on the agent's Attributes tab. Tokens issued to the agent or for it expire no later than the validUntil in force when they are issued; moving it earlier does not revoke tokens already issued. See Set an Agent's Lifespan.

Suspend or unlock an agent​

An agent locks automatically after repeated failed sign-in attempts, but its client secret never locks. To stop an agent while you investigate, suspend it. Suspending revokes the agent's tokens, including user tokens issued through its OAuth client, and ends its sessions.

Open the agent, click Actions in its header, and select Suspend, Unsuspend, or Unlock. The menu offers only the operations that apply to the agent's Status.

For what each operation does, see Suspend and Restore Accounts. For the agent lock policy, see Configure Account Lockout.

Delete an agent​

Open the agent. On the Advanced tab, in the Danger zone section, click Delete agent.

warning

Deletion is permanent and revokes the agent's credentials. Tokens the agent was already issued stay valid until they expire, so keep agent token lifetimes short.

Scope agents to a project​

An agent belongs to the project selected in the project switcher when you create it. For how projects work, see Projects.

Was this page helpful?