Operazioni sugli iscritti

6 operazioni di nome member.*. Ognuna si esegue in un batch con apply_ops, dry_run_ops, la CLI o l’admin.

Aggiornato il
OperationWhat it doesPermissionConfirmation
member.listList the members of the site, newest first, with their status and role keys, optionally only those with a status or matching a query on the email or name, a page at a time.members.managenone
member.inviteInvite a person by email: a pending member with the given roles, and an email with a one-use link to the site's reset page where they set a password.members.managenone
member.setStatusEnable or disable a member.members.managenone
member.setRolesReplace the roles a member holds with the given role keys, each a role of the site's catalogue.members.managenone
member.deleteDelete a member with their sessions and roles.members.managedestructive
member.signOutAllSign out every member of the site at once: the site's member cookies get a new key, so every cookie issued before stops working, and every session of the site is deleted.site.admindestructive

member.list

List the members of the site, newest first, with their status and role keys, optionally only those with a status or matching a query on the email or name, a page at a time. Members are not versioned: a change takes effect at once.

permission: members.managereads onlyclass: read

Esempio di input

{
  "status": "active",
  "limit": 20
}

Input

FieldTypeRequiredNotes
statusstringnoOne of "pending", "active", "disabled".
querystringnoAt least 1 character. At most 120 characters.
offsetintegernoAt least 0. Default 0.
limitintegernoAt least 1. At most 200. Default 50.

Output

FieldTypeRequiredNotes
membersarray of objectyes
members[].idstring (uuid)yes
members[].emailstring (email)yes
members[].namestringyes
members[].statusstringyesOne of "pending", "active", "disabled".
members[].rolesarray of stringyes
members[].emailVerifiedAtstring (date-time) | nullyes
members[].lastLoginAtstring (date-time) | nullyes
members[].createdAtstring (date-time)yes
totalintegeryesAt least 0.

Provala

yarn splash member.list '{"status":"active","limit":20}' --dry-run

member.invite

Invite a person by email: a pending member with the given roles, and an email with a one-use link to the site's reset page where they set a password. Inviting a pending member again sends a fresh link; an active or disabled member is refused. Members are not versioned: a change takes effect at once.

permission: members.managewrites: membersclass: transactionundo: explicit recovery

Esempio di input

{
  "email": "giulia@example.com",
  "name": "Giulia Bianchi",
  "roles": [
    "press"
  ],
  "locale": "it"
}

Input

FieldTypeRequiredNotes
emailstringyes
namestringyesAt least 1 character. At most 120 characters.
rolesarray of stringnoAt most 50 items. Default [].
localestringnoOne of "it", "en".

Output

FieldTypeRequiredNotes
memberobjectyes
member.idstring (uuid)yes
member.emailstring (email)yes
member.namestringyes
member.statusstringyesOne of "pending", "active", "disabled".
member.rolesarray of stringyes
member.emailVerifiedAtstring (date-time) | nullyes
member.lastLoginAtstring (date-time) | nullyes
member.createdAtstring (date-time)yes

Provala

yarn splash member.invite '{"email":"giulia@example.com","name":"Giulia Bianchi","roles":["press"],"locale":"it"}' --dry-run

member.setStatus

Enable or disable a member. Disabling signs the member out everywhere at once. Members are not versioned: a change takes effect at once.

permission: members.managewrites: membersclass: transactionundo: explicit recovery

Esempio di input

{
  "memberId": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "status": "disabled"
}

Input

FieldTypeRequiredNotes
memberIdstring (uuid)yes
statusstringyesOne of "active", "disabled".

Output

FieldTypeRequiredNotes
memberobjectyes
member.idstring (uuid)yes
member.emailstring (email)yes
member.namestringyes
member.statusstringyesOne of "pending", "active", "disabled".
member.rolesarray of stringyes
member.emailVerifiedAtstring (date-time) | nullyes
member.lastLoginAtstring (date-time) | nullyes
member.createdAtstring (date-time)yes

Provala

yarn splash member.setStatus '{"memberId":"0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","status":"disabled"}' --dry-run

member.setRoles

Replace the roles a member holds with the given role keys, each a role of the site's catalogue. Members are not versioned: a change takes effect at once.

permission: members.managewrites: membersclass: transactionundo: explicit recovery

Esempio di input

{
  "memberId": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
  "roles": [
    "press",
    "board"
  ]
}

Input

FieldTypeRequiredNotes
memberIdstring (uuid)yes
rolesarray of stringyesAt most 50 items.

Output

FieldTypeRequiredNotes
memberobjectyes
member.idstring (uuid)yes
member.emailstring (email)yes
member.namestringyes
member.statusstringyesOne of "pending", "active", "disabled".
member.rolesarray of stringyes
member.emailVerifiedAtstring (date-time) | nullyes
member.lastLoginAtstring (date-time) | nullyes
member.createdAtstring (date-time)yes

Provala

yarn splash member.setRoles '{"memberId":"0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d","roles":["press","board"]}' --dry-run

member.delete

Delete a member with their sessions and roles. Run it with confirmed: ["destructive"]. Members are not versioned: a change takes effect at once.

permission: members.managewrites: membersclass: transactionconfirm: destructiveundo: explicit recovery

Esempio di input

{
  "memberId": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
}

Input

FieldTypeRequiredNotes
memberIdstring (uuid)yes

Output

FieldTypeRequiredNotes
successtrueyes

Vuole confirmed: ["destructive"] sul batch, che la forma della CLI per una sola operazione non imposta: mettila in un file di batch ed esegui yarn splash apply <file> --dry-run.

member.signOutAll

Sign out every member of the site at once: the site's member cookies get a new key, so every cookie issued before stops working, and every session of the site is deleted. Members keep their accounts and sign in again. Other sites are not affected. Run it with confirmed: ["destructive"]. Members are not versioned: a change takes effect at once.

permission: site.adminwrites: membersclass: transactionconfirm: destructiveundo: explicit recovery

Esempio di input

{}

Input

L’input è un record: vedi lo schema qui sotto.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output

FieldTypeRequiredNotes
sessionsintegeryesAt least 0.

Vuole confirmed: ["destructive"] sul batch, che la forma della CLI per una sola operazione non imposta: mettila in un file di batch ed esegui yarn splash apply <file> --dry-run.

Generato dal registro delle operazioni e dal catalogo degli strumenti MCP (sorgente 0c3a596608b37277).

Qualcosa non va in questa pagina? Scrivi a docs@librettocms.com.

Guida di Libretto

Colophon. Questa guida è un sito Libretto: 70 pagine in due lingue, 21 pagine della guida importate da Markdown e 42 pagine di riferimento generate dal registro delle operazioni. Composta in Softcore, il codice in IBM Plex Mono. La sua struttura:

/it/ Guida di Libretto /it/start Per iniziare /it/start/request-access Richiedere l'accesso /it/start/workspace Il tuo spazio di lavoro /it/start/first-site Il tuo primo sito /it/start/invite-a-client Invitare un cliente /it/start/connect-claude Connettere Claude a Libretto /it/build Costruire /it/build/first-page Costruire una pagina /it/build/layers-and-canvas Livelli e canvas /it/build/site-components Componenti del sito /it/design-system Design system /it/design-system/tokens Colori, spazi e temi /it/design-system/components Componenti e varianti /it/design-system/fonts Tipografia e font /it/motion Movimento /it/motion/scenes Scene e ricette /it/motion/image-sequences Sequenze di immagini /it/motion/reduced-motion Movimento ridotto /it/publish Pubblicazione /it/publish/languages Le lingue del sito /it/publish/versions Pubblicazione e versioni /it/publish/members-and-forms Iscritti e moduli /it/publish/domains Domini /it/publish/redirects Reindirizzamenti /it/handover Consegnare un sito al cliente /it/glossary Glossario /it/agents Agenti e API /it/agents/mcp Server MCP /it/agents/cli CLI /it/agents/batches Batch /it/agents/errors Errori e segnalazioni /it/agents/operations Operazioni /it/search Cerca