Skip to main content

Notifications

Power Pages - Administer & Monitor
Suggested answer

Keeping track of DLP Connector Settings

(0) ShareShare
ReportReport
Posted on by
Hello
 
In particular for a DLP policy we have a HTTP connector with many URLs/endpoints
 
Is it possible to use Get-PowerAppDlpPolicyConnectorConfigurations to get the specific connector end points 
 
I'm using 
Get-PowerAppDlpPolicyConnectorConfigurations -TenantId 'xx' -PolicyName 'xx'
 
but the output comes out in a string and believe I need to just parse it into an array, so any tips on doing this? 
sample output
 
{@{connectorId=Http; endpointRules=System.Object[]}, @{connectorId=/providers/Microsoft.PowerApps/apis/shared_webcontents; endpointRules=System.Object[]}}
Categories:
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 1,926 on at
    Keeping track of DLP Connector Settings
    pls try the following:
    # Define your tenant ID and policy name
    $TenantId = 'xx'
    $PolicyName = 'xx'
    # Get the DLP policy connector configurations
    $dlpConfig = Get-PowerAppDlpPolicyConnectorConfigurations -TenantId $TenantId -PolicyName $PolicyName
    # Parse the output
    foreach ($connector in $dlpConfig) {
        # Extract the connector ID
        $connectorId = $connector.connectorId
        # Extract the endpoint rules (if any)
        $endpointRules = $connector.endpointRules
        # Output each connector's information
        Write-Output "Connector ID: $connectorId"
        # Check if endpointRules exists and parse it
        if ($endpointRules -is [System.Array]) {
            foreach ($rule in $endpointRules) {
                Write-Output "  - Endpoint Rule: $($rule.Endpoint)"
            }
        } else {
            Write-Output "  - No Endpoint Rules Defined"
        }
    }
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics