Search code examples
azure-devopsmicrosoft365

Azure DevOps Error 401 Account not authorized to view this page


Although there's a similar question on SO, but it didn't resolve my issue.

I created a project in Azure DevOps with my Microsoft365 account (work account [email protected]). Then I invited my client to that project ([email protected]). It worked initially but now it's throwing Error 401. Not authorized to view this page.

When she logins on Project URL, it makes her login 2 times which is strange. I tried incognito, clearing cache, removing cookies, different browsers, everything.

She got a mail initially when I invited but now I removed her from project and invited again, but no invitation email is going to her email again.

More info: She has added our work emails on her Microsoft 365 Teams, SharePoint with her work email.

What can be the issue? Any tips to resolve?


Solution

  • Azure DevOps Error 401 Account not authorized to view this page

    You can try the following two ways to see if that account can access the organization.

    1.Please try to access https://aex.dev.azure.com/ with that account and change domain to see if your organization lists here. Then confirm he is locating in the correct directory which is your AAD owned.

    For example, Microsoft is the directory that my company's AAD owned. Then I must located in this directory so that I can access the work organizations successfully:

    enter image description here

    1. Check if the external user on different domain who is trying to access the project is there in active users in admin center ( https://admin.microsoft.com), if by any chance it's in deleted users, restore that user to active users.

    3.Sign out completely from Azure DevOps by completing the following steps. Closing your browser might not sign you out completely. Sign in again and select your other identity:

    1. Close all browsers, including browsers that aren't running Azure DevOps.

    2. Open a private or incognito browsing session.

    3. Go to this URL: https://aka.ms/vssignout. You see a message that says, "Sign out in progress." After you sign out, you're redirected to the Azure DevOps @dev.azure.microsoft.com webpage. If the sign-out page takes more than a minute to sign you out, close the browser and continue.

    4. Sign in to Azure DevOps again. Select your other identity.


    If all of above does not work for this account. Since stackoverflow is a open forum and not secure to share some org and account info, I'd suggest you share your issues here. Then attach your organization name, AAD name, issue account there.