Welcome to the Alteryx Knowledge Base
Created/Edited -
Using Service Principal authentication type for a custom domain SharePoint server does not return the file items using the shared link.
Authentication configuration
- In Workflow
- Using Data Connection Manager (DCM)
Example of a custom domain
After entering a shared link in the File Path field, you will see an incorrect item in the Select File field.
Hitting the <ENTER> key will not fetch the file items. You will still see the above, or you may see the "Incorrect URL" error under the File Path field.
NOTE: A custom domain name may indicate a private cloud.
Example of a working shared link that is using "sharepoint.com" domain
NOTE: Having domain name as "sharepoint.com" indicates a public cloud.
- Alteryx Designer
- Version: All
- SharePoint Tools
- Version >= 2.6.0
- Authentication Type
- Service Principal (Application)
- SharePoint Server with a custom domain/SharePoint Server on private cloud
SharePoint server is assumed to be using "sharepoint.com" domain and does not take custom domain into consideration. A defect (GCSE-3410/TPM-4667) has been logged to address this.
Solution A: Upgrade SharePoint tool
This issue has since been addressed in the SharePoint tool version 2.7.6. Please upgrade to this version.
Solution B: For SharePoint tool version < 2.7.6
Consider one of the following suggestions, if applicable:
- Add or modify the API permissions of the Service Principal in Azure portal to allow all sites access instead of "sites.selected":
NOTE: By doing so, the Service Principal has access to all the sites. If this is not what you would like, please DO NOT use this approach. With this approach, the Site drop-down in the SharePoint tool displays all the sites, and you do not need to enter the shared link in the File Path field.
- Use Browser Sign-in (OAuth) authentication.
This option adds Alteryx Analytics Connector Azure application to your tenant and will be used in the connector. This comes with pre-configured API permissions and uses the user's credentials.
- Use a custom Azure application that uses the user's credentials for authentication. Please refer to the following link for the needed API permissions.