Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

Creating DLP Policy with PowerShell module

Like (0) ShareShare
ReportReport
Posted on 21 Mar 2019 15:43:02 by 34

I'd like to use the PowerApps.Admin PowerShell module to create a DLP policy but I'm not sure where to find the appropriate "ConnectorName" needed for the Add-ConnectorToBusinessDataGroup.  In the exampe provided by the Get-Help cmdlet, the connector name used "shared_office365users", but when I get an existing policy it has a display name "Office 365 Users".  Is there a documented list of the api names for all of the connectors? And what about a custom connector, is there an easy way to look that up?

 

 PS C:\>Add-ConnectorToBusinessDataGroup -PolicyName e25a94b2-3111-468e-9125-3d3db3938f13 -ConnectorName shared_office365users
Categories:
  • TonyMcg1 Profile Picture
    50 on 02 Aug 2019 at 14:23:24
    Re: Creating DLP Policy with PowerShell module

    Doing the same here, but can't seem to find the Powershell commands to add an enviroment to a DLP, remove an Environment form a DLP (and /or Exclude environemtns form th tenant DLP).

    th eonly one I think might be related is : 

       Set-AdminDlpPolicy

     

    But see no documentation on this.

     

    and if you have links to detail sdescription , and how to use all the PowerApp Powershell command it would be great

  • ninocapo Profile Picture
    34 on 09 Apr 2019 at 19:39:26
    Re: Creating DLP Policy with PowerShell module

    Thanks @Jeff_Thorpe ... I was trying to create a policy using the new "2018-11-01" schema.  All the docs a very confusing.  What I've found was that if you set your scheema to "2018-11-01", the Add-ConnectorToBusinessData no longer works.  You then need to use the Add-CustomConnectorToPolicy cmdlet to add the non-custom connectors.  What I'm finding now is that you can only use the new schema on tenant-wide policies and not on the individual environment policies.

     

    Lastly, I found a list of connectors published on this blog post:
    https://powerapps.microsoft.com/en-us/blog/gdpr-admin-powershell-cmdlets/

     

    This is great, but this same doc is post in the PowerApps doc site, but the link to the connector list is broken in the doc site.

    https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell#operation-examples

     

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on 23 Mar 2019 at 13:57:54
    Re: Creating DLP Policy with PowerShell module

    You can quickly grab the internal name (which looks like guid) of the policy by going to the PowerApps Admin center and clicking Data Policies. Click on the policy you are looking for and in the URL you will see the internal name which will be the value after "/apiPolicies/".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard

Featured topics

Loading started