The logged in user could only use particular tab

Hello,

Is it possible to limit tab access for a user in the module? :face_with_peeking_eye:

For example, we have 4-5 tabs in the accounts module and we have a user XYZ. Now, we want to restrict tab access to user XYZ such that XYZ could only access 2nd tab on the account module. Is it possible to achieve in the simpler way?

Thanks in advance!

I don’t think so, not without customizing or addons.
without customizing: put all questionable fields into a standalone module and create proper rules for accessing this module. relate it to your “main” module.
This way, you have separated “common” data from “protected” data.

With addons:
there are addons that allow to create views per usergroup, you could therefore create a second layout without the tab in question. But: this way, fields will still be available for all users e.g. in reports/exports/listviews…

Thank you so much! I will have to explore more on this.

I’ve used extensions before to restrict permission on field level.
In that way, if all fields in one tab for one role are restricted, the tab is either empty or won’t show in the first place - depending on extension).

But I usually try to avoid extensions if possible to stay upgrade safe.
So my first choice would as well be a custom module with “protected” data.
Unfortunately, a separate module doesn’t always make sense from an architectural point of view.

What all extensions did you use?

maybe this one?

Yes, I believe it was this one.