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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
amaaiia
Continued Contributor
Continued Contributor

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
v-yilong-msft
Community Support
Community Support

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
v-yilong-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.