Sanity Library Reference Docs
    Preparing search index...

    A member row for workflow assignment controls.

    interface ProjectMember {
        displayName: string;
        email?: string;
        id: string;
        imageUrl?: string;
        isCurrentUser?: boolean;
        loginProvider?: string;
        roles: readonly MemberRole[];
    }
    Index

    Properties

    displayName: string
    email?: string
    id: string

    The person's ACCOUNT-GLOBAL user id (sanityUserId) — the one identity namespace the workflow engine stores and compares. Display fields come from the member's project profile; the id does not.

    imageUrl?: string
    isCurrentUser?: boolean

    Whether this row is the person holding the token that loaded it.

    loginProvider?: string

    Which identity provider the person signs in with — display only. Sign-in context, not an identifier: two accounts can share a provider, so it narrows a name collision rather than resolving one.

    roles: readonly MemberRole[]

    Roles held by the member in this project.