
Hi @Ahmid Zadhli
Thank you for reaching out to the Microsoft Q&A Forum.
I understand your frustration with the SensitivityLabel property in Get-PnPTenantSite not being reliably populated when retrieving all sites in bulk. This is a known issue in the PnP PowerShell module [BUG] Get-PnPTenantSite not getting SensitivityLabel property when getting all sites · Issue #1623 · pnp/powershell
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link
However, when you query a specific site using the -Identity parameter, the label is often returned correctly:
Get-PnPTenantSite -Identity "https://yourtenant.sharepoint.com/sites/yoursite"
Your scenario is similar to the one discussed in this article, which explains how to get the sensitivity label assigned to a site. How to get the sensitivity label assigned to the Site? - Microsoft Q&A
I hope this helps! If you have any other questions, feel free to ask.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread