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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

I need to update User Security Roles in bulk

(0) ShareShare
ReportReport
Posted on by 1,427

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

  • Suggested answer
    Flydancer Profile Picture
    1,332 on at

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

  • Suggested answer
    Sanjana Ramesh Profile Picture
    Microsoft Employee on at

    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
    Bipin D365 Profile Picture
    28,995 Moderator on at

    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
    MRVIX Profile Picture
    1,427 on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 108 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 79

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 58 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans