Skip to main content
Version: 0.7

Sharing and permissions

This chapter covers who can open a page and how to change it: the share menu, access levels, guests, link sharing and publishing a page as a site. The words workspace, teamspace, member and guest are explained in Concepts; adding people to the workspace itself is in Workspaces and members.

The share menu​

Share in a page's top bar (Cmd+Shift+O, Ctrl+Shift+O) opens the share menu. Beside its Share and Publish tabs, Learn about sharing opens this chapter in a new tab; on a phone, the question mark at the start of the share sheet's head does the same. Its Share tab holds:

  • a field, "Email or group, separated by commas", and Share;
  • the people and groups the page is shared with, each with their level. The first row is the person who holds full access to the page — you on your own private page, the workspace's owner on a teamspace page while they are in that teamspace (no such row otherwise) — once, even where the page is also shared with them;
  • General access: who else may open the page;
  • Advanced and Copy link.

The button's icon and tip say how the page is shared: "Only you can access", "Shared with specific people", "Everyone in the workspace can access", "Anyone with the link can access" or "Published to the web". The top bar's access chip (Private with a lock on a page only you can open) opens the same menu.

Access levels​

LevelLets them
Full accessEdit, suggest, comment, and share
Can editEdit, suggest, and comment
Can commentSuggest and comment
Can viewRead the page

A row's level menu also has Remove, which takes that person's access away (they may still reach the page another way, which the menu says). Levels below what the person gets anyway from the teamspace, or from everyone at the workspace, are dimmed in that menu — your own row's too — since a share only adds to what they have. The menu's Current access says where the level comes from: the page's own share, or — where it gives as much — everyone at the workspace, the teamspace, or a page above. Where only such a group gives you full access, your own row's menu still opens, with the lower levels and Remove dimmed, since there is no share of yours to change. A member of the workspace who can only view or comment on a page has Request edit access in its top bar (in the page menu where the bar is narrow), and their share menu says "You can only view this page" (or "You can only comment on this page") beside it. A guest or a restricted member has no such request, and a guest who cannot edit the page has no Share button at all.

Share with someone​

  1. In the field, type an email, a member's name or a group, and choose it. Several can be added at once. A name also finds the people you work with in your other workspaces on this server, with an email or without — they are not suggested before you type.
  2. The level beside them starts at Can view; choose another if you like. Write a note to go with the invite… writes a note. When everyone chosen is a member of the workspace (not an email, a guest or a restricted member), Notify me when page is accessed also asks to tell you when they open it.
  3. Choose Share.

A member of the workspace gets the page at once; it shows in their sidebar's Shared section. A private page of yours moves from Private to Shared in your own sidebar once it is shared. Someone outside the workspace becomes a guest: an invitation is made for their email and sent by mail where the server sends mail. Their row says Guest; where no mail went ("No email sent"), Copy invite link on the row gives the link to pass on. Whoever opens it sees You're invited, types a name over the one filled in and chooses Join, then the language Leafen uses; the page opens, and their sidebar lists under Shared only the pages shared with them. Someone who already has an account on this server chooses I already have an account here and logs in instead. Someone from your other workspaces chosen by name becomes a guest at once by their account, unless the organization keeps guests or outside sharing off.

When the page mentions or links pages that the people you just invited can’t open, Leafen then asks: Some linked pages won’t show lists the ones you may share (your full access). Give read access lets everyone you invited read each of them; OK leaves them as they are. The share itself is done either way.

The link is made with the server's own address. While the server has only a local address, the share menu's foot says who can't open it: "This address opens only on this computer: other people and other devices can’t open it." (read on another device, "…only on the computer Leafen runs on…"; or "This address opens only on devices on the same network (the same office or home Wi‑Fi): people outside it can’t open it."), and a guest elsewhere cannot open the link; a server administrator sees Turn on outside access beside it (Outside address).

Someone with no email is invited by a link: a name that finds no one offers, under "Someone without an email", Make a guest invite link, which opens Advanced › Guest invite links on a new link's choices — its pages, level, expiry and whether one person only may use it. Whoever opens the link gives a name and is in at once, as a guest of the pages chosen.

Whether members may invite guests, and whether owners must approve, is set in Settings › Requests › Controls (Workspaces and members); a teamspace can turn guests off for its pages (Disable guests). Where a member may only ask, the menu offers Ask an owner instead.

General access​

General access sets who else may open the page:

  • Only people invited — only the rows above;
  • Everyone at the workspace — every member, at the level you choose (it starts at Full access, its level menu opening as you choose it);
  • Anyone on the web with link — anyone holding the page's web link, even without an account. Its level is Can view, Can comment or Can edit: reading is for anyone, while commenting and editing are for logged-in people of the organization who open it. Link expires ends it Never, In an hour, In a day, In a week or on a day you pick, and Remove turns the web link off. "Whoever has the link can read this page and see who worked on it." While it is on, the page says "Shared on the web: whoever has the link can view this page." The web link is the one Copy link gives; the page's own address still asks someone signed out to log in, and that sign-in says, at every page's address alike, to ask whoever shared it for the link from Copy link.

On a teamspace page the choices name the teamspace's members and owners instead of the workspace. A choice that can't be made here is dimmed, and resting the pointer on it says why: the People database's rule or a page above keeps everyone in; a guest can't open a page to the whole workspace; security settings keep pages off the web.

On a page of an open teamspace, Only people invited — or Remove on the workspace's row — asks Change access and stop following the parent page’s sharing? and takes away only what the open teamspace gives everyone at the workspace: the teamspace's owners and members keep their roles, the pages under it follow it, and Restore settings gives it back.

The web link is an address with a secret token of its own, not the page's own address. Copy link in the share menu copies the right one: the page's address, or with the web link on, the web link. Turning the web link off, or letting it expire, ends it: a visitor's open tab says the page is not found within 30 seconds.

Sub-pages and inherited access​

A sub-page has its parent's sharing. Rows that come from a page above say so ("via user access on …"). Changing a sub-page's own access asks Change access and stop following the parent page’s sharing? and, once done, the menu says "This page has its own share settings, unlinked from the parent page …", with Restore settings to link them again. A teamspace's pages take the teamspace's defaults the same way.

Giving someone more on a sub-page than a page above gives them keeps it following the parent: the menu says "This page changes the share settings it inherits from the parent page …" — on a database row, naming its database — and the name opens it: the page above, or a row's database whole, at a view, as the row's path opens it (the unlinked line's name and View defaults do the same). Setting them back to what the page above gives, or removing them, takes the line away. A person shared the sub-page alone, or one the page above reaches only through everyone in the workspace, gets no such line. A sub-page's own share that gives someone no more than a page above gives them — say after moving it under a page that shares them as much — is listed under that page, with no row of its own and no line; it stays, so if the page above gives them less later, their row and the line come back.

The owner of a private page has it through the private page at the top of their pages, which their row's menu names. Anyone with full access to a page under it — the owner too — can lower or remove the owner's row there as any row from a page above, which stops the page following its parent; on the private page itself the row changes without that. The owner lowering or removing their own row is asked Lower your own access to this page? (or Remove your own access to this page?), and only while someone else keeps full access to the page; otherwise the menu says to give someone else full access first. A page the owner no longer opens leaves their sidebar and their exports, and Restore settings gives them back what the page above gives them.

Moving a private page that is shared — with people, the workspace or the web — to the top of a teamspace asks first, as its own sharing gives way to the teamspace's: "Move this page into 〈teamspace〉?" with Move and Cancel. A page shared with no one moves without asking; moving a teamspace's page to your private pages asks Make this page private?

A private page moved to the top of a teamspace lists the person whose private page it was with Full access of their own, so lowering the teamspace's roles later leaves them their page. A page made at the top of a teamspace gets no such row: its maker has it through the teamspace, like everyone else there. Its sub-pages and database rows follow it, as any sub-page does.

Moving a page you have Full access to where you'd have less — under a page shared with you to edit, into a database there, or a database's row into a database on another page — keeps your Full access on it as a row of its own, so the move's Undo, and moving or sharing it later, stay yours. Nothing else of its old sharing goes with it.

Agents​

Advanced › Who can grant agents access decides who may let an agent or an app account into the page: Full access only (how every page starts) or Anyone with access. It also lists the agents that have access.

Database rules​

A database's Advanced also holds Page-level access — Add new rule gives everyone set in a person property, or the person who made each page, a level on those pages — and Property access, with the count of its rules beside Advanced. An inline database keeps these in its own share menu: use Open as full page on it, then Share. The share menu of the page holding it lists none of them.

Publish to the web​

The share menu's Publish tab, Publish to web, makes the page a public website: "Create a website with Leafen". Publish takes only someone with full access, and not a page in the trash. Once it is published:

  • the page has an address on the server, which Change page address edits, and Copy site link and View site;
  • Customize site styling sets the Theme (System, Light mode, Dark mode), the Header (Default or Breadcrumbs), Navigation (up to 12 pages in the header), the Favicon, Search, Share and Leafen branding;
  • Search engine indexing (Searchable on the web), the SEO preview and Google Analytics;
  • Duplicate as template lets visitors copy the page into a workspace of their own;
  • Embed this page gives code that shows the page on another website;
  • Publish changes sends later edits to the site, and Unpublish takes it down.

Settings › Public pages lists every site, form and link a workspace has published. An organization can turn publishing off, and a teamspace can (Disable publishing sites, forms, and public links). The server must be reachable from outside for a site to be seen by others (Outside address). While it opens only on its own computer or network, the Publish tab says so in a yellow box at its top, before and after publishing, and so does a form's share menu once Anyone on the web with link is chosen; the bar over a published page adds a line saying no one else can see it yet. An administrator gets Turn on outside access in the box; anyone else is told to ask the server's administrator.

An address of the server pasted into a messenger or a chat app — its first screen, its login, a page's address — previews as the server: its name, "Notion, rebuilt as open source." in the language of the person who set the server up, and a 1200×630 picture of the server's icon with Leafen's name. A page's own address previews as the page — its title, its first words and its cover — only while the page is published to the web, by its web link or as a site; any other page previews as the server, so nothing of a private page leaves it. A web link and a site preview as their page, and as the server once unknown, turned off or expired.

Messengers keep a preview for a while. After renaming the server or publishing a page, KakaoTalk's copy is cleared in the Kakao share debugger (https://developers.kakao.com/tool/debugger/sharing): enter the address and press 캐시 초기화.

Names, limits and defaults​

NameLimit or defaultNotes
New share's levelCan viewChosen per invite.
Everyone at the workspaceFull access
Web link levelCan viewOr Can comment, Can edit.
Web link expiryNeverOr an hour, a day, a week, a day.
Who can grant agents accessFull access only
Site header pagesUp to 12
Invitation7 daysFor a guest's email invitation.

For agents and the API​

  • An agent sees and changes only what the person who connected it may.
  • notion-fetch and notion-get-users show who a page is shared with as the person can see it; sharing is changed on the native endpoint through leafen_operations and leafen_call. See the MCP reference and Building on Leafen.

Differences from Notion​

  • An invite starts at Can view; the inviter widens it. Everyone in the workspace still starts at Full access.
  • The share menu's top row is the person who holds full access to the page: the workspace's owner keeps it on a teamspace page; a private page's owner can be lowered or removed as any row from a page above.
  • Guests and restricted members below full access see only their own row in the share menu, never other people's emails.
  • Only people with full access let agents into a page, unless they change it.
  • The web link has a secret token and can be made anew; a visitor's open tab closes within 30 seconds when the link or site goes.
  • Inviting yourself to a page adds nothing.
  • A site has no custom domain of its own; the whole server can be served on your own domain instead.