> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dirtview.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom roles and the Permission Matrix

> The built-in roles are editable. Start a custom role from one of them, and read the matrix before you save.

export const Video = ({id, title, runtime, url}) => {
  const meta = VIDEOS[id] || ({});
  const label = title || meta.title || "Tutorial video";
  const length = runtime || meta.runtime || "";
  const track = meta.track || "";
  const src = toEmbedUrl(url || meta.url);
  const frame = {
    position: "relative",
    width: "100%",
    paddingTop: "56.25%",
    borderRadius: "10px",
    overflow: "hidden",
    background: "rgba(127,127,127,0.09)",
    border: src ? "1px solid rgba(127,127,127,0.24)" : "1px dashed rgba(127,127,127,0.42)"
  };
  const fill = {
    position: "absolute",
    inset: 0,
    width: "100%",
    height: "100%",
    border: 0
  };
  const center = {
    position: "absolute",
    inset: 0,
    display: "flex",
    flexDirection: "column",
    alignItems: "center",
    justifyContent: "center",
    gap: "10px",
    padding: "24px",
    textAlign: "center"
  };
  const idBadge = {
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
    fontSize: "12px",
    letterSpacing: "0.06em",
    padding: "2px 8px",
    borderRadius: "4px",
    background: "rgba(184,82,40,0.14)",
    color: "#B85228",
    fontWeight: 600
  };
  const caption = {
    display: "flex",
    flexWrap: "wrap",
    alignItems: "center",
    gap: "8px",
    marginTop: "8px",
    fontSize: "13px",
    opacity: 0.66,
    fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace"
  };
  return <div style={{
    margin: "0 0 28px"
  }}>
      <div style={frame}>
        {src ? <iframe style={fill} src={src} title={label} frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" allowFullScreen /> : <div style={center}>
            <svg width="44" height="44" viewBox="0 0 44 44" fill="none" aria-hidden="true">
              <circle cx="22" cy="22" r="20" stroke="currentColor" strokeOpacity="0.28" strokeWidth="2" />
              <path d="M18 15.5L29 22L18 28.5V15.5Z" fill="currentColor" fillOpacity="0.32" />
            </svg>
            <div style={{
    fontWeight: 600,
    fontSize: "15px",
    maxWidth: "36ch",
    lineHeight: 1.35
  }}>{label}</div>
            <div style={{
    fontSize: "13px",
    opacity: 0.6
  }}>
              Video coming soon{length ? " · " + length : ""}
            </div>
          </div>}
      </div>
      <div style={caption}>
        {id ? <span style={idBadge}>{id}</span> : null}
        {length ? <span>{length}</span> : null}
        {track ? <span>{track} track</span> : null}
      </div>
    </div>;
};

<Video id="80.5" />

<Warning>
  **For admins only.** A permission change applies to everybody holding that role, on every job, immediately.
</Warning>

## Start from an existing role

Never start from nothing. Pick the built-in role closest to what you want and adjust it — you inherit a sensible baseline instead of assembling one checkbox at a time.

<Steps>
  <Step title="Duplicate the closest built-in role">
    Want a "Foreman who can also approve tickets"? Start from Foreman.
  </Step>

  <Step title="Name it for the job, not the person">
    "Field Approver," not "Mike's role." Mike will move on.
  </Step>

  <Step title="Change only what you came to change">
    Then stop. Every extra permission is one you'll have to justify later.
  </Step>

  <Step title="Read the matrix row by row before saving">
    The matrix is a grid of what this role can do in each module. Read it, don't skim it.
  </Step>

  <Step title="Test with one person for a week">
    Before you move thirty people onto it.
  </Step>
</Steps>

## Reading the matrix

<Tip>
  Editing a built-in role changes it for everyone already on it. If you want to experiment, duplicate first and leave the built-in alone.
</Tip>

## Next

<CardGroup cols={2}>
  <Card title="Field-level permissions" icon="lock" href="/forms/field-settings">
    Finer than roles, per form field.
  </Card>

  <Card title="AI and voice" icon="microphone" href="/ai/talk-an-rfi-into-existence">
    Talking an RFI into existence.
  </Card>
</CardGroup>
