lll Documentation Source
Browse documentation

Give a contractor read-only access to one team

Invite an outside person as a Viewer of one team. They and their agent can read that team’s issues, comments and docs. They cannot change the team’s records, and the board’s other teams answer as if they did not exist. When the engagement ends, you revoke the access and their token stops reading.

This page is for the person who runs the board. You need the authority to create invitations, and administrator credentials to remove the access later.

The reader needs lll command
A single-use Viewer invitation for one team lll invite create --team KEY --read-only
The contractor’s CLI signed in lll login --url URL --token -
A check of what the contractor can do lll whoami
The Team role as the board records it lll member permissions NAME
A link for someone who needs no account lll board --team KEY
Access revoked, identity kept lll member access NAME --no-teams
The member removed lll member delete NAME

Before you start

  • lll 1.8.0 or later on the server. Viewer is a Team role from that version. The run on this page used 1.9.0.
  • A person who can create invitations: a workspace Admin, an infrastructure operator, or an independent person with read-write access to every team. Editor access to one team is not enough. See permissions for people and agent workers.
  • The server’s administrator credentials for steps 6 and 7. A member token cannot change anyone’s access.

In this example the board has two teams. The contractor, Dana, reads SCRAT. Dana must not see FIN (Finance). Each team has one issue and one doc. To build the same board on a scratch server, whose first team is SCRAT:

lll team create FIN -n Finance
lll issue create "Checkout page times out on slow networks"
lll issue create "Vendor invoice backlog" --team FIN
lll doc create -s checkout-notes -t "Checkout notes" -b "Notes."
lll doc create -s vendor-terms -t "Vendor terms" -b "Terms." --team FIN

1. Create the invitation

lll invite create --team SCRAT --read-only

The command prints one link on stdout and a summary line on stderr. The link works once and expires after seven days. Send it to the contractor only. Repeat --team to add a second team; leave out every team the contractor must not see.

The contractor opens the link in a browser, types a name and submits the form. The setup page then shows a token for the CLI. See inviting people and their agents.

A contractor without a browser redeems the code through the API. The code is the last path segment of the link. On a scratch board the API listens on its own port, used below. The board address in the link accepted the same call, and lll login --url with it, in a second run.

curl -s -X POST http://127.0.0.1:61216/api/lll/invites/redeem \
  -H 'Content-Type: application/json' \
  -d '{"code":"CODE","name":"dana-contractor"}'

The answer is one JSON object. Its token field is the new member’s token, teams is ["SCRAT"] and mode is ro. The token is a credential: store it in a file only the contractor can read.

3. The contractor signs the CLI in

lll login --url http://127.0.0.1:61216 --token - < token
lll whoami

Login saves the server and the token, and sets the team because it is the only team this member can see. lll whoami prints access read-only, team SCRAT. Ask the contractor to send you that line before they start.

4. Check reads, writes and the other team

Run these as the contractor.

lll issue list
lll issue view SCRAT-1
lll doc view checkout-notes
lll issue comment SCRAT-1 -b "I can take a look."
lll issue claim SCRAT-1
lll issue view FIN-1
lll issue list --team FIN

The first three print the team’s content and exit 0. The comment and the claim are refused with exit code 4. lll issue create and lll doc create are refused the same way. The two FIN commands exit 3, the code for not found: the answer does not confirm that FIN exists. lll team list prints only SCRAT, and lll search vendor finds nothing from the Finance team.

5. Give the contractor’s agent the same limit

The agent uses the contractor’s token. Set it in the agent’s environment:

export LLL_URL=http://127.0.0.1:61216
export LLL_TOKEN=...   # the contractor's token
export LLL_TEAM=SCRAT
lll whoami

lll whoami prints the same access line, with token env:LLL_TOKEN. A Viewer cannot create a bot: lll bot create bot-dana is refused with exit code 4. So the contractor’s agent has no identity of its own, and its reads are recorded under the contractor’s name.

Do not create a bot for the contractor with your own token. That bot starts with your access, not theirs. See Limits.

6. Confirm the Team role

lll member permissions dana-contractor \
  --admin-email admin@local.invalid --admin-password PASSWORD

The command prints the member’s name, then SCRAT: viewer and no other team, then a Revision: line. It needs a workspace Admin or the administrator credentials. Without them, lll member access dana-contractor prints the same grant in the older wording: dana-contractor: read-only, team SCRAT.

7. Remove the access

lll member access dana-contractor --no-teams \
  --admin-email admin@local.invalid --admin-password PASSWORD
lll member delete dana-contractor --yes \
  --admin-email admin@local.invalid --admin-password PASSWORD

The first command revokes the access and deletes nothing. The contractor’s token still authenticates and reads no team. The second command removes the member; after it, the server rejects the token and every command exits 6. Run only the first command if the contractor may return.

Run lll member list first. A Viewer can change their own member name, so use the name the list shows. Remove any bot that was created for the contractor too; deleting the contractor leaves it in place.

lll member permissions NAME --team SCRAT --role none is the per-team form of the first command. Add --preview to see the result before applying it.

What the commands print

The scratch board ran lll 1.9.0 on 2026-11-30. admin$ is the board’s person with access to every team. dana$ is the contractor.

admin$ lll invite create --team SCRAT --read-only
http://127.0.0.1:61217/join/9SlPQodbpEYWy0Oc2NG-zEKUswMx9HlyRlYLqexfHxw
single-use invite: read-only, SCRAT; expires 2026-12-07 20:33:17.008Z. Send the link to one person; it is shown only here

dana$ lll login --url http://127.0.0.1:61216 --token - < token
logged in as dana-contractor
team = "SCRAT" in /tmp/lll-contractor-home/config/lll/lll.toml (the only team you can see)
ready (read-only): lll issue list

dana$ lll whoami
dana-contractor <joined-aa4602547309053ad39f982f@members.invalid>
server  http://127.0.0.1:61216
team    SCRAT
token   file:/tmp/lll-contractor-home/config/lll/lll.toml
access  read-only, team SCRAT

Login printed four more lines about saved settings; they are left out here. Reads exit 0. Writes exit 4. The other team exits 3.

dana$ lll issue list
SCRAT-1  ○ todo    Checkout page times out on slow networks    just now

dana$ lll issue comment SCRAT-1 -b "I can take a look."
Error: Read-only access: dana-contractor can read but not change records here. 'lll whoami' shows your access; ask the person who invited you for read-write.

dana$ lll issue view FIN-1
Error: issue FIN-1 not found; check 'lll issue list' or LLL_TEAM

dana$ lll issue list --team FIN
Error: no team 'FIN' among the teams you can see (SCRAT). 'lll whoami' shows your access; ask the person who invited you if you need another team.

dana$ lll member list
dana-contractor	joined-aa4602547309053ad39f982f@members.invalid	ro SCRAT
scratch	(hidden)	rw every team (server-wide)

lll issue list --team NOPE, a team that does not exist, printed the same error as FIN with the same exit code 3.

Step 7, then the contractor’s commands after each part:

admin$ lll member access dana-contractor --no-teams --admin-email admin@local.invalid --admin-password PASSWORD
dana-contractor: read-only, no teams (was read-only, team SCRAT)

dana$ lll issue list
Error: no team 'SCRAT' among the teams you can see (none). 'lll whoami' shows your access; ask the person who invited you if you need another team.

admin$ lll member delete dana-contractor --yes --admin-email admin@local.invalid --admin-password PASSWORD
removed member dana-contractor

dana$ lll issue list
Error: the token in /tmp/lll-contractor-home/config/lll/lll.toml was rejected by http://127.0.0.1:61216

The first lll issue list exited 3 and the second exited 6. The rejection message continues with likely causes; they are left out here.

Limits

  • Verified: every command on this page, against a scratch board with two teams, on one machine. The invitation was redeemed with the curl call in step 2. A second invitation was redeemed by posting the join form with curl and an Origin header naming the board; without the header the board answers
    1. It answered with a redirect to /me and a login cookie, and lll member permissions then printed SCRAT: viewer. Not verified: the join form and setup page in a real browser, a contractor on another machine, a hosted board, and a real agent using the token.
  • A bot that you create is not a way to give the contractor’s agent its own name. On the scratch board, lll bot create bot-dana-agent run by the inviter produced a bot with read-write, every team. It read FIN-1 and commented on SCRAT-1. Narrowing it needs administrator credentials.
  • There is no command to list or cancel an unused invitation. A link you sent and regret stays valid until it is redeemed or seven days pass. A redeemed code answers HTTP 410 on a second attempt.
  • Steps 6 and 7 need administrator credentials or a workspace Admin. With only a member token, lll member access NAME --no-teams exits 4, lll member permissions NAME exits 4 and lll member delete exits 1. The person who created the invitation cannot always undo it.
  • --preview on lll member access NAME --no-teams is refused with exit code 2. Use lll member permissions NAME --team KEY --role none --preview.
  • The contractor sees more than the team’s content. lll member list showed the name and access of every member, with emails hidden, and still did after --no-teams. lll member access NAME printed another member’s access. lll issue view showed the creator’s Origin host and Origin path for the issue, and the team’s audit events carry the same.
  • “Cannot change the team’s records” is the limit, not “cannot write”. Through the API, the Viewer token changed its own member name and created its own favorite and view records. It was refused every write to an issue, comment, claim, doc, webhook, invitation or member grant, and every change to its own mode, teams or role.
  • lll board --team SCRAT prints a view-only link that needs no account. It differs from an invitation: it creates no member and gives no CLI token. Anyone holding the link can read the team. The link opens a page that asks to sign in to the board. After that, the SCRAT board answered 200 and /t/FIN/ answered 404. The help says the link does not expire and stops working when the server’s LLL_BOARD_TOKEN changes. This run did not test that.
  • lll board --team builds the link from LLL_BOARD_TOKEN when that variable is set. In this run the shell held a token for a different board. The command printed a link without a warning, and the board refused it with
    1. Unset the variable, or set it to this board’s token, before sharing.