Hi Shajedul Alam,
Thank you for contacting Microsoft!
This error can occur if the application is not enabled for multi-tenant support or if consent has not been granted by the resource tenant.
To troubleshoot this issue, please follow these steps:
Verify in the home directory where the application is registered that it supports multi-tenant account types.
Login into Entra ID >> Go to App Registration >> select the app >> Click on Authentication
Once the application is enabled for multi-tenancy, ask the administrator of the resource directory to provide consent to the application first. This can be done using the following URL:
https://login.microsoftonline.com/common/adminconsent?client_id=your_client_id
After the consent is given, try logging in to the application again to see if the issue persists.
If the application is meant for a single tenant only, here are some steps to resolve the issue:
- Verify Tenant ID: Confirm that the tenant ID is correct for the
phreesia.com
directory. - Admin Consent: Confirm if admin consent is granted by the global admin.
- Check App Registration: Go to the Azure portal and navigate to Azure Active Directory > App registrations. Make sure the app with the Client ID is registered under the correct tenant.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.