Have a view to change view permissions

i need to have a view that can change views permissions
scenario:
i have a role called "super admin" that has highest level access. i need a page that this role can see it. (i already managed this section).
now i need a page that contain all view list and by click or select each item(view) show a pop up to change selected view permission (as it show in designer page permission) . then after change view permissions i should click on a save button to apply changes.

There is no API to do this. You would have to manipulate the view.json definitions directly in the filesystem. Good luck.

thank you for your response, could you please provide more details or something like step by step solution?

I've never done it, and I know of no such actions shared here on the forum. And I have no desire to do so. (I'm not a fan of self-modifying applications.)

1 Like

If you look at a View's JSON that has permissions defined, you can see how you will need to structure these which should give you enough to go by to go about modifying your selected views.

To get the list of security levels, see this topic.

To get the install directory so that you can edit your view definitions, see this topic

1 Like