Hello Kuldeep Raj Tiwari,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your Microsoft Graph Word-to-PDF conversion returning 406 for one user when file has Sensitivity Label.
This error is not just a generic failure, it specifically indicates that the document is protected by a Microsoft Purview sensitivity label, and the Office conversion service cannot process it for export. Even if encryption is not explicitly enabled in the label, certain configurations such as export restrictions or scoped label policies can still block automated conversions. This is a known limitation of the Graph API's /content?format=pdf
endpoint.
Therefore, the reason User A can convert the document while User B cannot is likely due to label policy replication delays or mismatches. Sensitivity labels may not have fully propagated to User B’s client or Graph API context. Additionally, User B might lack the necessary decryption certificate or token, even if they can view the document in Office apps. This discrepancy is common when label policies are scoped to specific groups or users and not uniformly distributed.
To diagnose this issue, start by using Graph Explorer to run GET /me/security/informationProtection/sensitivityLabels
for both users. This will confirm whether the label is available and applicable to each user. Next, use PowerShell to check label policy distribution with Get-LabelPolicy -Identity "YourPolicyName"
and ensure the DistributionStatus
is Success
. If User B’s client is out of sync, use the Unified Labeling Support Tool to reset the label cache and verify certificate availability:
Install-Module UnifiedLabelingSupportTool
UnifiedLabelingSupportTool -Reset Default
Also, verify certificate presence with:
$request = [System.Net.HttpWebRequest]::Create("https://admin.na.aadrm.com/admin/admin.svc")
$request.GetResponse().ServicePoint.Certificate.Issuer
If conversion is essential and encryption is blocking it, consider creating a duplicate sensitivity label without encryption and applying it programmatically using Graph API or Power Automate. - https://community.powerplatform.com/forums/thread/details/?threadid=cdcf8c21-b1e3-ef11-a731-6045bddc79f7
Alternatively, if the label must remain encrypted, use Word Online to manually download the document as PDF via File > Save As > Download as PDF. This method retains sensitivity metadata and bypasses the Graph API limitation.
Finally, Microsoft Graph API cannot completely convert encrypted documents to PDF due to service limitations. Even if a user can view the document, Graph API requires decryption rights, which may not be granted by the label policy. Sensitivity labels are also stripped during conversion, which is another limitation to consider. For automation, use non-encrypted labels or browser-based export methods to ensure consistent results across users.
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.