How to set up a multi tenant application so my users can authorize Azure DevOps apis to be called

Sophie Higgins 0 Reputation points
2024-07-02T14:40:22.1766667+00:00

I've set up an application in Microsoft Entra Id following this documentation: https://video2.skills-academy.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow
I've then made changes to make it multi tenant following this: https://video2.skills-academy.com/en-us/entra/identity-platform/howto-convert-app-to-be-multi-tenant#multiple-tiers-in-multiple-tenants 

I've granted the following API permissionsScreenshot 2024-07-02 at 15.28.16

And I'm passing the scope into the authorize url scope parameter like so: scope=user.read%20https%3A%2F%2Fapp.vssps.visualstudio.com%2Fvso.project%20https%3A%2F%2Fapp.vssps.visualstudio.com%2Fvso.graph%20https%3A%2F%2Fapp.vssps.visualstudio.com%2Fvso.work%20https%3A%2F%2Fapp.vssps.visualstudio.com%2Fvso.work_full%20offline_access

When I try to use any user/organisation account to sign up there's always an error saying that the scope does not exist e.g. error=invalid_scope&error_description=The%20provided%20value%20for%20the%20input%20parameter%20%27scope%27%20is%20not%20valid.%20The%20scope%20%27user.read%20https://app.vssps.visualstudio.com/vso.code%20https://app.vssps.visualstudio.com/vso.graph%20https://app.vssps.visualstudio.com/vso.work%20https://app.vssps.visualstudio.com/vso.work_full%20offline_access%27%20does%20not%20exist.

I get the same error if I pass in completely invalid scope values. So I suspect I'm doing something wrong in the set-up of permissions in entra or the format of the parameter.

Anyone know what's going wrong?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,351 questions
{count} votes