Automatic sidebar rendering

I have a simple app with some pages in the pages folder.
I love how easy is to have the sidebar rendered, however I havent found documentation in how to customize the sidebar.

I have a page which is protected to administrators only, and this shouldnt be rendered in the sidebar.

I tried this:
if is_user_in_group(st.session_state[‘user_groups’], ‘8f34fbb9-f5d2-431b-9cab-504e872912de’):
# Add a link to navigate to “Page 1” if the user is in the specific group
if st.sidebar.button(“Admin”):

However this only renders below the sidebar, the automatic rendered side bar is still there.

Hi @levalencia,

Thanks for sharing your question! Can you update your code snippet to be runnable so we can reproduce the issue you’re seeing?