AADSTS51001: Request needs a domain hint
The request needs a domain hint.
What to check
- Supply the expected
domain_hintwhen the flow uses an internal SID or user principal name.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The request needs a domain hint.
Microsoft does not provide a separate remediation in the lookup.