Microsoft Entra ID > Security > Authentication Methods > Temporary Access Pass > Enable
Microsoft Entra ID Security