# US 2021/0279247 A1 · Centralized multi-tenancy as a service in cloud-based computing environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0279247 A1
- Document ID: US20210279247A1
- Status: Published application
- Kind: A1
- Application number: 16/807,763
- Filed: 2020-03-03
- Published: 2021-09-09
- Earliest claimed: 2020-03-03
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Dinesh Kumar; Shashank Mohan Jain
- Web page: https://patentgrep.com/patent/US20210279247A1

## CPC

- G06F 9/5072: {Grid computing}
- G06F 16/252: {between a Database Management System and a front-end application}
- G06F 16/256: {in federated or virtual databases}
- G06F 16/9027: {Trees}
- G06F 16/903: Querying (for retrieval from the web G06F16/953)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some embodiments may be associated with a cloud-based computing environment. A centralized multi-tenancy service may include an application interface to receive a query from one of a plurality of applications. A tenant policy store may contain declarative tenant policies, and a tenant policy manager engine may automatically process the received query based on at least one tenant policy. If the received query is not processed successfully, the centralized multi-tenancy service may return an error message to the application via the application interface. If the received query is processed successfully, the centralized multi-tenancy service may exchange information with a multi-tenant service instance (e.g., a multi-tenant database as a service instance) and return a data result to the application via the application interface.

## Claims

### Claim 1

A system associated with a cloud-based computing environment, comprising:
a centralized multi-tenancy service, including:
an application interface to receive a query from one of a plurality of applications,
a tenant policy store containing declarative tenant policies, and
a tenant policy manager engine to:
automatically process the received query based on at least one tenant policy, and
if the received query is not processed successfully, return an error message to the application via the application interface,
if the received query is processed successfully, exchange information with a multi-tenant service instance and return a data result to the application via the application interface.

### Claim 2 (depends on 1)

The system of claim 1, wherein the multi-tenant service instance is associated with a database as a service.

### Claim 3 (depends on 2)

The system of claim 2, wherein the centralized multi-tenancy service executes in the same physical or virtual machine as the database as a service.

### Claim 4 (depends on 2)

The system of claim 2, wherein the tenant policy is associated with at least one of:
(i) a global constraint policy, (ii) a multi-tenant policy, (iii) an anonymous policy, (iv) a data sharing policy, and (v) temporal policy.

### Claim 5 (depends on 2)

The system of claim 2, wherein the centralized multi-tenancy service further includes:
a query scanner to scan the received query and create a token associated with the query.

### Claim 6 (depends on 5)

The system of claim 5, wherein the centralized multi-tenancy service further includes:
a query parser to receive the token along with a query string and create a query tree.

### Claim 7 (depends on 6)

The system of claim 6, wherein the centralized multi-tenancy service further includes:
a query tree validator to verify that any table or column names in the received query correspond to names in a database being queried, and
a query tree processor to access the tenant policy manager engine and apply the policy to form a modified query tree.

### Claim 8

The system of claim herein the centralized multi-tenancy service further includes:
a query generator to re-generate the query from the modified query tree and exchange the information with the multi-tenant database as a service instance and return the data result to the application via the application interface.

### Claim 9 (depends on 2)

The system of claim 2, wherein the tenant policy manager engine comprises:
a tenant policy scanner to scan the at least one tenant policy to identify tokens in the policy,
a tenant policy parser to parse an input from the tenant policy scanner and create a tenant policy graph in which vertices represent involved artifacts and edges represent possible values using symbolic expression, and
a satistiability solver to determine if an interpretation exists that satisfies a first order logic formula.

### Claim 10 (depends on 9)

The system of claim 9, wherein the satisfiability solver generates at least one of:
(i) a true indication that results in the policy being stored, (ii) a false indication that results in a request for correction, and (iii) a warning that can be over-ridden by a database administrator.

### Claim 11

A computer-implemented method associated with a cloud-based computing environment, comprising:
receiving, via an application interface of a centralized multi-tenancy service, a query from one of a plurality of applications;
retrieving, by a tenant policy manager engine from a tenant policy store that contains declarative tenant policies, at least one tenant policy;
validating, by the tenant policy manager engine, the received query based on the at least one tenant policy;
if the received query is not processed successfully, returning art error message to the application via the application interface; and
if the received query is processed successfully, exchanging information with a multi-tenant service instance and returning a data result to the application via the application interface.

### Claim 12 (depends on 11)

The method of claim 11, wherein the multi-tenant service instance is associated with a database as a service.

### Claim 13 (depends on 12)

The method of claim 12, wherein the centralized multi-tenancy service executes in the same physical or virtual machine as the database as a service.

### Claim 14 (depends on 12)

The method of claim 12, wherein the tenant policy is associated with at least one of: (i) a global constraint policy, (ii) a multi-tenant policy, (iii) an anonymous policy, (iv) a data sharing policy, and (v) temporal policy.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
scanning, by a query scanner of the centralized multi-tenancy service, the received query and creating a token associated with the query.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
receiving, by a query parser of the centralized multi-tenancy service, the token along with a query string and creating a query tree.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
verifying, by a query tree validator of the centralized multi-tenancy service, that any table or column names in the received query correspond to names in a database being queried; and
accessing, by a query tree processor of the centralized multi-tenancy service, the tenant policy manager engine and applying the policy to form a modified query tree.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
re-generating, by a query generator of the centralized multi-tenancy service, the query from the modified query tree and exchanging the information with the multi-tenant database as a service instance and returning the data result to the application via the application interface.

### Claim 19

A non-transitory, computer readable medium storing instructions that, when executed by a computer processor cause the computer processor to perform a method associated with a cloud-based computing environment, the method comprising:
receiving, via an application interface of a centralized multi-tenancy service, a query from one of a plurality of applications;
retrieving, by a tenant policy manager engine from a tenant policy store that contains declarative tenant policies, at least one tenant policy;
validating, by the tenant policy manager engine, the received query based on the at least one tenant policy;
if the received query is not processed successfully, returning an error message to the application via the application interface; and
if the received query is processed successfully, exchanging information with a multi-tenant service instance and returning a data result to the application via the application interface.

### Claim 20 (depends on 19)

The medium of claim 19, wherein the method further comprises:
scanning, by a tenant policy scanner of the tenant policy manager engine, the at least one tenant policy to identify tokens in the policy;
parsing, by a tenant policy parser of the tenant policy manager engine, an input from the tenant policy scanner and creating a tenant policy graph in which vertices represent involved artifacts and edges represent possible values using symbolic expression; and
determining, by a satisfiability solver of the tenant policy manager engine, if an interpretation exists that satisfies a first order logic formula.

### Claim 21 (depends on 20)

The medium of claim 20, wherein the satisfiability solver generates at least one of: (i) a true indication that results in the policy being stored, (ii) a false indication that results in a request for correction, and (iii) a warning that can be over-ridden by a database administrator.
