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 get the user li...
Power Apps
Unanswered

How to get the user list of the Default environment?

(0) ShareShare
ReportReport
Posted on by

Hi,

I have the power platform admin role, how can I get all users from default environment? I can't find a script from power shell.

get-adminpowerappenvironment -default returns default environment, but how can I get the users based on this powershell? or if there is any other powershell commands?

If it is not possible from powershell command, Is that any ways to get this user list from active directory or dataverse table? 

If I click to open the default environment, and then click Users, I can see the user list, but I need to export it to a csv file. 

 

Thanks for any help, much appreciated,

peter

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @CoE ,

    It kind of depends what info you're looking for.

    Do you want to see who are app makers in an environment, who can use apps in an environment, or who can access data in an environment database?  Because they are all quite different.   

    On the portal, "Users" is a list of users that have been assigned Basic User roles for that database in that environment - you don't see that option if the environment you're looking at doesn't have a database.  It also has no bearing on who can run apps in that environment - the answer to which is "anyone an app has been shared with".  Permission to run an app and permission to access the data the app uses are two very different things. 

     

    As far as I know, the basic user role may also not necessarily tell you what tables that user has been assigned access to.  A D365 admin could likely to shed more light on this. 

     

    This script might help you figure out who has built apps in an environment (showing who the makers are), and who those apps have been shared with (showing who the users are).

    Export all PowerApps details and its Role assignments from Tenant in CSV format | PnP Samples

     

    You can also use the COE starter toolkit to run flows that pull info from each environment regularly and pop it into PowerBI for you.  Either install it per the instructions and use it, or install it and go pull apart the flows to see how they work.   You'll notice in here that 'environment makers' is also not extracted from anywhere, but reflected instead based on who creates an app in an environment.

     

    I'm afraid this won't help you get a list of D365 users with access to the database though - for that you have to go into D365 security and extract enabled users for that environment.  This link will help you with the D365 side - although getting to D365 admin in the first place may be a bit of a blind spot for most Power Apps admins if you're not used to it - to get there from Power Apps admin portal, go to an Environment, select "Settings", expand "Users and Permissions" and then "Users" - once the screen loads at the top you should see "Manage users in Dynamics 365" - click that, then when D365 screen loads select top menu item "Run Report" and under that, "Summary Report".

    Good luck!

    WBP

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard