Practical Graph: Assign Sensitivity Labels to SharePoint Online Files
Microsoft released Graph APIs to read and assign sensitivity labels in 2023. At the time, it was difficult to work with the assignSensitivityLabel API. Now it's easier, and this article explains how to use PowerShell with the API to assign labels to files in a SharePoint Online document library.