Notifications
Announcements
No record found.
Hello sdnd2000
Yes, you can hide out-of-the-box (OOB) buttons such as Edit, Subscribe, and others on the SharePoint Document Associated View in Dynamics 365 based on user security roles. However, this requires customization using either JavaScript or the Ribbon Workbench.
Here's a quick overview:
Open Ribbon Workbench in XrmToolBox.
Load your solution that includes the Document Locations or Related Documents entity.
Select the buttons you want to hide (e.g., Edit, Subscribe).
Add a Display Rule:
Use a Custom JavaScript function to check user roles.
Or use a ValueRule with a specific privilege or security role
Publish the changes.
If you found my answer helpful, please mark it as verified.
Thank you! – Krishna
Yes, it is absolutely possible to hide the highlighted buttons ("Document Location", "Open Location", "Add Location", "Edit Location") on the SharePoint Document entity grid based on a user's security role in Dynamics 365. You can achieve this through Ribbon Workbench.
Here's a step-by-step guide on how to do it:
Prerequisites:
Steps:
HideDocumentLocationForNonAdmin
false
Check Privilege
Entity
sharepointdocument
Read
Check User Privilege
Role
OR
true
OrGroup
Finding Security Role GUIDs:
id=
Example Scenario (Hiding "Document Location" for all roles except "System Administrator"):
ShowDocumentLocationForAdmin
Remember to test your changes thoroughly with users assigned to different security roles to ensure the buttons are hidden and visible as expected.
If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems. To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further! Thanks for being an active part of the Dynamics 365 Community!
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 170 Super User 2025 Season 2
#ManoVerse 61
Gerardo RenterÃa Ga... 52 Most Valuable Professional