0024 Titles for groups in live links come from the server's configuration¶
Source: #1038, a follow-up to 0022
Context and Problem Statement¶
A live link may open only for a group of the sign-in (0021).
create_link takes the group as the groups claim carries it. With Microsoft Entra ID that is an
object ID, such as 6f1c2d3e-.... People and AI clients that make a link know the group by its
name, not by its ID. 0022 left names for groups to a decision of their own, since a name has to be
resolved when the link is made.
How does create_link take a group by a name, without telling anyone about groups that are not
theirs?
Considered Options¶
- Titles in the server's configuration, under
rest.browser, looked up among the maker's own groups. - Titles from the identity provider, such as a directory lookup at Microsoft Graph.
- Names in the token: the provider sends group names in the groups claim instead of IDs.
- Titles beside
auth.groupProfiles.
Decision Outcome¶
Chosen option: titles in the server's configuration, rest.browser.groupTitles, as
[{ "group", "title" }]. The operator names the groups people share links with. It needs no
request to the provider and no right more. #1038 sets the rules for the lookup.
- A directory lookup: not chosen. pivotkit would need a client and a right at each provider, and a request per link. It works with one provider only.
- Names in the token: not chosen as pivotkit's part. Where a provider sends names, the groups claim
carries them already, and
create_linktakes them as before. - Beside
auth.groupProfiles: not chosen. That list chooses a person's profile. A title has a different job, and a setting keeps its job.
The rules:
create_linkresolvesgrouponly among the groups of the maker's own token, exactly as written. A group as the claim carries it comes first. Only when none of the maker's groups is that text does it look for a title. So a title never hides a group, and turning titles on changes no call that names a group.- No match gets one refusal. Its words are the same for a title nobody gave, a group or a title the maker is not in, and a server without titles. It does not repeat what was asked for. So the answer tells nothing about other people's groups.
- A title that names more than one of the maker's groups is refused, and the maker gives the group as the claim carries it. Only the maker's own groups count, so this says nothing about anyone else's.
pk-accessholds the digest of the group, never of its title. A link keeps opening for its group when the title changes or goes.- A title follows the rule of a parameter's title (0022), one rule in one place: one line of at most 80 characters, without spaces at either end and without control, bidi or other invisible characters. Two titles that look alike are then alike. Each group has one title at most. The list has at most 1,000 entries.
- The answer's
accessnames the level, and a group by its title where it has one, else as the claim carries it. The answer does not add the ID when the maker gave the title.
On and off: titles are on when rest.browser.groupTitles is set, and off when it is not. There is
no switch of its own. A list and a switch would be two settings for one choice, and principle 5 of
PRODUCT.md asks for no toggle without a clear benefit. Parameter titles (0022) have no switch
either. To switch titles off, the operator removes the list. Links made by a title keep working,
since they hold the group.
Consequences¶
- Good: a person or an AI client makes a group link with "Sales" instead of an object ID.
- Good: other people's groups stay unknown to the maker, and a link does not depend on a title.
- Bad: the operator keeps the titles in step with the provider by hand. A renamed group keeps its old title until the configuration changes.
- Bad: an operator cannot keep titles in the configuration while they are off.
- Bad: the maker and their AI client read the operator's title. An internal name written into it reaches them.
- Bad: titles match exactly. "sales" does not find "Sales". The refusal says how to name the group.
- Bad: a person in two groups of the same title has to give the ID.
check-configwarns about shared titles. - Bad: with several OAuth issuers, one group text has one title, whichever issuer carries it.