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,474 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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,161

Leaderboard

Featured topics