web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot retrieve Connec...
Power Apps
Answered

Cannot retrieve Connectors for a non-default environment

(0) ShareShare
ReportReport
Posted on by 22

Hi,

 

I'm trying to retrieve connectors for a specific environment that is not the Default environment. I've tried the PowerShell Cmdlet Get-AdminPowerAppConnector which will retrieve connectors for the Default environment but returns nothing for other environments. I've tried the same using Power Automate using the "Get Custom Connectors as Admin" Action, this returns nothing also.

 

I've even tried using the Azure management API call which I guess the two above are based on, this also returns correctly for the Default environment but returns nothing for others.

 

I need the connector information as I want to add a custom connector to a DLP for a specific environment and using PowerShell or Power Automate connectors is the only way to do this.

 

Any ideas for how to resolve this would be appreciated.

 

regards


Terry

  • Verified answer
    tchagan9876 Profile Picture
    22 on at

     

    I found a work around for this by using the Get-AdminPowerAppConnection  with the -EnvironmentName parameter set to my environment where the custom connector is.

     

    This returns a list of the connections, including the custom connector. The ConnectorName and FullConnectorName properties can then be used with the Add-CustomConnectorToPolicy cmdlet, the ConnectorName property is used with the -ConnectorName parameter and the FullConnectorName property is used with the -ConnectorId parameter.

     

    My reason for doing this is using the Power Platform CoE Starter Kit specifically setting up the audit log connector https://docs.microsoft.com/en-gb/power-platform/guidance/coe/setup-auditlog

     

    The audit log custom connector must be added to the DLP for the environment the CoE starter kit is running on.

     

    Hopefully this may help others setting up the kit.

     

    regards

    Terry

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard