Bring in agents from another registry
Import the agents that you already keep in Microsoft Entra Agent ID, Okta, AWS AgentCore Identity or Salesforce Agentforce.
What it shows
- You connect the outside registry in the portal, with a credential that can read it.
- A preview shows how many agents a sync would create, and imports nothing.
- The sync creates one LumoAuth agent for each agent of the registry. Each new agent is inactive and has no capabilities.
- You review the imported agents with the CLI, give one its capabilities, and activate it.
LumoAuth only reads the outside registry. It never writes to it.
Before you start
-
An account at the outside registry that can list its agents:
Registry What LumoAuth needs What it imports Microsoft Entra Agent ID An app registration with the application permission Application.Read.All: tenant ID, client ID and client secretService principals with the tag AgentIdentityOkta Agent SSO The Okta domain and an API token (SSWS) OIDC apps of the type service, and apps that are marked as agentsAWS AgentCore Identity Access to the control plane of Bedrock AgentCore Workload identities of AgentCore Salesforce Agentforce A connected app with the client credentials flow BotDefinitionrecords -
Check that your plan includes registry sync in the plans matrix.
-
For the script: the lumo CLI,
jq, and an API key with the scopesadmin:agents:readandadmin:agents:write.
| Variable | Value |
|---|---|
LUMOAUTH_URL | The address of LumoAuth: https://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region. |
LUMOAUTH_ORG_ID | Your organization, for example acme-corp. |
LUMOAUTH_API_KEY | An API key with the scopes admin:agents:read and admin:agents:write. |
REGISTRY | The start of the agent IDs of your registry: entra-agent-id, okta-agent-sso, aws-agentcore or salesforce-agentforce. |
AGENT_ID | The ID of the imported agent that you activate, as the list shows it. |
CAPABILITIES | The capabilities for that agent, separated by commas, for example tickets:read,tickets:reply. |
Import in the portal
- Open Settings, then Integrations, and select Agent ecosystem.
- Under Agent registries, select your registry, for example Okta Agent SSO.
- Fill in the fields of the connection. For Okta these are Okta domain and API token (SSWS). Leave Enable this connection on.
- Select Add connection. LumoAuth stores the credential encrypted and does not show it again.
- On the page of the connection, select Test connection.
- Select Preview (dry run). The result counts the agents that a sync would create, and imports nothing.
- Select Sync now.
These steps were written from the docs. Nobody has followed them for this page yet. The names of the pages, fields and buttons were read in the portal. The connection and the sync need an account at the outside registry.
Code
Run each command from the recipes folder of the examples repository. Set the folder up once for your language. The names of the pages, fields and buttons were read in the portal. The connection and the sync need an account at the outside registry.
- lumo CLI
#!/bin/sh
# Review the agents that a registry sync imported, give one of them its
# capabilities, and activate it.
#
# sh agents/import-from-another-registry/cli/activate.sh
#
# The script needs the lumo CLI and jq.
set -eu
# The CLI has its own names for the three values of the recipes.
export LUMO_BASE_URL="$LUMOAUTH_URL" LUMO_ORG="$LUMOAUTH_ORG_ID" LUMO_API_KEY="$LUMOAUTH_API_KEY"
# 1. List the imported agents. The ID of an imported agent starts with the
# name of its registry, for example okta-agent-sso-. A new one is inactive.
lumo agents list --search "$REGISTRY-" -o json |
jq -r '.data[] | "\(.agentId): \(.name) (\(.status))"'
# 2. An imported agent has no capabilities. Give this one what it needs.
lumo agents update "$AGENT_ID" --capabilities "$CAPABILITIES" -o json | jq -r '"update: \(.message)"'
# 3. Activate it. From now on it can ask for tokens.
lumo agents enable "$AGENT_ID" -o json | jq -r '"activate: \(.message)"'
# 4. Read the agent back.
lumo agents get "$AGENT_ID" -o json |
jq -r '.data | "\(.agentId): \(.status), \(.identityType), capabilities \(.capabilities | join(" "))"'
sh agents/import-from-another-registry/cli/activate.sh
Compiles. Not run against an organization. The script ran against an organization on an agent that was created and deactivated by hand. No outside registry was at hand, so it did not run on an imported agent.
Check the result
okta-agent-sso-0oa1b2c3d4e5f6g7h8i9: Helpdesk triage (inactive)
okta-agent-sso-0oa9z8y7x6w5v4u3t2s1: Knowledge base writer (inactive)
update: Agent updated successfully
activate: Agent activated
okta-agent-sso-0oa1b2c3d4e5f6g7h8i9: active, workload, capabilities tickets:read tickets:reply
- Before you activate an imported agent, it cannot get a token. Importing gives no access.
- Select Sync now again. The sync matches each agent by its ID in the registry, so it creates nothing twice.
- Change the name of an agent in the outside registry, and sync again. LumoAuth takes the new name. The status, the capabilities and the credentials that you set stay as they are.
- In the portal, open Audit logs under Security. Each sync is an entry with the event
agent_registry.syncedoragent_registry.sync_failed.
Limits
- The identity type of an imported agent is
workloadorcustom. An agent from Entra arrives with a binding to Azure, and one from Okta with a binding to the OIDC issuer of Okta. An agent from AWS AgentCore or Salesforce iscustomand has no binding. - A binding to a provider of the Workload identity add-on is filled in only when your organization has that add-on. Without it, the agent is imported with no binding.
- The import does not copy permissions from the outside registry. You choose the capabilities in LumoAuth.
- The connection and the sync exist in the portal only. The Admin API and the CLI work on the agents after the import.