How to conditionally show/hide Navigation Groups ?

I tried visible() and hidden() method to hide Navigation Group but it does not work. It is only for the Navigation Items, how can i conditionally hide the Navigation Group for example i want to show the Navigation Group to only users who have role admin ?

Please guide !
Was this page helpful?