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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Stinkys
Frequent Visitor

How long should it take to copy users from Microsoft 365?

G'day all o/

 

I have configured a pipeline data copy with a Microsoft 365 connection. The M365 connection is using a service principle secret on the App Registration that was created when the Workspace identity was created. The app registration has consent for Directory.Read.All API. The application is also registered in Graph Data Connect, configured to use the Fabric capacity with the Lakehouse destination, and with the added dataset BasicDataSet_v0.User_v1. The Graph Data Connect application has been approved.

 

Everything appears to pass the input checks when I run the pipeline, but it seemingly runs forever without showing any signs of pulling any users from directory.

 

How long would you expect this process to run for in a small organisation with well less than 1k users?

6 REPLIES 6
Nero
Advocate II
Advocate II

I had same issue, I left my pipeline to run for 3 days and it still returned no user data and eventually just timed-out.

 

I'm wondering if the issue is due to my Fabric tenancy being in a different region (Australia East) from my Azure tenancy (Australia SouthEast).

 

During the Fabric free trial (which seems to be region-agnostic) I had managed to get this pipeline to work and it completed in less than 30 mins.

 

I would be keen to know the solution if you can figure it out. As a temporary solution I have been able to write python code in a notebook that can reach the MS Graph API using the service principal - (i.e. not using GraphDataConnect) and pull some user data that way.

Stinkys
Frequent Visitor

The same thought had crossed my mind. My Power BI data is listed as Australia Southeast. My Fabric capacity is in Australia East. DevOps has our region as US East 2 which must have been setup in error.

Stinkys
Frequent Visitor

Spent a few days on this now and running out of steam. Here are my environment logistics to see if anyone can assist with debugging why I can't copy users from M365.

 

App Registration & Connection

App registration created and defined service principal for the Connection...

Stinkys_0-1731556041918.png

I understand that explicit API permissions on the App registration are not required as these are handled by Graph Data Connect.

 

Graph Data Connect

Graph Data Connect created in Azure with the appropriate scope for all users all columns in User_v1 recordset...

Stinkys_1-1731556212517.png

Stinkys_2-1731556221408.png

Stinkys_3-1731556230356.png

 

Graph Data Connect Approved

Graph Data Connect is enabled for tenant...

Stinkys_4-1731556285909.png

Application is approved with the defined scope for User_v1 dataset...

Stinkys_5-1731556339113.png

Stinkys_6-1731556381502.png

 

Pipeline & Copy Data

Connection status is online...

Stinkys_7-1731556527540.png

 

Test connection succeeds where Preview times out...

Stinkys_8-1731556842436.png

I have been able to preview results previously, although it would intermittently fail as above.

 

Any experts in chat able to point me in the right direction??

v-kongfanf-msft
Community Support
Community Support

Hi @Stinkys ,

 

To create an Microsoft 365 connection and copy data, the following conditions must first be met.

vkongfanfmsft_0-1731466765792.png


Secondly, check the running log of the corresponding pipeline for any prompts, like below:

vkongfanfmsft_1-1731466951907.png

 

For more details, you can refer to below document:

How to create a Microsoft 365 connection - Microsoft Fabric | Microsoft Learn

Configure Microsoft 365 in a copy activity - Microsoft Fabric | Microsoft Learn

 

Best Regards,
Adamk Kong

 

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

I'm at a bit of a loss with this one. Following this guide Step-by-step: (Microsoft Fabric) Gather a detailed dataset on SharePoint Sites using MGDC | Microsof... and substituting SharePoint for Microsoft365 with Userv1 table, I can step through and create all of the App + Graph Data Connect resources just fine. Again it's approved by my tenant admin, the connector tests OK with the application ID & secret, I am able to pull the column mappings, but when running the pipeline it doesn't show any data transfer and runs indefinitely.

Thanks for the response @v-kongfanf-msft 

 

As you can see here it looks like no data is transferring over 25+ minutes. So there must be a configuration issue somewhere.

 

Stinkys_0-1731475514546.png

 

Retracing my steps with your info provided, I would like to confirm with you if the app registration *needs* to be configured as a web app, and where can I find reference for the Redirect URI's if required? The second link to create an Entra ID application seems to redirect me to the wrong page.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

November Update

Fabric Monthly Update - November 2024

Check out the November 2024 Fabric update to learn about new features.

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! Early Bird pricing ends December 9th.