Cloud computing has emerged as one of the most important paradigms in the IT industry for last few years. In general data owners and service providers are not in the same trusted domain in cloud computing. Service providers should not be a trusted one anyhow they are all third party. The system focuses on a novel technique to Hierarchical Attribute Set Based Encryption (HASBE); it is driven by the Cipher Policy Attribute-Based Encryption (CP-ABE) with a hierarchical structure of cloud users. This approach not only achieves scalability, it achieves both flexibility and fine-grained access control of data in cloud.