1. A non-transitory computer readable medium having instructions stored thereon that, when executed by a processor, cause the processor to provide cloud-based identity and access management, the providing comprising: receiving a request from a client for an identity management service; authenticating the request; accessing a microservice based on the request; determining, based on the request, a tenancy of the client, a tenancy of a user related to the request, and a tenancy of a resource related to the request; retrieving data from at least one of the tenancy of the client, the tenancy of the user, or the tenancy of the resource in a database, wherein the data is retrieved by the microservice using a connection pool that provides connections to the database; and performing the identity management service by the microservice using the data; wherein the microservice uses a proxy user to connect to a respective connection in the connection pool and the proxy user represents a tenant in the database.