|
1 |
| ---- |
2 |
| -layout: page |
3 |
| -title: 'Site classification with PnP' |
4 |
| -menubar: docs_menu |
5 |
| -image: 'https://unsplash.com/s/photos/random' |
6 |
| -hero_image: '/img/IMG_20220521_140146.jpg' |
7 |
| -show_sidebar: false |
8 |
| -hero_height: is-small |
9 |
| -date: '2022-05-16' |
10 |
| ---- |
11 |
| - |
12 |
| -## First: Enable the capability |
13 |
| -Site classification has to be enabled at the Azure AD level. |
14 |
| -After enabling the site classification capability at the Azure AD level, you see an additional field *How sensitive is your data?* while creating new sites. Site classification allows you to define the sensitivity of your data on site level and group your sites based on the sensitivity of the information they contain. |
15 |
| - |
16 |
| -You can enable the capability using [**Enable-PnPSiteClassification**](https://pnp.github.io/powershell/cmdlets/Enable-PnPSiteClassification.html) cmdlet. |
17 |
| - |
18 |
| -If you are interested in more details, you can find them in a more dev-oriented [Implement Sharepoint site classification solution Guidance](https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/implement-a-sharepoint-site-classification-solution) from Microsoft. |
19 |
| - |
20 |
| -If you are getting any errors at this point, you may want to resort to AzureADPreview Powershell module and check your AD settings for any existing templates, using [**Get-AzureADDirectorySetting**](https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaddirectorysetting?view=azureadps-2.0-preview) cmdlet. |
21 |
| - |
22 |
| -### Troubleshoot with AzureADPreview module |
23 |
| -``` |
24 |
| -# Install the Azure AD Preview Module for PowerShell |
25 |
| -Install-Module AzureADPreview |
26 |
| -
|
27 |
| -# Connect to Azure AD |
28 |
| -Connect-AzureAD |
29 |
| -
|
30 |
| -# Get existing settings |
31 |
| -Get-AzureADDirectorySetting |
32 |
| -``` |
33 |
| - |
34 |
| -<img src="/articles/images/classification8.PNG" width="400"> |
35 |
| - |
36 |
| - |
37 |
| -If you see any existing settings like in the screenshot above, probably someone else in your organization already set them. |
38 |
| - |
39 |
| - |
40 |
| -## Verify the existing site classification |
41 |
| - |
42 |
| -### Using PnP |
43 |
| -Use **Get-PnPSiteClassification** cmdlet to retrieve the existing site classification settings. As a result, you receive the values of UsageGuidelinesUrl, Classifications, and DefaultClassification. DefaultClassification value has to be also in the list of values you see under Classifications. |
44 |
| - |
45 |
| -``` |
46 |
| -Get-PnPSiteClassification |
47 |
| -``` |
48 |
| -<img src="/articles/images/classification3.PNG" width="400"> |
49 |
| - |
50 |
| - |
51 |
| -### Using AzureADPreview |
52 |
| -Use [**Get-AzureADDirectorySetting**](https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureaddirectorysetting?view=azureadps-2.0-preview) cmdlet to retrieve the existing site classification settings. As a result, you receive the values of UsageGuidelinesUrl, Classifications, and DefaultClassification. |
53 |
| - |
54 |
| - |
55 |
| - |
56 |
| -### Results |
57 |
| -In the User Interface you can see these values when you create a new site: |
58 |
| - |
59 |
| - <img src="/articles/images/classification2.PNG" width="400"> |
60 |
| - |
61 |
| - |
62 |
| - |
63 |
| - |
64 |
| -## Update Site Classification |
65 |
| -Use **Update-PnPSiteClassification** cmdlet to set the available classifications or usage guidelines url. |
66 |
| - |
67 |
| -### Update Site classification options |
68 |
| -``` |
69 |
| -Update-PnPSiteClassification -Classifications "HBI", "CRI", "LBI" |
70 |
| -``` |
71 |
| - <img src="/articles/images/classification4.PNG" width="400"> |
72 |
| - |
73 |
| - |
74 |
| -### Update usage guidelines url |
75 |
| -``` |
76 |
| -Update-PnPSiteClassification -UsageGuidelinesUrl "https://powershellscripts.github.io/" |
77 |
| -``` |
78 |
| - <img src="/articles/images/classification6.PNG" width="400"> |
79 |
| - |
80 |
| - |
81 |
| - |
82 |
| -# See Also |
83 |
| - |
84 |
| -Another solution for classifying your sites - sensitivity labels, |
85 |
| -offering a more holistic approach on entire tenant scale, including also e.g. Exchange Online <br/> |
86 |
| -[Protecting your information: the power of labels](https://social.technet.microsoft.com/wiki/contents/articles/54468.protecting-your-information-the-power-of-labels.aspx) <br/> |
87 |
| -[Sensitivity labels: Powershell your way around](https://social.technet.microsoft.com/wiki/contents/articles/54497.sensitivity-labels-powershell-your-way-around.aspx) <br/> |
88 |
| -[Audit your sensitivity labels with Powershell](https://powershellscripts.github.io/articles/en/InformationProtection/Audit%20your%20sensitivity%20labels%20with%20Powershell/)<br/> |
89 |
| -<br/> |
90 |
| - |
91 |
| -Absolutely necessary one-time step to enable sensitivity labels on site level:<br/> |
92 |
| -[Sensitivity labels: Enable labels for groups and sites](https://social.technet.microsoft.com/wiki/contents/articles/54499.sensitivity-labels-enable-labels-for-groups-and-sites.aspx) |
93 |
| - |
94 |
| - |
95 |
| -<!-- Default Statcounter code for Site classification with |
96 |
| -PnP |
97 |
| -https://powershellscripts.github.io/articles/en/InformationProtection/Your%20SharePoint%20Onlin |
98 |
| ---> |
99 |
| -<script type="text/javascript"> |
100 |
| -var sc_project=12941097; |
101 |
| -var sc_invisible=1; |
102 |
| -var sc_security="a9c90e89"; |
103 |
| -</script> |
104 |
| -<script type="text/javascript" |
105 |
| -src="https://www.statcounter.com/counter/counter.js" |
106 |
| -async></script> |
107 |
| -<noscript><div class="statcounter"><a title="Web Analytics |
108 |
| -Made Easy - Statcounter" href="https://statcounter.com/" |
109 |
| -target="_blank"><img class="statcounter" |
110 |
| -src="https://c.statcounter.com/12941097/0/a9c90e89/1/" |
111 |
| -alt="Web Analytics Made Easy - Statcounter" |
112 |
| -referrerPolicy="no-referrer-when-downgrade"></a></div></noscript> |
113 |
| -<!-- End of Statcounter Code --> |
| 1 | +<meta charset="utf-8"> |
| 2 | +<title>Redirecting</title> |
| 3 | +<meta http-equiv="refresh" content="0; URL=https://powershellscripts.github.io/articles/en/InformationProtection/Your%20SharePoint%20Online%20site%20classification%20with%20PnP/"> |
| 4 | +<link rel="canonical" href="https://powershellscripts.github.io/articles/en/InformationProtection/Your%20SharePoint%20Online%20site%20classification%20with%20PnP/"> |
0 commit comments