Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

I need to update User Security Roles in bulk

(0) ShareShare
ReportReport
Posted on by 1,258

Hi, I just want to gather options on how I can update User's Security Roles in BULK. Thanks!

  • Suggested answer
    MRVIX Profile Picture
    MRVIX 1,258 on at
    RE: I need to update User Security Roles in bulk

    Hi Everyone, thanks all for your responses. What worked for me is the XRMToolBox's User Role Updater.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: I need to update User Security Roles in bulk

    Hi,

    If you want to do it from c# code then use ExecuteMultipleRequest to assign security role to a user in bulk.

    docs.microsoft.com/.../microsoft.xrm.sdk.messages.executemultiplerequest

    docs.microsoft.com/.../microsoft.xrm.sdk.messages.associaterequest

    Please mark my answer verified if i were helpful

  • Suggested answer
    RE: I need to update User Security Roles in bulk

    Hello Marjorie,

    You can come up with a script that gets all rolePrivileges of a security role, add/update new privileges & then call replace privileges.

    links-
    https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.addprivilegesrolerequest?view=dynamics-general-ce-9 
    https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.replaceprivilegesrolerequest?view=dynamics-general-ce-9 

    Additionally, you can also refer below link using XRM toolbox.

    https://nishantrana.me/user-guide-user-security-manager-xrmtoolbox-plugin-for-managing-users-security/ 

    Hope this helps!

    Regards,

    Sanjana

  • Suggested answer
    Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: I need to update User Security Roles in bulk

    You should try using the XrmToolBox https://www.xrmtoolbox.com/ and have a look at the "Role Updater" Plugin

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans