web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,027 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans