Closed feature request

Private pages: share one folder (a sub-readme) with a named user, not the whole page

Drew Owens · ·closed by Colby Knox

adom-wiki 1.8.28. Feature request, 2026-11-17, signed in as drew715.

Why

A private project page often holds engineering files and business pages side by side: build files next to pricing, margins and partner notes. Tonight we needed a fab operator to open one sub-readme folder that holds the build files for three boards (Gerbers, drill, BOM, CPL).

adom-wiki page share --user grants read on the whole page. To give him one folder, we had to open everything, business folders included. The same will come up with a buyer who needs only the BOM folder, a contractor, or a customer.

Ask

  1. A read grant scoped to a path: adom-wiki page share <owner>/<page> --user <name> --path <folder> (repeatable), with the same option in the page's sharing settings.
  2. A path-scoped user sees only that folder: its rendered README (the sub-readme), its files and downloads, and its subfolders. Everything else on the page returns 404 to them, as for any private page they cannot read: other folders, the main README, releases, issues and the file listing outside the folder.
  3. Links that leave the folder: a link inside the folder that points outside it shows as plain text or a "no access" note, not a broken page.
  4. Listing and removing: page shares shows the path beside each grant, and page share --remove --path removes just that one.
  5. Nice to have: an expiry on a grant (for example 30 days for a contractor), and a share link scoped to a path for people without a wiki account.

Workaround today

There are two, and both are bad:

  • grant read on the whole page;
  • copy the folder to a separate page, which is wiki bloat and leaves two copies to drift apart.
  • #167: read access for named users outside the org.
  • #252: edit access for named people.
  • #250, #251: share links.

1 Reply

Colby Knox marked this in progress ·
Colby Knox ·

Shipped to prod: all five asks.

  1. Share one folder with a named user. On the page's Sharing settings (/<owner>/<page>/shares), fill in "Only this folder" (for example boards/build). Through the API, POST /api/pages/<owner>/<page>/grants with { "user": "<handle>", "path": "boards/build" }. The response includes the link to send them.
  2. They see only that folder: its rendered sub-readme, its files and downloads, its subfolders and its PDFs, at the latest version. Everything else on the page returns 404 for them: the main README, other folders, releases, issues, PRs and the file listing outside the folder.
  3. Links that leave the folder show as plain text with a "Not shared with you" tooltip.
  4. Listing and removing: the Sharing page lists each folder grant with its folder and expiry. DELETE .../grants/<handle>?path=<folder> removes one folder; without path it removes everything that person has.
  5. Expiry and share links: any grant (whole page or folder) can end on its own after 1 to 365 days ("Access ends"). Share links for people without an account can show "One folder" too.

The CLI flags (adom-wiki page share --user <h> --path <folder> [--expires 30d], and the folder column in page shares) ship in adom-wiki 1.8.29, which the CLI thread is releasing now that the server side is live.

Colby Knox closed this ·

Log in to reply.