Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
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

Categories:
  • jukka-niiranen Profile Picture
    351 on at
    Re: read all environment roles for environments with CDS

    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.

  • MartonVilmanyi Profile Picture
    34 on at
    Re: read all environment roles for environments with CDS

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

  • AlbertoCastro Profile Picture
    1,186 Most Valuable Professional on at
    Re: read all environment roles for environments with CDS

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics