E-health is the delivery of health information, for health professionals and health consumers, through the internet. Nowadays internet-based system deployment is used in medical field due to advantages it has to offer. All the information like patient test results, diagnosis and others are stored in the database. In this paper we discuss the e-health data management system and proposed a security mechanism on how to secure the retrieving of the data in the database. Here proposed a scheme to authenticate the users and give them the right to access base on ser, role, session, permission, constraints and tasks.