Get the roles before triggering the onConnected