In Azure AD, how to access an API registered as multi-tenant(Tenant-A) from another tenant (Tenant-B)

prabhakar b 36 Reputation points
2020-05-06T06:53:02.167+00:00

We have created API in Tenant-A and exposed a scope (api://tenant-A/app.read) ,we have created Web Application in Tenant-B. Now we are trying to register permissions of Tenant-A in Tenant-B web application. How can we request permission of Tenant-A in Tenant-B web application.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,559 questions
0 comments No comments
{count} votes

Accepted answer
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-05-06T07:31:02.657+00:00

    @prabhakar b , You can perform the steps mentioned below:

    In Tenant A:
    Create a app registration as multi-tenant application in tenant A (eg: TenantAAPI) and expose it as an API (api://app-id/app.read).

    In Tenant B:

    1. Try to access that TenantAAPI multi-tenant application using a user of Tenant B, so that the application gets added to Tenant B as a service principal.
    2. Once the application TenantAAPI gets added to Tenant B, you should be able to see its entry under the Enterprise Registration section.
    3. Create another App Registration in Tenant B (eg: TenantBApp).
    4. In the API Permissions section of TenantBApp, you can add a permission: Add a Permission --> Select an API --> APIs my Organization Uses --> here search for the api of tenant A i.e TenantAAPI
    5. Once you find the TenantAAPI, Add its exposed permission i.e app.read as it would be listed there.

    In this way you can go ahead and make the api exposed in tenant A available in tenant B.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.


0 additional answers

Sort by: Most helpful