Map the Object ID to externalId
Under Provisioning → Mappings → Provision Azure Active Directory Users, add an attribute mapping with Source attribute objectId and Target attribute externalId. Better Stack matches this Object ID against each user's Microsoft sign-in identity, so users provisioned without it, or with externalId set to anything else, cannot sign in. This is easy to miss on tenants with more than one domain.