Unable to authenticate through cross-tenant application from ADF to Sharepoint

Krishnamohan Nadimpalli 406 Reputation points
2022-09-01T07:05:36.443+00:00

Hi

I am unable to authenticate from ADF to Sharepoint. Both ADF and Sharepoint are in different Tenants. Application is Cross-Tenant Enabled, ADF is given Contributor Access to Application, but still it gives following error.
236736-image.png

Following is my implementation, I am able to get access_token from Web Activity , but it fails through above error in Copy Activity

236729-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,647 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2022-09-02T06:08:23.143+00:00

    Hi @Krishnamohan Nadimpalli ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your question here.

    As per my understanding you are trying to perform data movement between cross tenant applications , but , the pipeline is failing due to authentication error. Kindly let me know if my understanding is incorrect.

    • Could you please validate if the connection for the linked service you are using for both source and sink dataset is successful ? If not, kindly check you have provided the tenand id correctly for the different tenant where sharepoint is hosted .
    • Kindly create Service principal via app registration and use the service principal key correctly. Also, kindly provide contributor access to the service principal in the tenant where ADF is hosted.

    Few resources you can consider to visit : Connect cross tenant resources
    Cross-tenant Azure Data Factory

    Please let us know if it helps.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.