Comments on: Practical Graph: Assign Sensitivity Labels to SharePoint Online Files https://practical365.com/assignsensitivitylabel-api/ Practical Office 365 News, Tips, and Tutorials Mon, 19 Aug 2024 08:48:20 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_298004'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_298004"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/assignsensitivitylabel-api/#comment-298004 Mon, 19 Aug 2024 08:48:20 +0000 https://practical365.com/?p=60934#comment-298004 In reply to Ophir.

Being able to assign sensitivity labels through Office 365 means nothing except that the steps to enable sensitivity labels within your tenant have been taken. We’re dealing with a different app here (your app) and it’s that app must must be authorized to use the assignSensitivityLabels API.

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_298003'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_298003"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/assignsensitivitylabel-api/#comment-298003 Mon, 19 Aug 2024 08:46:43 +0000 https://practical365.com/?p=60934#comment-298003 In reply to Ophir.

The app that you’re using must be associated with an Azure subscription so that you can pay to use the API. If this isn’t done, the API won’t work. Something is obviously missing in the setup that you’re using. As I can’t see your setup, I can’t be much more help than to say you should check every aspect of the setup you’re using (app, permissions, subscription, API call) to be 100% positive that something small is not amiss.

]]>
By: Ophir https://practical365.com/assignsensitivitylabel-api/#comment-298000 Mon, 19 Aug 2024 08:27:23 +0000 https://practical365.com/?p=60934#comment-298000 Yes, through the Office365 Portal.

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_297878'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_297878"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/assignsensitivitylabel-api/#comment-297878 Thu, 15 Aug 2024 13:13:41 +0000 https://practical365.com/?p=60934#comment-297878 In reply to Ophir.

And the app you are using to assign sensitivity labels is associated with an Azure subscription? You can’t assign sensitivity labels with delegated permissions.

]]>
By: Ophir https://practical365.com/assignsensitivitylabel-api/#comment-297875 Thu, 15 Aug 2024 11:11:54 +0000 https://practical365.com/?p=60934#comment-297875 Yes, I’m able to label them just normal via the Office365 editor.

]]>
By: <div class="apbct-real-user-wrapper"> <div class="apbct-real-user-author-name">Tony Redmond</div> <div class="apbct-real-user-badge" onmouseover=" let popup = document.getElementById('apbct_trp_comment_id_297863'); popup.style.display = 'inline-flex'; "> <div class="apbct-real-user-popup" id="apbct_trp_comment_id_297863"> <div class="apbct-real-user-title"> <p class="apbct-real-user-popup-header">The Real Person!</p> <p class="apbct-real-user-popup-text">Author <b>Tony Redmond</b> acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.</p> </div> </div> </div> </div> https://practical365.com/assignsensitivitylabel-api/#comment-297863 Wed, 14 Aug 2024 16:46:58 +0000 https://practical365.com/?p=60934#comment-297863 In reply to Ophir.

Never had a problem with standard Word documents… I assume you can apply a sensitivity labels to these files by opening them in Word?

]]>
By: Ophir https://practical365.com/assignsensitivitylabel-api/#comment-297862 Wed, 14 Aug 2024 16:11:03 +0000 https://practical365.com/?p=60934#comment-297862 In reply to Tony Redmond.

Standard docx files…
Thanks for the response 🙂

]]>
By: Tony Redmond https://practical365.com/assignsensitivitylabel-api/#comment-297860 Wed, 14 Aug 2024 14:02:18 +0000 https://practical365.com/?p=60934#comment-297860 In reply to Ophir.

Nope. Haven’t seen that one before. What type of file are you processing?

]]>
By: Ophir https://practical365.com/assignsensitivitylabel-api/#comment-297858 Wed, 14 Aug 2024 13:22:51 +0000 https://practical365.com/?p=60934#comment-297858 Hi Tony, great post!

I’ve run into an issue with the assignSensitivityLabel API. I’m getting this error:
{
“error”: {
“code”: “notSupported”,
“message”: “Sensitivity label cannot be assigned due to unsupported feature.”,
“innerError”: {
“code”: “unprocessableEntity”
}
}
}
Any idea what might be causing this? Have you seen it before?

Thanks!

]]>