Show specific group accordingly the login

Can I disable some group accordingly the login? A person X will login, and will be showed to him a specific group (without the side-bar). And a person Y will login too, and will be showed to him another specific group. I'm using the httpNodeAuth to set a user and a password in the dashboard.
image