Hi, I just want to gather options on how I can update User's Security Roles in BULK. Thanks!
Hi, I just want to gather options on how I can update User's Security Roles in BULK. Thanks!
Hi Everyone, thanks all for your responses. What worked for me is the XRMToolBox's User Role Updater.
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
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.
Hope this helps!
Regards,
Sanjana
You should try using the XrmToolBox https://www.xrmtoolbox.com/ and have a look at the "Role Updater" Plugin
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,552 Super User 2024 Season 2
Martin Dráb 228,552 Most Valuable Professional
nmaenpaa 101,148