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

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

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
#ManoVerse Profile Picture

#ManoVerse 101

#2
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans