Cloud is a model of computing providing on-demand availability of computer system resources, mainly data storage and computing power, without the user’s active management. This provides sharing and reduces user computing and storage costs. With the development of cloud scale and intensification, cloud security is becoming a vital issue in the cloud computing field. Here, a newly optimised hybridisation algorithm, namely, Shuffled Shepherd Fire Hawk Optimization (SSFHO) algorithm is proposed for key generation to initiate privacy protection in the cloud. The different entities involved in this approach are Data Owner (DO), Data User (DU), blockchain, and Cloud Service Provider (CSP). Here, the access control process includes seven categories, such as initialisation, registration, generation of key, data access control, authorisation, authorisation revocation and data protection. Also, registration is done in three phases, like registration of cloud, registration of user and resource publishing. Moreover, SSFHO is the integration among Shuffled Shepherd Optimization Algorithm (SSOA) and Fire Hawk Optimization (FHO) algorithm. The performance of the model is done with various performance metrics like, authorisation time, privacy rate, and memory. These revealed high values of privacy rate of 0.93, low values of authorisation time and memory of 0.559 and 0.843 GHz.