Hide buttoncomponent in User Session screen


I currently use cuba platform 6.8.7

I try to hide button (visible =false) in user session screen and I want to create other button , it look like work in studio , but after deploy the project, the button still appear

Is there a way to hide this button ?


  1. If you extended the UserSession browser, you can set visible="false" for this button’s action:
<groupTable id="sessionsTable">
        <action id="message"
        <button id="button"
                caption="My new button"/>
  1. The better solution is using Roles: on the UI tab of Roles editor find the sec$UserSessionEntity.browse screen and set hide for the button you want to hide (for example, sessionsTableMessageBtn).

Yes ,finally I use set by role approach to hide button

Thanks for support!