Forum Discussion
Purview Assign Label using GraphAPI premium
- May 12, 2025
Hello Ankit365,
Thanks for providing this check list.
Since I've posted this question, I've gone this whole list again and figured out that AipService was not enabled in my tenant and that was the culprit.
I wanted to close this question but I wasn't able to do so.
Sorry for that.
Thanks for your time!
I would first check for Prereq before diving into specifics
1: Metered API Access: You've enabled metered APIs for your application. This involves associating your app registration with an Azure subscription to allow billing for metered API usage.
2: Appropriate Permissions: Your application has been granted the necessary permissions, such as Files.ReadWrite.All or Sites.ReadWrite.All.
3: Supported File Types: You're attempting to label supported file types, specifically Office documents (.docx, .xlsx, .pptx) and PDFs. Note that older Office formats like .doc, .xls, and .ppt are not supported.
4: Sensitivity Labels Published: The sensitivity labels you're trying to apply are published and available to the users or groups in question.
5: IRM Settings: Information Rights Management (IRM) is not interfering with the labeling process. Ensure that IRM is appropriately configured or disabled if necessary.
Hello Ankit365,
Thanks for providing this check list.
Since I've posted this question, I've gone this whole list again and figured out that AipService was not enabled in my tenant and that was the culprit.
I wanted to close this question but I wasn't able to do so.
Sorry for that.
Thanks for your time!