Skip to content

Make a query to a sharepoint site in a multi-tenant scenario #3

@ayoubqrt

Description

@ayoubqrt

Hi thank you for you work, I found some useful resources particularly on your mgwdev-m365-helpers repo.
So I wanted to use the sp-react application in a multitenant scenario.

Context :

  • The application in Azure is registered in the 1234xx tenant and configured in multitenant mode
  • The site collection in Sharepoint was created in public mode (so members of the organization can access the site)
  • Added in the site collection a user from another tenant

Scenario :

  • With any account from 1234xx tenant, I can authenticate myself and make requests to sharepoint within the sharepoint Rest API.
  • With a user from another tenant, I can authenticate myself but not make requests to SharePoint, I get this error:
    {"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."}

Have you any ideas, do you think it's possible ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions