If you receive the message "Error AADSTS50105 - The signed in user is not assigned to a role for the application" during federated authentication with Azure Active Directory (Azure AD), it indicates that the user hasn't been granted access to the application in Azure AD.
For details, see the Microsoft documentation: