Hello CRM superstars!
I am looking for a way to hide the "Related" tab on entity forms for non-Admin users (i.e., specific security roles).
I understand that I can remove all relationships directly from the form customization window (Solution>Entity>Forms>Main Form>Navigation in "Home" tab), and I understand that I can also edit the relationship between two entities directly (Solution>Entity>Relationships>Specific Relationship, then select "Do not Display" as Display Option under "Navigation Pane Item for Primary Entity").
Also, I know that I can make it completely disappear from view if I edit form properties and uncheck "Show Navigation Items" in Page Navigation under Display tab. I do not want to completely hide it for everyone, because sys admins need to access Audit History for records.
We already had to customize certain aspects of the form (for example, show/hide other tabs based on current user's assigned Security Roles), so we got that part of the code down at least.
I am wondering if there is a way to do the same for the "Related" tab (hide it for users who are not Sys Admins so that the regular users do not see it if there is nothing there for them to look at).
Just as an FYI, large majority of our entities, views, attributes, apps, relationships are custom. we have Dynamics 365 on-prem, Version 1612 (9.0.24.8) (DB 9.0.24.8).
Thank you kindly for your suggestions!