# US 2021/0286894 A1 · Dynamic shared data object masking

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

- Number: US 2021/0286894 A1
- Document ID: US20210286894A1
- Status: Published application
- Kind: A1
- Application number: 17/334,315
- Filed: 2021-05-28
- Published: 2021-09-16
- Earliest claimed: 2019-11-27
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Artin Avanes; Khalid Zaman Bijon; Damien Carru; Thierry Cruanes; Vikas Jain; Zheng Mi; Subramanian Muralidhar
- Web page: https://patentgrep.com/patent/US20210286894A1

## CPC

- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/248: Presentation of query results
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F 16/252: {between a Database Management System and a front-end application}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 21/6254: {by anonymising data, e.g. decorrelating personal data from the owner's identification}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A shared database platform implements dynamic masking on data shared between users where specific data is masked, transformed, or otherwise modified based on preconfigured functions that are associated with user roles. The shared database platform can implement the masking at runtime dynamically in response to users requesting access to a database object that is associated with one or more masking policies.

## Claims

### Claim 1

A method comprising:
receiving, from a first client device of a first end-user of a network site, a share masking policy for modifying data in a database object of the network site, the share masking policy comprising a user defined function to initiate a masking operation on the database object in response to an end-user role type of an end-user of the network site requesting access to the database object through the network site;
receiving a request to access the database object from a second client device of a second end-user of the network site;
determining that an end-user role of the second end-user matches the end-user role type in the share masking policy;
applying the user defined function on the database object to generate masked data; and
causing, on the second client device, presentation of the masked data.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving, from the first client device of the first end-user, a database statement that maps the end-user role type to the end-user role of the second end-user, such that data from the database object is masked upon being requested by the second end-user using the network site.

### Claim 3 (depends on 1)

The method of claim 1, wherein the request from the second client device comprises a query.

### Claim 4 (depends on 3)

The method of claim 3, wherein the query comprises a select statement, and wherein the select statement is applied to the masked data.

### Claim 5 (depends on 1)

The method of claim 1, wherein the database object is stored in a first database instance managed by the first end-user, wherein the masked data is hosted on a second database instance managed by the second end-user without copying the database object from the first database instance to the second database instance.

### Claim 6 (depends on 1)

The method of claim 1, wherein the database object comprises is a database view that includes data from one or more external tables that are read-only tables.

### Claim 7 (depends on 1)

The method of claim 1, wherein the share masking policy is received in structured query language (SQL) format and stored in a share masking database.

### Claim 8 (depends on 1)

The method of claim 1, wherein the share masking policy is mapped to the database object.

### Claim 9 (depends on 1)

The method of claim 1, wherein the user defined function (UDF) is one of a plurality of database UDFs that are SQL UDFs, wherein the end-user role type is one of a plurality of end-user role types, and wherein the method further comprises:
receiving, from the first client device, the plurality of end-user role types in a SQL format;
receiving, from the first client device, the SQL UDFs to apply to the database object upon a request to the database object being received from at least one of the plurality of end-user role types; and
storing the plurality of end-user role types and corresponding SQL UDFs as the share masking policy for modifying data of the database object.

### Claim 10 (depends on 1)

The method of claim 1, wherein:
the share masking policy is a first share masking policy; and
the database object is a database view that is mapped to the share masking policy, the database view incorporating data from a database table that is mapped to a second share masking policy.

### Claim 11 (depends on 10)

The method of claim 10, wherein the second share masking policy is implemented on the database table to generate masked table data that is incorporated in the database view, wherein the database view that includes the masked table data is further masked according to the share masking policy to generate the masked data that is displayed on the second client device.

### Claim 12

A system comprising:
one or more processors of a machine; and
a memory storing instructions that, when executed by the one or more processors, cause the machine to perform operations comprising:
receiving, from a first client device of a first end-user of a network site, a share masking policy for modifying data in a database object of the network site, the share masking policy comprising a user defined function to initiate a masking operation on the database object in response to an end-user role type of an end-user of the network site requesting access to the database object through the network site;
receiving a request to access the database object from a second client device of a second end-user of the network site;
determining that an end-user role of the second end-user matches the end-user role type in the share masking policy;
applying the user defined function on the database object to generate masked data; and
causing, on the second client device, presentation of the masked data.

### Claim 13 (depends on 12)

The system of claim 12, the operations further comprising:
receiving, from the first client device of the first end-user, a database statement that maps the end-user role type to the end-user role of the second end-user, such that data from the database object is masked upon being requested by the second end-user using the network site.

### Claim 14 (depends on 12)

The system of claim 12, wherein the request from the second client device comprises a query.

### Claim 15 (depends on 14)

The system of claim 14, wherein the query comprises a select statement, and wherein the select statement is applied to the masked data.

### Claim 16 (depends on 12)

The system of claim 12, wherein the database object is stored in a first database instance managed by the first end-user, wherein the masked data is hosted on a second database instance managed by the second end-user without copying the database object from the first database instance to the second database instance.

### Claim 17 (depends on 12)

The system of claim 12, wherein the database object comprises is a database view that includes data from one or more external tables that are read-only tables.

### Claim 18 (depends on 12)

The system of claim 12, wherein the share masking policy is received in structured query language (SQL) format and stored in a share masking database.

### Claim 19 (depends on 12)

The system of claim 12, wherein the share masking policy is mapped to the database object.

### Claim 20 (depends on 12)

The system of claim 12, wherein the user defined function (UDF) is one of a plurality of database UDFs that are SQL UDFs, wherein the end-user role type is one of a plurality of end-user role types, and wherein the operations further comprise:
receiving, from the first client device, the plurality of end-user role types in a SQL format;
receiving, from the first client device, the SQL UDFs to apply to the database object upon a request to the database object being received from at least one of the plurality of end-user role types; and
storing the plurality of end-user role types and corresponding SQL UDFs as the share masking policy for modifying data of the database object.

### Claim 21 (depends on 12)

The system of claim 12, wherein:
the share masking policy is a first share masking policy; and
the database object is a database view that is mapped to the share masking policy, the database view incorporating data from a database table that is mapped to a second share masking policy.

### Claim 22 (depends on 21)

The system of claim 21, wherein the second share masking policy is implemented on the database table to generate masked table data that is incorporated in the database view, wherein the database view that includes the masked table data is further masked according to the share masking policy to generate the masked data that is displayed on the second client device.

### Claim 23

A machine-readable storage device embodying instructions that, when executed by a machine, cause the machine to perform operations comprising:
receiving, from a first client device of a first end-user of a network site, a share masking policy for modifying data in a database object of the network site, the share masking policy comprising a user defined function to initiate a masking operation on the database object in response to an end-user role type of an end-user of the network site requesting access to the database object through the network site;
receiving a request to access the database object from a second client device of a second end-user of the network site;
determining that an end-user role of the second end-user matches the end-user role type in the share masking policy;
applying the user defined function on the database object to generate masked data; and
causing, on the second client device, presentation of the masked data.

### Claim 24 (depends on 23)

The machine-readable storage device of claim 23, the operations further comprising:
receiving, from the first client device of the first end-user, a database statement that maps the end-user role type to the end-user role of the second end-user, such that data from the database object is masked upon being requested by the second end-user using the network site.

### Claim 25 (depends on 23)

The machine-readable storage device of claim 23, wherein the request from the second client device comprises a query.

### Claim 26 (depends on 25)

The machine-readable storage device of claim 25, wherein the query comprises a select statement, and wherein the select statement is applied to the masked data.

### Claim 27 (depends on 23)

The machine-readable storage device of claim 23, wherein the database object is stored in a first database instance managed by the first end-user, wherein the masked data is hosted on a second database instance managed by the second end-user without copying the database object from the first database instance to the second database instance.

### Claim 28 (depends on 23)

The machine-readable storage device of claim 23, wherein the database object comprises is a database view that includes data from one or more external tables that are read-only tables.

### Claim 29 (depends on 23)

The machine-readable storage device of claim 23, wherein the share masking policy is received in structured query language (SQL) format and stored in a share masking database.

### Claim 30 (depends on 23)

The machine-readable storage device of claim 23, wherein the share masking policy is mapped to the database object.
