Share via

How to fix AADSTS500022 Access to tenant ... denied ?

Иван Бобров 0 Reputation points
2024-02-13T07:55:39.5666667+00:00

Suddenly today morning all user in tenant received error.
AADSTS500022: Access to tenant ... denied
Last night all worked fine, no configuration changes were made during last few days.
Now it looks like tenant is absent.
How to fix it and what happened ?
I am admin in this tenant, so don't answer me "ask your admin" :-)

Errror details for one login attempt are below: Request Id: fad9d9f2-5add-42f4-a41e-4c6269002001 Correlation Id: ff4de223-3c39-4bf7-af63-1e9086397d5e Timestamp: 2024-02-13T06:48:50Z Message: AADSTS500022: Access to ... tenant is denied. App name: OfficeHome Device platform: Windows 10 Device state: Unregistered IP address: 50.7.93.85

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Sandeep G-MSFT 21,151 Reputation points Microsoft Employee Moderator
    2024-02-13T09:01:22.81+00:00

    @Иван Бобров
    Thank you for posting this in Microsoft Q&A.There are multiple reasons for the error that you are receiving.

    This error is caused due to conditional access policy configured in your tenant. In the above error I see that you are trying to access Azure resources from Windows 10 device which is unregistered.

    Looks like you have configured a conditional access policy which requires device to be registerd while access any Azure resources.

    It might be possible that your device is registered with Azure AD. But still, you are getting device as unregistered.

    This is due to the client that you are using to access Azure portal.

    You can try to use different browsers and check if you are able to access Azure services.

    Also, possibility of below reason can be true as well,

    Usually, this error AADSTS500022 indicates that the tenant restriction feature is configured and that the user is trying to access a tenant that isn't in the list of allowed tenants specified in the header Restrict-Access-To-Tenant.Large organizations that emphasize security want to move to cloud services like Microsoft 365, but need to know that their users only can access approved resources. Traditionally, companies restrict domain names or IP addresses when they want to manage access. This approach fails in a world where software as a service (or SaaS) apps are hosted in a public cloud, running on shared domain names like outlook.office.com and login.microsoftonline.com. Blocking these addresses would keep users from accessing Outlook on the web entirely, instead of merely restricting them to approved identities and resources.

    The Microsoft Entra solution to this challenge is a feature called tenant restrictions. With tenant restrictions, organizations can control access to SaaS cloud applications, based on the Microsoft Entra tenant the applications use for single sign-on.

    Reference link: https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/tenant-restrictions#how-it-works

    Let me know if you have any further questions.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.