Hi Experts,
This is the version of the Business Central on-premise that I've been using.

I have a requirement where I must make an action in the menu suite hidden if the user doesn't have access to it.
what I've tried is by creating permission sets that containing the Table Data object type that related to the page of that action (indirect permission), and defines the AccessByPermission property with the Table Data mentioned before. here's the one I'm using.

I can successfully hide the action by using the steps above. but the problem is, all the pages that been using that Table Data can't be accessed anymore.
So, I have another idea, I want to hide the menu again by defining the AccessByPermission property. but this time, the property is defined with the page object type that the users don't have access to it.

but, it has no effect, the action is still visible and the page can be accessed and display all the data in it.
What kind of workaround that I can use to achieve this? any kind of answer will be very much helpful for me.
Thanks in advance.