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

View all the Fabric Data Days sessions on demand. View schedule

Reply
jesualli
Microsoft Employee
Microsoft Employee

Admin data policy 'dlpPolicy' restricts use of shared_onedrive with shared_office365

Hi! This DLP policy error has appeared pretty late into my flow creation about a week after the elements coausing it had been added and after many tests. Is there a reason it is appearing so late and anyway around it besides applying for a custom DLP policy?

 

Full error: Admin data policy 'dlpPolicy' restricts the use of /providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness with /providers/Microsoft.PowerApps/apis/shared_office365. 

1 ACCEPTED SOLUTION
burakkaragoz
Community Champion
Community Champion

Hi @jesualli ,

 

This error means your environment has a Data Loss Prevention (DLP) policy that blocks using OneDrive and Office 365 connectors together in the same flow. That’s why you’re seeing:

Admin data policy 'dlpPolicy' restricts the use of shared_onedrive with shared_office365

Why it appeared late:

Sometimes DLP policies are updated after a flow is created, or the policy enforcement kicks in only when the flow is saved or revalidated. That’s why it might not have shown up during your earlier tests.

What you can do:

  • Option 1: Move your flow to an environment without this DLP restriction (if available).
  • Option 2: Ask your admin to create a custom DLP policy that allows these connectors together.
  • Option 3: Redesign the flow to avoid using both connectors in the same flow.

📘 Full details on DLP policies and connector groups:
Microsoft Learn 

Let me know if you need help checking which connectors are blocked in your environment.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

Translation and text editing supported by AI

View solution in original post

7 REPLIES 7
v-echaithra
Community Support
Community Support

Hi @jesualli ,

We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.

Best Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @jesualli ,

We would like to confirm if you've successfully resolved this issue or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.

Thank you for your patience and look forward to hearing from you.
Best Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @jesualli ,

As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.

If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.

Thank you for your patience and look forward to hearing from you.
Best Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @jesualli ,

As you mentioned you're encountering a Data Loss Prevention (DLP) policy issue that restricts the use of shared_onedrive with shared_office365 in Power App it might be due to restricted connectors. To resolve this, check the error message for details on the violating connectors and review your DLP policies in the Power Platform admin center. If you have admin privileges, modify the policy to allow the necessary connectors. If not, contact your Power Platform admin to request changes.
Your administrator has applied what is known as a Data Loss Prevention (DLP) policy which is causing the error.
Connectors can be categorized as either Business, Non Business or Blocked. DLP prevents users from using blocked connectors w or a combination of both business and non business connectors within the same flow. Based on the error above, you have used a combination of both business (shared_commondataserviceforapps) and non business connectors (sharedoffice365).


DLP policies are designed to protect your organization's data by controlling which connectors can be used together.

Go to Power Platform admin Center:
Navigate to Data policies > view all policies
Open each policy and:
check which environments it applies to.
Look under connector groups to see where OneDrive for Business and office 365 outlook are classified.
The blocking rule exists if they are in separate groups, ensure both OneDrive and Office365 connectors are in the same group.

Best Regards,
Chaithra

burakkaragoz
Community Champion
Community Champion

Hi @jesualli ,

 

This error means your environment has a Data Loss Prevention (DLP) policy that blocks using OneDrive and Office 365 connectors together in the same flow. That’s why you’re seeing:

Admin data policy 'dlpPolicy' restricts the use of shared_onedrive with shared_office365

Why it appeared late:

Sometimes DLP policies are updated after a flow is created, or the policy enforcement kicks in only when the flow is saved or revalidated. That’s why it might not have shown up during your earlier tests.

What you can do:

  • Option 1: Move your flow to an environment without this DLP restriction (if available).
  • Option 2: Ask your admin to create a custom DLP policy that allows these connectors together.
  • Option 3: Redesign the flow to avoid using both connectors in the same flow.

📘 Full details on DLP policies and connector groups:
Microsoft Learn 

Let me know if you need help checking which connectors are blocked in your environment.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

Translation and text editing supported by AI

Thx for your help! Can you offer some more guidance regarding creating a Custom Policy. I am filling out this form to change my environment's policy but it looks like policies are already set. How can i find the definitions of teh policies and know which one is the right for my environment?Information Protection Engagement - Power Apps

Also how do i know which DLP policy is enforcing this rule? Their are multiple tenant-level policies that are being applied to this environment.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.