Constraints on fields

What are field constraints?

You can hide fields from your team members when they are creating or editing a machine. 

How can I add field constraints?

From the Teams section:

  1. Make sure you belong to the Owners team.
  2. Open the teams page and click on the team you want to set field constraints on.
  3. Click the gear icon next to an RBAC policy that applies to machines.
  4. Input a JSON with the relevant field names.
  5. Click Save
  6. Click "Save policy" for the changes to take effect

Example

This is the default view of the machine creation form when creating a Docker machine:

We want to hide the "Docker Env" and "Docker Command" fields from team members. 

The field constraints should be formatted like this:

{
  "field":[
    {
      "name":"docker_env",
      "show":false
    },
    {
      "name":"docker_command",
      "show":false
    }
  ]
}

Please keep in mind that constraints are supported in Mist v4.2 and later. Also, they are available only in Mist Hosted Service (HS) and Mist Enterprise Edition (EE).

Still need help? Contact Us Contact Us