Issue
- There are items in the User Personal Bar by default that we aren't using or don't want users to access.
- We want to remove these items without creating a custom module.
Environment
- Liferay DXP 7.2
- Liferay DXP 7.3
- Liferay DXP 7.4
Resolution
-
There are two different configuration areas that control the items listed by default.
-
My Sites, My Profile, and My Dashboard
1. Log in as an Administrator
2. Go to Control Panel > Infrastructure > Module Container
2.1. In DXP 7.4, Navigate to System Settings> Platform> Module Container> Component Blacklist
3. Choose the second item in the list on the left, Component Blacklist
4. Click the + icon to make three separate entries (if you want to remove all three, click the - icon)com.liferay.users.admin.web.internal.product.navigation.personal.menu.MyDashboardPersonalMenuEntry
5. Save the changes and the items will be gone.
com.liferay.users.admin.web.internal.product.navigation.personal.menu.MyProfilePersonalMenuEntry
com.liferay.product.navigation.site.administration.internal.menu.MySitesPersonalMenuEntry
Two things to note here. First, this will remove the entries from the personal menu for all users. Second, if you decide you want to restore one of these items to the menu you need to of course remove this entry, but removing blacklisted items doesn't bring them back immediately. You will need to restart the service, which is most easily done with a reboot. So once an item is blacklisted, it can't be "unblacklisted" without a restart.
-
Notifications, Shared Content, My Submissions, My Workflow Tasks, Account Settings, My Connected Applications, My Organizations
These items can be controlled via Permissions on the Role.
1. Log in as the Administrator.
2. Go to Control Panel > Roles.
3. Click on the User role.
4. Across the top you should see a tab/option for Define Permissions.
5. On the left, scroll to the bottom and expand the User section.
6. For each item in this list:
7a. Click on the item and scroll up in the middle of the screen (the details are normally above the fold).
7b. Uncheck the option Access in Personal Menu.
7c. Click Save.
8. Repeat for all the items in the User section that you want to remove.This will only affect users with the "User" role. If you want to apply it to other roles like Power User, etc., you need to repeat these steps for those roles as well. These items cannot be removed for the Administrator because that role is special and has no restrictions anywhere.