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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Automate setting of BU

(1) ShareShare
ReportReport
Posted on by

When a person is approved access to Dynamics CRM, we auto-provision users to

  • an AD groups that are tied to licensing
  • an AD Group used as the Security Group for the Environment and
  • an AD Group associated with the CRM Team which gets them their associated permissions

This works great but does not get them assigned to their required BU, which we have to do manually.

Is there a way to automate this?  Is there a spot on the interweb that may outline the technologies and maybe even sample code?

thanks!

I have the same question (0)
  • Suggested answer
    PerezAguiar Profile Picture
    Microsoft Employee on at

    Hey

    On Sean McNellis' github there's an insteresting PowerShell code that automates certain user Operations (adding user, adding user to teams) and even Business Units:

    https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell.Samples/tree/master/UserOperations

    Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans