Cli-microsoft365: New command: enable site classification

Created on 4 Feb 2018  路  12Comments  路  Source: pnp/cli-microsoft365

Enable site classification

  • command: graph siteclassification enable -c|--classifications <classifications> -d|--defaultClassification <defaultClassification> --usageGuidelinesUrl [usageGuidelinesUrl]
  • classifications: comma-separated list of classifications to enable in the tenant
  • defaultClassifications: classification to use by default
  • usageGuidelinesUrl: URL with additional information that should be displayed when choosing the classification for the given site
  • requires connection to the Microsoft Graph (#10)

For more information see the Enable-PnPSiteClassification cmdlet

new feature work in progress

Most helpful comment

Here is the current state of this future PR : https://github.com/ypcode/office365-cli/tree/dev-graph-site-classification-set. As I said, the docs and testing are not done, will do it after being back from vacation after September, 10th.

I didn't check yours @appieschot , but maybe we can have some sort of sync in each other PRs.

Will be more active soon :)
Cheers,
Yannick

All 12 comments

More than happy to pick this one up.

W00t! All yours! 馃殌

Hey @appieschot, are you still working on this command?

And we'll do a retry; happy to pick this one up :)

All yours!

Do you want to implement a -disable: flag on this method to disable site classifications, or do you want to have an additional command called disable site classification (as testing the creation without the option to delete is a bit weird)? If it is an additional command I would love to pick it up in the same PR.

Additionally we do have a property called GuestUsageGuidelinesUrl in the directorysettings. We could leverage that as in this same method as well.

Let's use a separate command for disable. If we don't have an issue for it, let's create one.

Good idea to include GuestUsageGuidelinesUrl 馃憤

If i may, i started but not finished up the site classification set command... it is already working, just need to ensure the code coverage and .md page, wouldn鈥檛 it be more productive to sync on such related commands?

@ypcode that would definitely make sense, do you have the command synced to your repo? I have the command implemented as well but do also need the tests and documentation :). You can find my implementation on: https://github.com/appieschot/office365-cli/tree/feature/enable-site-classification

Let me make sure it is, I will do it tonight

Here is the current state of this future PR : https://github.com/ypcode/office365-cli/tree/dev-graph-site-classification-set. As I said, the docs and testing are not done, will do it after being back from vacation after September, 10th.

I didn't check yours @appieschot , but maybe we can have some sort of sync in each other PRs.

Will be more active soon :)
Cheers,
Yannick

@ypcode i just wrote my tests, but have a slightly different implementation than yours. I did use the PowerShell code sample, but will consolidate with your implementation to ease integration in the next release. The set requires one additional property (DefaultValue) as when enabling it, it requires the default value for usageGuidelinesUrl when it is not specified

Was this page helpful?
0 / 5 - 0 ratings