{% extends "base.html" %} {% block title %}Email Account · {{ role.name }}{% endblock %} {% block content %}
Microsoft 365 needs a one-time setup before anyone can sign in. Add the Microsoft app ID under Settings → Microsoft 365, then come back here.
{% elif sign_in and sign_in.status == 'waiting' %}1. Open {{ sign_in.url }}
2. Enter this code: {{ sign_in.code }}
3. Sign in as {{ role.email }} and click Accept.
This page updates by itself when you're done. Codes last about 15 minutes.
{% elif sign_in and sign_in.status == 'failed' %}Signed in{% if sign_in and sign_in.account %} as {{ sign_in.account }}{% endif %}
{% else %}You'll sign in on Microsoft's own page and come straight back. {{ product.name }} never sees your password.
If Microsoft says the reply address doesn't match, your IT admin needs to add {{ ms_redirect }} to the app registration under Authentication → Mobile and desktop applications.