Hi @Ashwin Sidharthan,
Based on your query, here is my understanding: you would like to add tenant API exposed API in tenant B application.
Tenant A: Create an app registration as multi-tenant application in tenant A (eg: TenantAapp) and expose it as an API (api://app-id/app.permissiom). You can use the following document: Configure an application to expose a web API.
Tenant B:
- Try to consent that TenantAapp
multi-tenant application
using a user of Tenant B, so that the application gets added to Tenant B as aservice principal
. - Once the application TenantAAPI gets added to Tenant B, you should be able to see its entry under the Enterprise Registration section.
- Create another App Registration in Tenant B (eg: TenantBApp).
- 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 TenantAapp
- Once you find the TenantAapp, add its exposed permission which is app.read as it would be listed there.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".