Is there a way to prevent users from changing column arrangement via roles?
We need to manage users such way, so they are unable to change table/grid arrangement unless they have specific role.
Like
Davit Gharagebakyan,
I believe currently there's no way to do this without some some CSS tricks. I typically add some code that executes globally and adds an attribute to the body tag - in this case you'd check if the user is a member of a role, then add the tag, so the body is something like this:
<body user-is-admin="true" .... >
Then add CSS globally that will only apply if that attribute is true.
Here's an article with a similar approach that does this for portal (external) users only (instead of checking if the user is a portal user, you'd check if the user is in the role) https://customerfx.com/article/applying-global-css-styles-in-the-creatio-portal-formerly-bpmonline/
As far as the CSS to hide the ability to modify the list columns, that would be this (assuming you want this to apply to all lists) - Note, this HIDES the ability to edit the list layouts:
crt-data-table crt-button[data-qa="add-columns-button"], crt-data-table crt-button.crt-column-toolbar { display: none; }
Ryan