---
title: "Invoke action extractSensitivityLabels"
method: POST
path: "/drives/{driveId}/root/microsoft.graph.extractSensitivityLabels"
tags: ["drives.driveItem"]
---

# Invoke action extractSensitivityLabels

`POST /drives/{driveId}/root/microsoft.graph.extractSensitivityLabels`

## Path parameters

- `driveId` string, required

## Response `2XX`

Success

- ExtractSensitivityLabelsResult
  - `labels` SensitivityLabelAssignment[] — List of sensitivity labels assigned to a file.
    - `assignmentMethod` 'standard' | 'privileged' | 'auto' | 'unknownFutureValue'
    - `sensitivityLabelId` string — The unique identifier for the sensitivity label assigned to the file.
    - `tenantId` string — The unique identifier for the tenant that hosts the file when this label is applied.

## Other responses

- `default` — error

---

[API](https://skmtc.net/ballerina-platform/apis/files.md) · [All operations](https://skmtc.net/ballerina-platform/apis/files/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ballerina-platform/files/versions/c34150e97737/schema)
