Announcing the Appwrite OSS Fund, Learn More! 🤑
Docs

Membership Object

Properties

Name Type Description
$id string

Membership ID.

userId string

User ID.

userName string

User name.

userEmail string

User email address.

teamId string

Team ID.

teamName string

Team name.

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",
    "userName": "John Doe",
    "userEmail": "john@appwrite.io",
    "teamId": "5e5ea5c16897e",
    "teamName": "VIP",
    "invited": 1592981250,
    "joined": 1592981250,
    "confirm": false,
    "roles": [
        "admin"
    ]
}