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 / How to use Get-AdminPo...
Power Apps
Unanswered

How to use Get-AdminPowerAppEnvironment to retrieve the environments for which a user is an environment admin?

(0) ShareShare
ReportReport
Posted on by 65

Is there a way to use Get-AdminPowerAppEnvironment to retrieve the environments for which a user is an environment admin? if there is another way than Get-AdminPowerAppEnvironment, I'm all eyes.

I have the same question (0)
  • velegandla Profile Picture
    204 Moderator on at

    @DBJ 

     

    PS script does works for me.

    Velegandla_0-1709776155945.png

     

    Other option is configuring the starter kit which does provide the system admins info.

    https://learn.microsoft.com/en-us/power-platform/guidance/coe/setup-core-components 

     

    Power Platform admin view app --> Users --> Security Role Permissions gives all the system admins. 

    Velegandla_1-1709776243503.png

     

    ====================================================

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    https://www.linkedin.com/in/devendravelegandla/ 

     

  • DBJ Profile Picture
    65 on at

    @Velegandla I want to run the script and retrieve the environments for another user. The PS script would not be run as the user, so I would need to pass the user in the command.

       

  • velegandla Profile Picture
    204 Moderator on at

    @DBJ 

     

    The user who got system admin access needs to run it.

     

    Ask the user to run the command below to help authenticate. 

     

    Add-PowerAppsAccount

    Then, the user can run another command.

     

    Or you need to run the script with the Power Platform admin role and get a report for other users. 

     

    ====================================================

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    https://www.linkedin.com/in/devendravelegandla/ 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard