An API that connects multiple Microsoft services, enabling data access and automation across platforms
For GET /drives/{drive-id}/items/{item-id}?$select=id with only delegated Lists.SelectedOperations.Selected plus User.Read, the documented contract supports authorization from these grant locations:
- List item: supported.
ListItems.SelectedOperations.Selectedis documented as managing access at the files, list item, or folder level, providing access to one or more list items. - File: supported.
In SharePoint, all files are list items. The documentation states that an app withListItems.SelectedOperations.Selectedcan access and operate on all list items and files up to its allowed role. - Folder: supported as a grant target, but only for the folder resource itself.
The scope is documented as managing access at the files, list item, or folder level. The provided context does not state that a folder-level grant alone authorizes access to descendant files for this scope.
The documented contract in the provided material does not support these locations for this exact scope:
- Library/list: not documented for
ListItems.SelectedOperations.Selected.
List-level grants are associated withLists.SelectedOperations.Selected, which is a different scope. - Site: not documented for
ListItems.SelectedOperations.Selected.
Site-level grants are associated withSites.Selected, which is a different scope.
Location-to-scope matrix for the exact scope asked:
| Grant location | Documented as grantable for Lists.SelectedOperations.Selected? |
Documented as grantable for ListItems.SelectedOperations.Selected? |
Documented to authorize reading one file with only ListItems.SelectedOperations.Selected? |
|---|---|---|---|
| Site | No | No | No |
| Library/List | Yes | No | No |
| Folder | No | Yes | Only for the folder itself; descendant-file authorization is not documented |
| File | No | Yes | Yes |
| List item | No | Yes | Yes, and files are included because files are list items |
Key distinction between inheritance and scope-specific authorization:
- The documentation separates where a permission can be assigned from which scope allows that resource type.
- It states that assigning application permissions to lists, list items, folders, or files breaks inheritance on the assigned resource. That confirms those resources can carry their own permission assignments.
- It also states that site collection permissions are the root of inheritance and do not break inheritance.
- But the scope table still binds each Selected scope to its own resource level:
-
Sites.Selected→ site collection -
Lists.SelectedOperations.Selected→ list -
ListItems.SelectedOperations.Selected→ files, list items, folders -
Files.SelectedOperations.Selected→ files
-
- Nothing in the provided documentation says that a grant recorded on a parent at one resource level can authorize access when the token lacks the corresponding Selected scope for that parent level.
For a no-grant denial test limited to the documented contract for delegated access to a single file with only ListItems.SelectedOperations.Selected, the source grant locations that must be checked are:
- the file itself
- the corresponding list item
A folder grant is documented only as a valid target resource for that scope, not as a documented parent authorization path for a child file. A list grant would require Lists.SelectedOperations.Selected. A site grant would require Sites.Selected.
Undocumented limitation in the provided material:
- The provided context does not contain a documented rule that a folder grant with
ListItems.SelectedOperations.Selectedflows to child files. - The provided context also does not contain a documented “how access is calculated” matrix mapping parent grant location to child-file access for delegated
ListItems.SelectedOperations.Selected. - Therefore, any claim that list, site, or folder grants authorize the file read without their matching scope would be an observed behavior claim, not a documented contract from the provided sources.
One terminology correction: the exact scope that the documentation ties to file, folder, and list item grants is ListItems.SelectedOperations.Selected, not Lists.SelectedOperations.Selected. Lists.SelectedOperations.Selected is the list-level scope.
References: