# US 2022/0292167 A1 · Identifying and consenting to permissions for workflow and code execution

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

- Number: US 2022/0292167 A1
- Document ID: US20220292167A1
- Status: Published application
- Kind: A1
- Application number: 17/825,215
- Filed: 2022-05-26
- Published: 2022-09-15
- Earliest claimed: 2017-10-02
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Sunay Vaishnav; Merwan Vishnu Hade; Stephen Christopher Siciliano; David Nissimoff; FNU Anubhav
- Web page: https://patentgrep.com/patent/US20220292167A1

## CPC

- G06F 21/31: User authentication
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 21/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/604: {Tools and structures for managing or administering access control systems}
- G06F 2212/1052: Security improvement
- G06F 2221/2139: Recurrent verification
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention extends to methods, systems, and computer program products for identifying and consenting to permissions for workflow and code execution. Aspects of the invention can be used to automatically scan a workflow or code definition to identify (potentially all) the actions/triggers a workflow or program intends to perform on behalf of a user. The user is shown the actions/triggers the workflow or program intends to perform (e.g., at a user interface) before consent to perform the actions/triggers is granted. As such, a user is aware of intended actions/triggers of a workflow or program before granting consent. Further, since actions/triggers are identified from the workflow or code definition (and not formulated by an author), permission requests better align with permissions that workflow or program functionality actually uses during execution.

## Claims

### Claim 1

A computer system, comprising:
one or more processors;
memory coupled to the one or more processors and storing instructions executable by the one or more processors to cause the one or more processors to:
scan a workflow definition from which a workflow is to be instantiated to automatically identify one or more of triggers or actions that use a user credential to access a user resource;
generate a machine code generated permission summary based on said scanning, the machine code generated permission summary indicating an intended use of the user credential by the workflow; and
provide the machine code generated permission summary to a consent module that is configured to present the intended use of the user credential to a user and to obtain a user consent to the intended use of the user credential therefrom.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the instructions further comprise instructions configured to cause the processor to:
generate a second machine code generated permission summary from the content of the workflow definition;
determine that the machine code generated permission summary and the second machine code generated permission summary differ; and
responsive to said determining, provide the second machine code generated permission summary to the consent module.

### Claim 3 (depends on 2)

The computer system of claim 2, wherein:
the consent module is further configured to cache the obtained user consent as user consent data; and
the instructions further comprise instructions executable by the one or more processors to cause the one or more processors to, responsive to determining that the machine code generated permission summary and the second machine code generated permission summary differ, evict the user consent data from the cache.

### Claim 4 (depends on 1)

The computer system of claim 1, wherein the instructions further comprise instructions executable by the one or more processors to cause the one or more processors to:
determine that the consent module has not obtained the user consent to the intended use of the user credential; and
responsive to determining that the consent module has not obtained the user consent to the intended use of the user credential, reset user consent data.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the instructions executable by the one or more processors to cause the one or more processors to scan the workflow definition comprise instructions executable by the one or more processors to cause the one or more processors to, for each of the one or more triggers or actions:
locate a description file based on a connection name property of the trigger or action; and
identify metadata from the located description file.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the identified metadata for each of the one or more triggers or actions include one or more of:
a connection name associated with a respective trigger or action;
a path associated with the respective trigger or action; or
a method for performing the respective trigger or action;

### Claim 7 (depends on 5)

The computer system of claim 5, wherein the instructions executable by the one or more processors to cause the one or more processors to generate the machine code generated permission summary based on said scanning comprise instructions executable by the one or more processors to cause the one or more processors to:
consolidate the identified metadata for each of the one or more triggers or actions to generate consolidated metadata; and
generate the machine code generated permission summary based on the consolidated metadata.

### Claim 8 (depends on 1)

The computer system of claim 1, wherein the one or more triggers or actions include one or more of:
a file modification trigger; or
a send email action.

### Claim 9

A method comprising:
scanning a workflow definition from which a workflow is to be instantiated to automatically identify one or more of triggers or actions that use a user credential to access a user resource;
generating a machine code generated permission summary based on said scanning, the machine code generated permission summary indicating an intended use of the user credential by the workflow; and
providing the machine code generated permission summary to a consent module that is configured to present the intended use of the user credential to a user and to obtain a user consent to the intended use of the user credential therefrom.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
generating a second machine code generated permission summary from the content of the workflow definition;
determining that the machine code generated permission summary and the second machine code generated permission summary differ; and
responsive to said determining, providing the second machine code generated permission summary to the consent module.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the consent module is further configured to cache the obtained user consent as user consent data; and
the method further comprises, responsive to determining that the machine code generated permission summary and the second machine code generated permission summary differ, evicting the user consent data from the cache.

### Claim 12 (depends on 9)

The method of claim 9, further comprising:
determining that the consent module has not obtained the user consent to the intended use of the user credential; and
responsive to said determining that the consent module has not obtained the user consent to the intended use of the user credential, resetting user consent data.

### Claim 13 (depends on 9)

The method of claim 9, wherein said scanning the workflow definition comprises, for each of the one or more triggers or actions:
locating a description file based on a connection name property of the trigger or action; and
identifying metadata from the located description file.

### Claim 14 (depends on 13)

The method of claim 13, wherein the identified metadata for each of the one or more triggers or actions include one or more of:
a connection name associated with a respective trigger or action;
a path associated with the respective trigger or action; or
a method for performing the respective trigger or action;

### Claim 15 (depends on 13)

The method of claim 13, wherein said generating the machine code generated permission summary based on said scanning comprises:
consolidating the identified metadata for each of the one or more triggers or actions to generate consolidated metadata; and
generating the machine code generated permission summary based on the consolidated metadata.

### Claim 16 (depends on 14)

The method of claim 14, wherein the one or more triggers or actions include one or more of:
a file modification trigger; or
a send email action.

### Claim 17

A computer program product comprising one or more computer storage devices having stored thereon computer-executable instructions that, when executed at one or more processors, cause a computer system to perform operations, the operations comprising:
scanning a workflow definition from which a workflow is to be instantiated to automatically identify one or more of triggers or actions that use a user credential to access a user resource;
generating a machine code generated permission summary based on said scanning, the machine code generated permission summary indicating an intended use of the user credential by the workflow; and
providing the machine code generated permission summary to a consent module that is configured to present the intended use of the user credential to a user and to obtain a user consent to the intended use of the user credential therefrom.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the operations further comprise:
generating a second machine code generated permission summary from the content of the workflow definition;
determining that the machine code generated permission summary and the second machine code generated permission summary differ; and
responsive to said determining, providing the second machine code generated permission summary to the consent module.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein the operations further comprise:
determining that the consent module has not obtained the user consent to the intended use of the user credential; and
responsive to said determining that the consent module has not obtained the user consent to the intended use of the user credential, resetting user consent data.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein said scanning the workflow definition comprises, for each of the one or more triggers or actions:
locating a description file based on a connection name property of the trigger or action; and
identifying metadata from the located description file.
