get role when connecting