Skip to main content

Notifications

Announcements

No record found.

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!

  • Suggested answer
    PerezAguiar Profile Picture
    PerezAguiar on at
    RE: Automate setting of BU

    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans