Pular para o conteúdo

Microsoft Entra ID

OkYouIn can synchronize users and groups from Microsoft Entra ID (formerly Azure AD), so you can write rules for your Entra groups and give their members a second factor. It reads the tenant over Microsoft Graph with an app registration — no LDAP server, no Entra Domain Services.

An Entra user can sign in wherever something else checks the password and OkYouIn adds the policy and the second factor:

Sign-inWorks for Entra users?
RADIUS application with first factor MFA only (the VPN or device checked the password itself)Yes
Verify API with first factor MFA only (your application checked the password)Yes
Windows logon agent (Windows checks the password; the agent asks OkYouIn for the second factor)Yes
RADIUS application where OkYouIn checks the password (PAP or MS-CHAPv2)No — refused
Single sign-on with OIDC or SAML (the OkYouIn sign-in page asks for the password)No — refused
Verify API with first factor PasswordNo — refused
The OkYouIn console, including My accountNo — refused

In practice: Entra is a good source for who may use a VPN or a device that authenticates the password against Entra itself (or another system) and uses OkYouIn for MFA. It is not a way to put OkYouIn’s single sign-on page in front of Entra passwords.

Because Entra users cannot open the console, they enroll their MFA method through an e-mailed setup link — see MFA overview. Use the bulk action Send MFA setup link on the Users list after the first sync.

  1. In the Microsoft Entra admin center open App registrations → New registration. One application is all OkYouIn needs.

  2. Copy the Directory (tenant) ID and the Application (client) ID from the application’s Overview page.

  3. Open API permissions → Add a permission → Microsoft Graph → Application permissions (not Delegated) and add:

    • User.Read.All
    • Group.Read.All
    • GroupMember.Read.All
    • Application.Read.All — only if you will use the scope Assigned to the application (below).
  4. Click Grant admin consent. Until consent is granted, the permissions are listed but not in effect.

  5. Open Certificates & secrets → New client secret. Copy the Value column — not the Secret ID — and note the expiry date.

  6. Note the domains (Entra admin center → Domain names) whose people OkYouIn should import.

Open Settings ▸ Integrations ▸ LDAP, click Add Configuration and choose Microsoft Entra ID.

FieldNotes
Directory (tenant) IDA GUID, from the Entra admin center → Overview.
Application (client) IDA GUID, from the app registration’s Overview page.
Client secret (Value)The secret’s Value, not its ID. Stored encrypted and never shown again; leave the field empty later to keep it.
Secret expires onOptional but recommended. Microsoft does not tell the application when its secret expires, so OkYouIn can warn you only if you enter the date here.
UPN domainsThe tenant’s domains whose people are imported, for example example.com. At least one. A domain can belong to one Entra configuration only.

One configuration covers one tenant with all its listed domains; a tenant, and each domain, can be configured only once.

Run Test connection. It requests a token and checks each Graph permission separately, naming any that is missing or still propagating after consent, and recognises common mistakes — the Secret ID pasted instead of the Value, an expired secret, a disabled application, an unknown tenant — as well as network problems reaching Microsoft (DNS, proxy, untrusted certificate). OkYouIn needs outbound HTTPS to login.microsoftonline.com and graph.microsoft.com.

Under Which users are imported, choose Who is imported:

  • Selected groups — only users of the groups you select, members of nested groups included. Nothing selected — nothing is imported. Pick groups with Browse… (search by name; click a group to see who it would bring in) or paste a group’s Object ID. The Object ID is what is saved, so renaming the group in Entra changes nothing here.
  • Assigned to the application — the users and groups assigned to the application in Entra (Enterprise applications → this application → Users and groups) are imported. Assigned groups are imported as groups, for rules and role mapping. Needs the Application.Read.All permission.

In both cases only users whose UPN is in one of the UPN domains are imported. Guest accounts and users of other domains of the tenant are left out (the preview counts them). Nested groups are always resolved, but are not imported as groups of their own.

The OkYouIn username is the part of the UPN before @ (alice@example.com → alice). Users sign in with that name or with the full UPN. Usernames are unique in OkYouIn: if two people would get the same short name, the second is not imported and the sync reports why. A user disabled in Entra is imported as inactive.

The sync works as for LDAP directories: Enable Auto Sync and Interval (min) schedule it, Sync Preview shows who will be created, updated, disabled or deleted (before saving too), Trigger Sync runs it, and Sync History keeps the runs. The only mode is the selected groups and their members — the whole tenant is never imported.

Default RBAC and Per-Group Overrides (by group Object ID) assign console roles to imported groups. Imported groups appear under User Groups and can be used in the Who condition of rules right away.

When you enter Secret expires on, OkYouIn raises an alert as the date approaches — a warning from 30 days before, an error from 7 days before, and critical once it has expired — and notifies you again at each step. Once the secret has expired the sync fails until you paste a new secret. Test connection also shows the expiry date.

Entra configurations use the same LDAP RBAC section as LDAP directories. Searching groups by name needs the Browse directory permission; without it, paste Object IDs.