Skip to content

graph siteclassification enable

Enables site classification configuration

Usage

graph siteclassification enable [options]

Options

Option Description
--help output usage information
-c, --classifications <classifications> Comma-separated list of classifications to enable in the tenant
-d, --defaultClassification <defaultClassification> Classification to use by default
-u, --usageGuidelinesUrl [usageGuidelinesUrl] URL with usage guidelines for members
-g, --guestUsageGuidelinesUrl [guestUsageGuidelinesUrl] URL with usage guidelines for guests
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to the Microsoft Graph, using the graph login command.

Remarks

Attention

This command is based on an API that is currently in preview and is subject to change once the API reached general availability.

To enable site classification, you have to first log in to the Microsoft Graph using the graph login command, eg. graph login.

Examples

Enable site classification

graph siteclassification enable --classifications "High, Medium, Low" --defaultClassification "Medium"

Enable site classification with a usage guidelines URL

graph siteclassification enable --classifications "High, Medium, Low" --defaultClassification "Medium" --usageGuidelinesUrl "http://aka.ms/pnp"

Enable site classification with usage guidelines URLs for guests and members

graph siteclassification enable --classifications "High, Medium, Low" --defaultClassification "Medium" --usageGuidelinesUrl "http://aka.ms/pnp" --guestUsageGuidelinesUrl "http://aka.ms/pnp"

More information