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

Powershell User Provisioning

(0) ShareShare
ReportReport
Posted on by 45

Hello All!

Has anyone scripted the provisioning of CRM users with PS? I am talking about, approving email, setting mailbox sync options, applying sec roles, etc.

I hunted around (not very hard) for some documentation on supported PS commands and didn't find much. thought I would ask to community before I went too far down a rabbit hole on a Monday.

Thanks!

I have the same question (0)
  • Suggested answer
    Ricardo Gimenez Profile Picture
    on at

    Hello,

    The following script (sample) can help you with role assignation, however must be incremented for the other referenced actions (create user, approve email, set mailbox methods, etc).

    assign_5F00_role.txt

    Please, use this article as reference in order to prepare your PowerShell: 

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/dn689040(v=crm.8)?redirectedfrom=MSDN

    Thanks,

  • jenks540 Profile Picture
    45 on at

    Thanks for that!

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
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans