Work apps

admin.cloud.microsoft

Microsoft 365 - custom-domain setup

Notes an AI agent reads before it works on admin.cloud.microsoft: what to open, what to call, what breaks. Written by browser-harness contributors after real runs, and kept on GitHub under the MIT license.

Give it to your agent

Any coding agent

Start the task with this line. The Markdown version is the same notes without the page around them.

Read https://browser-use.com/skills/microsoft-365.md, then <your task>

Browser Harness

Save the files into your workspace and turn domain skills on. The code below calls its helpers, such as http_get and js. What Browser Harness is.

d="${BH_AGENT_WORKSPACE:-$HOME/.config/browser-harness/agent-workspace}/domain-skills/microsoft-365"
mkdir -p "$d" && cd "$d"
curl -sLO https://raw.githubusercontent.com/browser-use/browser-harness/main/agent-workspace/domain-skills/microsoft-365/domain-setup.md
export BH_DOMAIN_SKILLS=1

Routes

  • Admin portal: https://admin.cloud.microsoft/.
  • Domains: https://admin.cloud.microsoft/#/Domains.
  • Users: https://admin.cloud.microsoft/#/users.
  • DKIM: https://security.microsoft.com/authentication?viewid=DKIM.

Domain wizard

Domain verification and DNS setup are separate steps. A verified domain may remain marked as having incomplete setup until its required service records pass validation.

The DNS record groups expand with buttons whose aria-label describes the record type and expansion action. Clicking the adjacent heading text may do nothing. In a Dutch portal these labels include records and uitvouwen.

Advanced service options expose a DKIM checkbox. Read both selector targets from the tenant's wizard rather than generating them from the initial tenant domain: newer Microsoft DKIM targets contain a tenant-specific partition under dkim.mail.microsoft.

Wizard transitions may continue asynchronously after the ordinary page-load event. Wait for the next wizard heading or validation result before clicking again.

User address editor

The Users page may cache its domain list. Reload after verifying a new domain if it is missing from the primary-address or alias dropdown.

Changing the primary address in the dialog is a draft until the dialog's final save succeeds. Verify the user record after saving; a local form update or sign-out alone does not prove the change persisted.

Maintain separation between tenants. When an existing Chrome profile signs into a corporate tenant automatically, use a separate browser context in that same running Chrome instance for a new business tenant, and verify the account shown before any purchase or administrative mutation.

domain-setup.md · updated Oct 9, 2026 · 244 words

Sites change. These notes describe what worked when they were last updated, not a guarantee they still do. If something broke, the fix is a pull request to browser-harness.