DocumentationAPI reference

Rust · 0.1.0

SpaceMember

A role inside one space, separate from an instance-level user role.

Membership is not an invitation

Only accepted invitations become active memberships. UpdateSpaceMember can change role, not swap the referenced user. The final name segment is the username. ADMIN governs this space only; an instance administrator still needs space membership to use SpaceService governance operations.

Where this schema is used

These links are derived from direct references in the protocol snapshot. Follow the calling operation for authentication, accepted fields and runtime behavior; a reusable resource schema is not by itself a complete write request.

Referenced by these component schemas:

Shape and fields

object

SpaceMember is a user's membership and governance role in a space.

FieldType / requirementDescription
namestringThe resource name. Format: spaces/{space}/members/{username}.
userstring
Required
Required. The member user. Format: users/{username}.
rolestring (enum)
ROLE_UNSPECIFIED · ADMIN · USER
Required
Required. The member's role within this space.

Complete schema

Use this complete JSON definition for constraints and nested structure. A field's presence here does not mean it is writable by every caller.

{
  "required": [
    "user",
    "role"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The resource name. Format: spaces/{space}/members/{username}."
    },
    "user": {
      "type": "string",
      "description": "Required. The member user. Format: users/{username}."
    },
    "role": {
      "enum": [
        "ROLE_UNSPECIFIED",
        "ADMIN",
        "USER"
      ],
      "type": "string",
      "description": "Required. The member's role within this space.",
      "format": "enum"
    }
  },
  "description": "SpaceMember is a user's membership and governance role in a space."
}