# US 2021/0084040 A1 · Automatic reduction of permissions for client applications

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

- Number: US 2021/0084040 A1
- Document ID: US20210084040A1
- Status: Published application
- Kind: A1
- Application number: 16/574,032
- Filed: 2019-09-17
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC.
- Inventors: JEFFREY THOMAS SAKOWICZ; BENJAMIN R VINCENT
- Web page: https://patentgrep.com/patent/US20210084040A1

## CPC

- G06F 21/44: Program or device authentication
- H04L 63/10: {for controlling access to devices or network resources}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 21/629: {to features or functions of an application}
- H04L 63/0807: {using tickets, e.g. Kerberos (cryptographic mechanisms or cryptographic arrangements for entity authentication using tickets or tokens H04L9/3213)}
- H04L 63/0853: {using an additional device, e.g. smartcard, SIM or a different communication terminal (cryptographic mechanisms or cryptographic arrangements for entity authentication involving additional secure or trusted devices H04L9/3234)}
- H04L 63/102: {Entity profiles}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/205: {involving negotiation or determination of the one or more network security mechanisms to be used, e.g. by negotiation between the client and the server or between peers or by selection according to the capabilities of the entities involved (negotiation of communication capabilities H04L69/24)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A least-privilege permission or permissions is automatically assigned to a client application in order to ensure that the client application is able to perform the bare minimum actions on a resource. The client application accesses the protected resource using a web API. The determination of the least-privilege permission(s) is based on actions previously performed on the resource by the client application. The identity provider monitors the actions performed on a resource by the client application and determines the bare minimum permission needed for the client application.

## Claims

### Claim 1

A system comprising:
one or more processors; and a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions that:
provide a client application a permission to access a protected resource hosted by a multi-tenant cloud service;
track requests made by the client application to access the protected resource;
determine from the tracked requests a bare minimum permission needed to implement actions found in the tracked requests; and
reconfigure the client application with the bare minimum permission.

### Claim 2 (depends on 1)

The system of claim 1, wherein the tracked requests include permissions requested by the client application during an authorization process with the multi-tenant cloud service.

### Claim 3 (depends on 1)

The system of claim 1, wherein the tracked requests include permissions made in a web API call to the protected resource.

### Claim 4 (depends on 1)

The system of claim 1, wherein the bare minimum permission includes multiple permissions.

### Claim 5 (depends on 1)

The system of claim 1, wherein the one or more programs include further instructions that provide the client application with a recommended permission for the client application to use in further requests made by the client application.

### Claim 6 (depends on 1)

The system of claim 1, wherein the one or more programs include further instructions that determine the bare minimum permission at a pre-determined time or event interval.

### Claim 7 (depends on 1)

The system of claim 1, wherein the permission is embedded in an access token.

### Claim 8

A device, comprising:
at least one processor and a memory;
wherein the at least one processor is configured to:
provide a client application with an access token, the access token including a permission that allows a plurality of operations to be performed on a resource hosted by a multi-tenant cloud service;
track operations performed on the resource made through one or more web application programming interface (API) calls to the resource, wherein the one or more web API calls include the access token; and
based on the tracked operations, determine a bare minimum permission for the client application, wherein the bare minimum permission reduces a number of the plurality of operations authorized to be performed on the resource.

### Claim 9 (depends on 8)

The device of claim 8, wherein the tracked operations include operations requested by the client application to obtain the access token.

### Claim 10 (depends on 8)

The device of claim 8, wherein the at least one processor is further configured to:
reconfigure the client application to be authorized only for the bare minimum permission.

### Claim 11 (depends on 8)

The device of claim 8, wherein the at least one processor is further configured to:
obtain one or more required permissions associated with the web API, wherein a required permission contains at least one authorized operation to be performed on the resource.

### Claim 12 (depends on 11)

The device of claim 11, wherein the at least one processor is further configured to:
utilize the one or more required permissions to determine the bare minimum permission.

### Claim 13 (depends on 8)

The device of claim 8, wherein the web API is a Representational State Transfer (REST)-based API.

### Claim 14 (depends on 8)

The device of claim 8, wherein the at least one processor is further configured to:
provide a recommendation for the client application to utilize the bare minimum permission.

### Claim 15 (depends on 8)

The device of claim 8, wherein the access token is a JSON web object.

### Claim 16

A method, comprising:
receiving, at a computing device having a processor and a memory, a request for an access token, the access token including a first permission that allows the client application to perform one or more operations on the protected resource;
tracking the operations performed on the protected resource by the client application;
determining a bare minimum permission for the client application based on the tracked operations; and
reconfiguring the first permission to include only the bare minimum permission.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
tracking the operations specified in a web API call to the protected resource.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
tracking the operations requested in the request for the access token.

### Claim 19 (depends on 16)

The method of claim 16, further comprising:
generating a response to the client application recommending the bare minimum permission.

### Claim 20 (depends on 16)

The method of claim 16, further comprising:
embedding the access token in a web API call that initiates an operation on the protected resource.
