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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

User management automation

(0) ShareShare
ReportReport
Posted on by 10
Greetings !!!
I am writing this post to ask some questions about the possibility of automating Dynamics 365 user management, preferably via PowerShell.
 
New user
 
Is there a way to add a new user (from Entra ID) in Dynamics 365 Environment, assign Business unit and security role by using PowerShell ?
 
 
 
Now it is possible to add new user by using PowerShell module Microsoft.PowerApps.Administration.PowerShell:
Add-AdminPowerAppsSyncUser - EnvironmentName [Guid] -PrincipalObjectId [Guid]
How can I retrieve the list of users in given Environment, a business unit and security roles for each user ?
How can I assign/change Business unit and security role for a user ?
 
Approve email & enable mailbox
 
Is there a way to approve email, test & enable mailbox via PowerShell ?
 
 
 
 
Thank you,
Luca
I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,032 Moderator on at
    Hi,
    This article contains PowerShell commands to work with Dynamics 365 security roles and business units.

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 109

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 61 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 30

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans