{"id":9195,"date":"2021-12-16T08:00:19","date_gmt":"2021-12-16T16:00:19","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=9195"},"modified":"2021-12-16T08:59:17","modified_gmt":"2021-12-16T16:59:17","slug":"microsoft-graph-data-connect-demystifying-user-scopes","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/microsoft-graph-data-connect-demystifying-user-scopes\/","title":{"rendered":"Microsoft Graph Data Connect: Demystifying User Scopes"},"content":{"rendered":"<p>Microsoft Graph Data Connect allows you to extract data in bulk from your Microsoft 365 environments using Azure Data Factory pipelines. When creating a pipeline to extract Microsoft 365 data using Microsoft Graph Data Connect, you need to define what I refer to as a \u201cData Contract\u201d. That contract represents the scope, properties and filters that you will apply to the data that you\u2019re retrieving. Users will always need to define what Output columns they wish to extract (e.g. toRecipients and cc Recipients for email messages, ReplyTo and Body for Teams Chat messages, etc.) and for most data sets they will also need to specify a date range for the objects to be extracted. Some of the data sets that are available in Microsoft Graph Data Connect also allow users to specify a user scope for the extraction (e.g. messages data set, Teams chat data set, contacts data set, etc.)<\/p>\n<h3>User Scope<\/h3>\n<p>The user scope option lets you either specify that you wish to extract objects for <em>All users in the Office 365 tenant<\/em> or to <em>Select groups from the Office 365 tenant<\/em>. Selecting the latter option will allow you to select one or more Azure Active Directory Security or Microsoft 365 groups. In talking to customers and partners, we\u2019ve come to realize that there is some confusion around how this user scope option works, and what effect it will have on the resulting data extracted. This article covers different scenarios to set the record straight and help you understand how to properly leverage the user scope in your Microsoft Graph Data Connect solutions.<\/p>\n<h4>Examples<\/h4>\n<p>To better illustrate the functioning of the Microsoft Graph Data Connect user scope, we will be using a few examples we designed using one of our test Microsoft 365 tenant. In our scenarios, we have created a new Azure Active Directory security group named <strong>Alex and Allan<\/strong> which contains two members from our organization: Alex Wilber and Allan Deyoung. Both members have been assigned an Office 365 license and have been exchanging emails with their peers.<\/p>\n<p>We have built an Azure Data Factory pipeline which extracts information using the Microsoft Graph Data Connect <strong>BasicDataSet_v0.Message_v1 <\/strong>data set which represents all emails in users\u2019 mailboxes. We filtered the<em> Output columns <\/em>to only keep the id, from, toRecipients, ccRecipients and bccRecipients fields. In the <em>Date <\/em>filter section, we only selected the past 24 hours as the timespan to retrieve emails based on their sent date. Using the <em>User scope<\/em> option, we selected the newly created security group named <strong>Alex and<\/strong> <strong>Allan<\/strong> as the only group of users to extract information from.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-1.png\"><img decoding=\"async\" class=\"aligncenter wp-image-9196 size-large\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-1-1024x603.png\" alt=\"Overview of the Copy Data activity's source\" width=\"640\" height=\"377\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-1-1024x603.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-1-300x177.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-1-768x452.png 768w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-1.png 1067w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em><span style=\"font-size: 10pt;\">Figure 1: Overview of the Copy Data activity&#8217;s source<\/span><\/em><\/p>\n<p>Now that we have our pipeline defined, let us take a look at various instances of emails revolving around Alex and Allan. The following table summarizes various test emails that were sent across members of our test organization and whether or not these are going to be captured by our pipeline.<\/p>\n<table style=\"width: 73.2708%;\" width=\"619\">\n<tbody>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\"><strong><u>From<\/u><\/strong><\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\"><strong><u>To<\/u><\/strong><\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\"><strong><u>CC<\/u><\/strong><\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><span style=\"font-size: 10pt;\"><strong><u>BCC<\/u><\/strong><\/span><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\"><strong><u>Included by MGDC Messages?<\/u><\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\">J.Smith@external.com<\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\">Patti Fernandez<\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><span style=\"font-size: 10pt;\">Patti Fernandez<\/span><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">J.Smith@external.com<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 85.9209%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>Table 1 \u2013 Scenarios for the messages data set<\/em><\/p>\n<p>From the table above, we can see that we are essentially returning every object where Alex Wilber or Allan Deyoung are at least in the From, To, CC or BCC field even if they include other actors. Only objects that only include actors other than Alex and Allan are being filtered out. Let us now consider the same examples, but this time for the Sent Items data set.<\/p>\n<p>The Sent Items data set only contains emails that were sent from the selected users\u2019 mailboxes. Using this data set over the Messages data set can sometime be a great way to filter noise from external emails and reduce duplication. We can see from Table 1-2 that we are getting different results than with the Messages data set:<\/p>\n<table style=\"width: 73.9334%;\" width=\"619\">\n<tbody>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\"><strong><u>From<\/u><\/strong><\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\"><strong><u>To<\/u><\/strong><\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\"><strong><u>CC<\/u><\/strong><\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><span style=\"font-size: 10pt;\"><strong><u>BCC<\/u><\/strong><\/span><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\"><strong><u>Included by MGDC SentItems?<\/u><\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\">J.Smith@external.com<\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Miriam Graham<\/span><\/p>\n<p><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><span style=\"font-size: 10pt;\">Patti Fernandez<\/span><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><span style=\"font-size: 10pt;\">Patti Fernandez<\/span><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">J.Smith@external.com<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 15.7724%;\" width=\"108\"><span style=\"font-size: 10pt;\">Alex Wilber<\/span><\/td>\n<td style=\"width: 26.6667%;\" width=\"150\"><span style=\"font-size: 10pt;\">Megan Graham<\/span><\/td>\n<td style=\"width: 27.9675%;\" width=\"174\"><\/td>\n<td style=\"width: 15.6098%;\" width=\"102\"><\/td>\n<td style=\"width: 95.4939%;\" width=\"85\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>Table 2 \u2013 Scenarios for the sent items data set<\/em><\/p>\n<p>The third data set is the newly released Inbox data set. This data set represents all emails that are currently sitting in a user\u2019s Inbox folder. It is very important to note that if a user uses folders inside of their mailbox for email classification, the emails in these folders will not be captured by the Inbox data set. The following two screenshots represent Alex Wilber\u2019s mailbox. Figure 2 shows the emails that Alex has stored directly within its Inbox folder, whereas Figure 3 depicts emails are moved under a folder named <em>Project Arkana<\/em>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-2.png\"><img decoding=\"async\" class=\"size-large wp-image-9197 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-2-1024x877.png\" alt=\"Alex Wilber's Inbox folder\" width=\"640\" height=\"548\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-2-1024x877.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-2-300x257.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-2-768x658.png 768w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-2.png 1068w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em><span style=\"font-size: 10pt;\">Figure 2 &#8211; Alex Wilber&#8217;s Inbox folder<\/span><\/em><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-3.png\"><img decoding=\"async\" class=\"aligncenter wp-image-9198\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-3.png\" alt=\"Alex Wilber's Project Arkana folder content\" width=\"699\" height=\"396\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-3.png 941w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-3-300x170.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-3-768x435.png 768w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em><span style=\"font-size: 10pt;\">Figure 3 &#8211; Alex Wilber&#8217;s Project Arkana folder content<\/span><\/em><\/p>\n<p>Let us now configure our Azure Data Factory pipeline and extract emails for today using the Inbox data set. Just like the two previous examples, I am setting a sentDateTime filter to extract only emails for today, and I am using the <strong>User scope<\/strong> filter to only extract items for Alex and Allan.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-4.png\"><img decoding=\"async\" class=\"aligncenter wp-image-9210\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-4-1024x489.png\" alt=\"Inbox pipeline configuration\" width=\"801\" height=\"382\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-4-1024x489.png 1024w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-4-300x143.png 300w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-4-768x366.png 768w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2021\/12\/MGDC-blog_image-4.png 1287w\" sizes=\"(max-width: 801px) 100vw, 801px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><em><span style=\"font-size: 10pt;\">Figure 4 &#8211; Inbox pipeline configuration<\/span><\/em><\/p>\n<p>&nbsp;<\/p>\n<table style=\"width: 77.9673%;\" width=\"636\">\n<tbody>\n<tr>\n<td style=\"width: 16.8521%;\" width=\"108\"><span style=\"font-size: 10pt;\"><strong><u>Folder<\/u><\/strong><\/span><\/td>\n<td style=\"width: 23.6884%;\" width=\"150\"><span style=\"font-size: 10pt;\"><strong><u>From<\/u><\/strong><\/span><\/td>\n<td style=\"width: 31.0016%;\" width=\"198\"><span style=\"font-size: 10pt;\"><strong><u>Subject<\/u><\/strong><\/span><\/td>\n<td style=\"width: 110.99%;\" width=\"180\"><span style=\"font-size: 10pt;\"><strong><u>Included by MGDC Inbox?<\/u><\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.8521%;\" width=\"108\"><span style=\"font-size: 10pt;\">Inbox<\/span><\/td>\n<td style=\"width: 23.6884%;\" width=\"150\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 31.0016%;\" width=\"198\"><span style=\"font-size: 10pt;\">Email from Nestor 1<\/span><\/td>\n<td style=\"width: 110.99%;\" width=\"180\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.8521%;\" width=\"108\"><span style=\"font-size: 10pt;\">Inbox<\/span><\/td>\n<td style=\"width: 23.6884%;\" width=\"150\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 31.0016%;\" width=\"198\"><span style=\"font-size: 10pt;\">Email from Allan 2<\/span><\/td>\n<td style=\"width: 110.99%;\" width=\"180\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.8521%;\" width=\"108\"><span style=\"font-size: 10pt;\">Inbox<\/span><\/td>\n<td style=\"width: 23.6884%;\" width=\"150\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 31.0016%;\" width=\"198\"><span style=\"font-size: 10pt;\">Email from Allan 3<\/span><\/td>\n<td style=\"width: 110.99%;\" width=\"180\"><span style=\"font-size: 10pt;\">\u2714\ufe0f<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.8521%;\" width=\"108\"><span style=\"font-size: 10pt;\">Project Arkana<\/span><\/td>\n<td style=\"width: 23.6884%;\" width=\"150\"><span style=\"font-size: 10pt;\">Allan Deyoung<\/span><\/td>\n<td style=\"width: 31.0016%;\" width=\"198\"><span style=\"font-size: 10pt;\">Email from Allan 1<\/span><\/td>\n<td style=\"width: 110.99%;\" width=\"180\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.8521%;\" width=\"108\"><span style=\"font-size: 10pt;\">Project Arkana<\/span><\/td>\n<td style=\"width: 23.6884%;\" width=\"150\"><span style=\"font-size: 10pt;\">Nestor Wilke<\/span><\/td>\n<td style=\"width: 31.0016%;\" width=\"198\"><span style=\"font-size: 10pt;\">Email from Nestor 2<\/span><\/td>\n<td style=\"width: 110.99%;\" width=\"180\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>Table 3 \u2013 Scenarios for the inbox data set<\/em><\/p>\n<h3>Get Started Today<\/h3>\n<p>Hopefully this article helped shed some light on how the <strong>User scope<\/strong> filter works inside of Microsoft Graph Data Connect and that it helped you better understand the differences between the Messages, Sent Items and Inbox data set. If you want to learn more about Microsoft Graph Data Connect you can refer to our official documentation and tutorials at <a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/data-connect-concept-overview\">Overview of Microsoft Graph Data Connect &#8211; Microsoft Graph | Microsoft Docs<\/a><\/p>\n<p>Happy Coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Graph Data Connect allows you to extract data in bulk from your Microsoft 365 environments using Azure Data Factory pipelines. This article covers different scenarios to help you understand how to properly leverage the user scope in your Microsoft Graph Data Connect solutions.<\/p>\n","protected":false},"author":72603,"featured_media":9248,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[31],"class_list":["post-9195","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","tag-microsoft-graph-data-connect"],"acf":[],"blog_post_summary":"<p>Microsoft Graph Data Connect allows you to extract data in bulk from your Microsoft 365 environments using Azure Data Factory pipelines. This article covers different scenarios to help you understand how to properly leverage the user scope in your Microsoft Graph Data Connect solutions.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/9195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/72603"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=9195"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/9195\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/9248"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=9195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=9195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=9195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}