Relative Content

Tag Archive for sharepointazure-active-directorymicrosoft-graph-apimulti-tenantmicrosoft-graph-sites

How to resolve ‘invalid hostname for this tenancy’ error when accessing Microsoft Graph API for multi-tenant app registration?

I have a multi-tenant app registration in Azure AD with permissions to Sites.Selected to use the Microsoft Graph API for reading/writing to SharePoint sites. Tenant B has successfully given admin consent through the generated admin consent link, resulting in an enterprise application in Tenant B. However, while I can access sites in Tenant A using the app registration, I receive an ‘invalid hostname for this tenancy’ error when trying to access sites in Tenant B.