Skip to content
  • There are no suggestions because the search field is empty.

Create a custom baseline

Reuse a policy across multiple tenants using a custom baseline and variables

Custom baselines allow you to create reusable policies, ensuring your config is standardised across customers.

First, create your policy in any tenant, and navigate to the Policies Overview. Then select Import Policy from the breadcrumbs next to your policy.

This will open a panel for editing the name, description, and policy contents as JSON.

The policy JSON also supports variables, which prompt users for input when deploying the baseline. They support the following syntax:

<{|varname:default|type:rules|}>

  1. varname- Variable name

  2. default- Default value (optional)

  3. type - Variable type (optional)

  4. rules - Validation rules of input value separated by ; (optional)

 For example:
 
 
Supported types

type

 

rules

 

Examples

 

text (default)

All use cases

  • placeholder

Single value input

  • maxLength

  • minLength

  • multiline - number of lines

  • subtype- url or email or uuid


Select from dropdown

  • options - Use , to separate options

  • optionNames - Use , to separate, display names of options

  • <{|Prefix|}>

  • <{|Prefix|text|}>

  • <{|Prefix|text:minLength=3;maxLength=20|}>

  • <{|LockScreenImageUrl|:subtype=url;maxLength=100;placeholder=Input valid URL|}>

  • <{|AdminEmail|text:subtype=email|}>

  • <{|ClientId|:subtype=uuid|}>

  • <{|loginMessage|:multiline=6|}>


  • <{|os|:options=windows,macos,android,ios|}>

number

All use cases

  • placeholder

Single value input

  • max

  • min

  • step


Select from dropdown

  • options - Use , to separate options

  • optionNames - Use , to separate, display names of options

  • <{|idleTime|number|}>

  • <{|idleTime:1200|number|}>

  • <{|idleTime|number:min=300;step=10|}>


  • <{|idleTime|number:options=5,10,15,20|}>

  • <{|idleTime|number:options=5,10,15,20;optionNames=a,b,c,d|}>

 

boolean

 

<{|enabled:true|boolean|}>