Bulk Register AI Agents in Okta (Workflows Community Template)

This blog post is from Bryan Barrows, AI Forward Deployed Engineer at Okta, and is based on a template by Rajesh Kumar, Principal Forward Deployed Engineer at Okta.

Adding AI agents to Okta one at a time in the Admin Console is slow when you have more than a few. If you have a list of agents to onboard, you can automate it with Workflows.

Rajesh published a template that reads AI agents from a Google Sheet and registers and activates them in Okta Universal Directory. Each run registers the agent, adds its public key, assigns an owner to it, and activates it.

Register AI agents

How the template works

The 01 Initiate AI Agents Registration flow runs on schedule and reads new rows from a Google Sheet. The helper flows then perform the following tasks:

  • Register the agent
  • Get its ID
  • Add the public key
  • Assign the owner
  • Activate it

The 02 Register AI Agents flow also adds each processed agent to the registered agents sheet, with its registration status and time. A final flow, 03 Remove Registered Agents, clears the processed rows from the new agents sheet.

Okta Workflows folder showing the three flows that register AI agents: Initiate AI Agents Registration, Register AI Agents, and Remove Registered Agents.
Register AI agent workflows.

Set up the template

Note: The template is provided as is, so try it in a non-production org first.

  1. Create an Okta connection in Workflows with the okta.aiAgents.manage and okta.aiAgents.read scopes. If you change the scopes on an existing connection, you may need to reauthorize it.
  2. Create a Google Sheets connection.
  3. Prepare a spreadsheet with two sheets.
    • The first (new agents) has these columns:
      • Agent_Name
      • Agent_Description
      • Agent_Pub_Key
      • Org_ID
      • Agent_Owner_Group
    • The second (registered agents) has the same columns plus:
      • Reg_Status
      • Reg_Date_Time
  4. Import the .folder file from Rajesh’s post into a new Workflows folder.
  5. Open the 01 Initiate AI Agents Registration flow and select your spreadsheet and worksheet in the Google Sheets-Read All Rows card.
  6. Do the same for the Google Sheets-Create Row card in the 02 Register AI Agents flow, and the Google Sheets-Clear Row card in the 03 Remove Registered Agents flow.
  7. Turn on the flows. To test, run the 01 Initiate AI Agents Registration flow.
The Google Sheets Read All Rows card in Okta Workflows with the spreadsheet and worksheet fields to select.
Set up the Google Sheets-Read All Rows card.

Check the result

In the Admin Console, go to Directory > AI Agents. The agents from your sheet should appear as Active, and the rows should have moved to the second sheet, with registration status and time.

Reusing the pattern

The sheet is only the data source. Use a new agents sheet as the queue and a registered agents sheet as the audit log, with one helper flow per step. You can swap the sheet for any platform with an API and keep the rest of the flows.

Onboarding Okta AI Agents guide

Read the guide (PDF).


Okta Workflows resources

Leave a Reply