How to access multi-tenant data in Azure using a background / daemon application?

asked 2020-03-24T02:29:07.837+00:00
Tushar Jasrotia 1 Reputation point

I have multi-tenant app registered in Azure Active Directory. This app is currently configured to perform following for its own tenant:

  1. Get access token for tenant using tenant's client-id / secret
  2. Create subscription for Outlook calendar events
  3. When calendar events occur, Microsoft calls our API and notifies us of the event-id.
  4. We query event details for that event-id using Graph APIs and store the Calendar event details in our DB.

We want to enhance this process to collect events for other tenants ( i.e. our customers ). Since I am not able to find a documentation to achieve the same, I am looking for pointers to find out the following:


  1. What set up or configuration is required in Azure from other tenants to allow this app to subscribe to their data?I have read about Consent and Permissions, but don't know how one tenant can give consent to app of other tenant. That's why asking this question.
  2. What updates are required for this app to receive notifications for calendar-events for other tenants? You can assume we have tenant-id for other tenants.


  • There is no user intervention, consent should be given in Azure portal itself (cannot do based on user sign in).
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,544 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. answered 2020-05-22T15:14:22.86+00:00
    Waldner Longwood 6 Reputation points

    Hi Marilee,

    Can you please share more details on how to "During application registration, you need to share secrets or certificates or signed assertions with Azure AD."?


    No comments

  2. answered 2020-04-07T04:12:04.46+00:00
    Marilee Turscak-MSFT 20,401 Reputation points Microsoft Employee

    Hi Tushar,

    Sorry for the late reply on this! Which guide are you currently following?

    In Azure you will need to make sure that each tenant admin provides admin consent in the multi-tenant scenario.

    During application registration, you need to share secrets or certificates or signed assertions with Azure AD. You also need to request application permissions and grant admin consent to use those app permissions.

    More steps are covered in the guidelines here:

    No comments