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 / read all environment r...
Power Apps
Unanswered

read all environment roles for environments with CDS

(0) ShareShare
ReportReport
Posted on by 34

I tought, I received a simple task when I had to create a list for all our environments and all users with an admin role in those environments.

However, it looks like that both the Power Automate action "List Environment Role Assignments" and the PowerShell Get-AdminPowerAppEnvironmentRoleAssignment command can only return this information for non-CDS environments.

 

So, here I am, please help me, how can I get this info (PowerShell, Flow, Rest API, doesn't matter, anyhow).

thanks

vm

  • AlbertoCastro Profile Picture
    1,201 Most Valuable Professional on at

    Since versión July 2023 of the CoE Starter Kit includes a table "Environment Security Role Permission" where you can see this information.

    albertocaa_0-1693315613294.png

     

     

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

    Regards
    Alberto

  • MartonVilmanyi Profile Picture
    34 on at

    The COE toolkit is using flows, so there must be a way to get this information somehow.

  • jukka-niiranen Profile Picture
    351 on at

    CoE Starter Kit does this via reading data from the Dataverse tables per each environment. You can look at its flows "Admin | Sync Template v3 (Environment Properties)" and "SYNC HELPER - Get Security Role Users" for the logic used in getting the security role assignment information.

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard