Announcements
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.
@DBJ
PS script does works for me.
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.
====================================================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/
@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.
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.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 335 Most Valuable Professional
11manish 165
MS.Ragavendar 96 Super User 2026 Season 1