How to custom menu item in file brower

Hi everyone:
I want to hide or remove several items in the default main menu. For example, remove the Setting and Tabs options in the toolbar. If you can decide to show or hide certain options according to the user account, it would be better. It there any relevant documents or demos that i can you refer to ?