Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
amaaiia
Super User
Super User

Is it possible to authenticate with Service Principal-Sharepoint connection to a Teams group path?

I need to register an APP and allow it to access a Sharepoint site (as a Teams group). I have this documentation to follow: https://learn.microsoft.com/en-us/fabric/data-factory/connector-sharepoint-online-list#step-1-specif...

 

And it says the Sharepoint URL must have this format: https://contoso.sharepoint.com/sites/siteName

However, when you create a new Teams group, the associated Sharepoint site has the following format: https://contoso.sharepoint.com/teams/teamsGroupName.

 

I'm having issues allowing registered APP to access this Sharepoint-Teams group content.

Is this possible?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amaaiia ,

I think you can do the steps below:

1. Register the App in Azure AD:
Go to the Azure portal.
Navigate to Azure Active Directory > App registrations > New registration.
Fill in the required details and register the app.

 

2. Grant Permissions to the App:
After registering the app, go to the API permissions section.
Add the necessary permissions for SharePoint, such as Sites.Read.All or Sites.FullControl.All.
Grant admin consent for the permissions.

 

3. Configure the SharePoint Site:
Navigate to the SharePoint site associated with your Teams group.
Go to Site permissions and add the registered app with the required permissions.

 

4. Use the Correct URL Format:
When configuring the app in Fabric Data Factory, use the URL format specific to your Teams group, e.g., https://contoso.sharepoint.com/teams/teamsGroupName.

 

5. Set Up the Connection in Fabric Data Factory:
In Fabric Data Factory, go to the Manage section.
Select Linked services and create a new linked service for SharePoint.
Use the registered app’s credentials and the correct SharePoint site URL.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @amaaiia ,

I think you can do the steps below:

1. Register the App in Azure AD:
Go to the Azure portal.
Navigate to Azure Active Directory > App registrations > New registration.
Fill in the required details and register the app.

 

2. Grant Permissions to the App:
After registering the app, go to the API permissions section.
Add the necessary permissions for SharePoint, such as Sites.Read.All or Sites.FullControl.All.
Grant admin consent for the permissions.

 

3. Configure the SharePoint Site:
Navigate to the SharePoint site associated with your Teams group.
Go to Site permissions and add the registered app with the required permissions.

 

4. Use the Correct URL Format:
When configuring the app in Fabric Data Factory, use the URL format specific to your Teams group, e.g., https://contoso.sharepoint.com/teams/teamsGroupName.

 

5. Set Up the Connection in Fabric Data Factory:
In Fabric Data Factory, go to the Manage section.
Select Linked services and create a new linked service for SharePoint.
Use the registered app’s credentials and the correct SharePoint site URL.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.