Sanity Library Reference Docs
    Preparing search index...

    Interface CurrentUser

    interface CurrentUser {
        attributes?: CurrentUserAttribute[];
        email: string;
        id: string;
        name: string;
        profileImage?: string;
        provider?: string;
        role: string;
        roles: Role[];
    }
    Index

    Properties

    attributes?: CurrentUserAttribute[]

    Organization-scoped user attributes for the current project. Only present when returned by /users/me with a project context.

    email: string
    id: string
    name: string
    profileImage?: string
    provider?: string
    role: string

    use roles instead

    roles: Role[]