Skip to main content

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.

RecipeDraftView source
This page is a draft. The code exists, and not all of it has been run for this page yet. The page says what was checked.
Works with
lumo CLI

What it shows​

  1. You connect the outside registry in the portal, with a credential that can read it.
  2. A preview shows how many agents a sync would create, and imports nothing.
  3. The sync creates one LumoAuth agent for each agent of the registry. Each new agent is inactive and has no capabilities.
  4. 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:

    RegistryWhat LumoAuth needsWhat it imports
    Microsoft Entra Agent IDAn app registration with the application permission Application.Read.All: tenant ID, client ID and client secretService principals with the tag AgentIdentity
    Okta Agent SSOThe Okta domain and an API token (SSWS)OIDC apps of the type service, and apps that are marked as agents
    AWS AgentCore IdentityAccess to the control plane of Bedrock AgentCoreWorkload identities of AgentCore
    Salesforce AgentforceA connected app with the client credentials flowBotDefinition records
  • Check that your plan includes registry sync in the plans matrix.

  • For the script: the lumo CLI, jq, and an API key with the scopes admin:agents:read and admin:agents:write.

VariableValue
LUMOAUTH_URLThe address of LumoAuth: https://app.lumoauth.dev, or https://eu.app.lumoauth.dev for the EU region.
LUMOAUTH_ORG_IDYour organization, for example acme-corp.
LUMOAUTH_API_KEYAn API key with the scopes admin:agents:read and admin:agents:write.
REGISTRYThe start of the agent IDs of your registry: entra-agent-id, okta-agent-sso, aws-agentcore or salesforce-agentforce.
AGENT_IDThe ID of the imported agent that you activate, as the list shows it.
CAPABILITIESThe capabilities for that agent, separated by commas, for example tickets:read,tickets:reply.

Import in the portal​

  1. Open Settings, then Integrations, and select Agent ecosystem.
  2. Under Agent registries, select your registry, for example Okta Agent SSO.
  3. Fill in the fields of the connection. For Okta these are Okta domain and API token (SSWS). Leave Enable this connection on.
  4. Select Add connection. LumoAuth stores the credential encrypted and does not show it again.
  5. On the page of the connection, select Test connection.
  6. Select Preview (dry run). The result counts the agents that a sync would create, and imports nothing.
  7. 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.

agents/import-from-another-registry/cli/activate.sh
#!/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​

Output
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.synced or agent_registry.sync_failed.

Limits​

  • The identity type of an imported agent is workload or custom. 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 is custom and 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.