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