Configure Microsoft Office 365 for AI agent imports

To import AI agents from Microsoft Office 365, you need to register an app in your Microsoft Azure Portal. Then you generate a client secret and assign permissions to the app.

Register an app in the Microsoft Azure Portal

  1. Sign in to the Microsoft Azure Portal.
  2. Open Azure Active Directory .
  3. Select App registrations from the side panel.
  4. Click New registration.
  5. Enter Okta-AI-Agent-Import as the app name.
  6. Select Accounts in this organizational directory only (Single tenant) as the supported account type.
  7. Leave the Redirect URI fields blank.
  8. Click Register.
  9. On the Overview page, copy the Application (client) ID and Directory (tenant) ID values and store them somewhere safely.

Generate a client secret

  1. Open the app that you created in the previous section.
  2. Select Certificates & secrets from the side panel.
  3. Go to the Client secrets tab and click New client secret.
  4. Enter Okta AI Agent Import in the Description field.
  5. Set the expiry to 90 days.
  6. Click Add.
  7. On the Client secrets tab, copy the Value and store it somewhere safely.

Add permissions

  1. Select API permissions from the side panel.
  2. Click Add a permission.
  3. Select Microsoft Graph from the Microsoft APIs tab.
  4. Select Application permissions.
  5. Search for and select the CopilotPackages.Read.All permission.
  6. Click Add permissions.
  7. On the Permissions page, click Grant admin consent for [permissions].