How to fix UserErrorPermissionDeniedOnCloudIR

Gal Yaniv 65 Reputation points
2024-11-17T11:35:12.6033333+00:00

Hi,

I'm trying to copy files from my sharepoint online document library into azure blob storage, but I am getting this error:

ErrorCode=UserErrorPermissionDeniedOnCloudIR,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Access https://<my-domain>.sharepoint.com/sites/<my-site>/_api/web/GetFileByServerRelativeUrl ('<path/to/file>')/$value' is not allowed on Azure integrate runtime

Are there some costume configurations that need to be made for running copy operations on azure integration runtimes?

Thanks.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,943 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,911 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,898 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 24,081 Reputation points MVP
    2024-11-17T13:41:25.55+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    The UserErrorPermissionDeniedOnCloudIR error you are seeing typically indicates an issue with permissions or configuration when trying to access SharePoint Online from Azure Integration IR in ADF.

    Here are some steps you can take to troubleshoot and resolve this:

    1. Verify Permissions on SharePoint Online
    • Ensure the user or service principal used for AUTH has the appropriate permissions to access the specified SharePoint Online document library.
    • The account needs at least Read permission on the file and library you’re trying to access.
    1. Use Self-Hosted Integration Runtime (SHIR)
    • Azure Integration Runtime (IR) doesn’t inherently support all network and authentication methods required by SharePoint. To overcome this, consider using a SHIR instead of Azure IR, as SHIR can provide more flexible access to on-premises and private network resources.
    • Install SHIR on a VM (or on-prem server) that has network access to SharePoint Online, then use it for your copy operation.
    1. Ensure Authentication Method Compatibility
    • If you are using Azure AD authentication, ensure that:
      • You are using a valid OAuth token or service principal with permissions to access the SharePoint site.
        • Azure IR or SHIR is configured to support the OAuth authentication method required by SharePoint.
        • When setting up OAuth, make sure to:
          • Register an application in Azure AD, grant API permissions for SharePoint Online, and configure the application for delegated or application permissions, as required.
            • Add the client ID and client secret of the registered application in the linked service configuration for SharePoint Online in ADF.
    1. Configure the SharePoint Linked Service Correctly in ADF
    • Double-check the configuration of your SharePoint Online linked service in Azure Data Factory:
      • Ensure that the Tenant ID, Client ID, and Client Secret fields (if using a service principal) are correctly populated. Confirm that the correct Site URL is specified.
    • If there’s an option for choosing a File path, make sure it is accurate and accessible with the given credentials.
    1. Network Configuration and Allowlisting
    • Ensure that network access permissions for Azure IR or SHIR are set up correctly. Sometimes, you may need to configure allowlisting to permit ADF access to SharePoint Online.

    Additional Tips:

    If the issue persists, please provide additional details on auth methods and integration runtime configurations to identify any further customizations.

    Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.


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.