We're having lots of fun on Discord! Come and join us! 💬
Docs

Membership Object

Properties

Name Type Description
$id string

Membership ID.

userId string

User ID.

teamId string

Team ID.

name string

User name.

email string

User email address.

invited integer

Date, the user has been invited to join the team in Unix timestamp.

joined integer

Date, the user has accepted the invitation to join the team in Unix timestamp.

confirm boolean

User confirmation status, true if the user has joined the team or false otherwise.

roles string[]

User list of roles

Examples

JSON

{
    "$id": "5e5ea5c16897e",
    "userId": "5e5ea5c16897e",
    "teamId": "5e5ea5c16897e",
    "name": "VIP",
    "email": "john@appwrite.io",
    "invited": 1592981250,
    "joined": 1592981250,
    "confirm": false,
    "roles": [
        "admin"
    ]
}