{% extends "base.html" %} {% block title %}Register the app — ai-offboard{% endblock %} {% block content %}

One-time Azure app registration

ai-offboard signs in as a Global Administrator using Microsoft's device-code flow. That needs a public-client app in your tenant that only your organization controls. Register it once (2 minutes), paste its ID, done.

{% if error %}
{{ error }}
{% endif %}

Register the app in the Azure portal

  1. Open portal.azure.comMicrosoft Entra IDApp registrationsNew registration.
  2. Name: ai-offboard. Under Supported account types choose "Multiple Entra ID tenants" — the second radio option. When it expands, select "Allow all tenants" (not "Allow only certain tenants"). This is what the device-code flow requires; your admin still approves the read-only scopes at first sign-in. Leave redirect URI empty. Click Register.
  3. In the left menu, open Authentication (Preview). Scroll to Settings → Allow public client flows and set it to Enabled (it may default off — flip it if so). Then click Save at the top. (This is what enables the device-code login.)
  4. Copy the Application (client) ID on the overview page (a UUID like 0f0f0f0f-…) and paste it below.

Read scopes (User.Read.All, Group.Read.All, Application.Read.All, Directory.Read.All) are requested at the consent screen on first sign-in — no need to configure API permissions in the portal.

{% if env_path %}

This writes OFFBOARD_PUBLIC_CLIENT_ID to the local .env file next to your installation. It's a public identifier, not a secret — the app has no client secret.

{% endif %}

← Back to audit page

{% endblock %} {% block scripts %} {% endblock %}