Suncel home pageSuncel logoSuncel v1.1
  1. GetUsers

API > GetPage

GetUsers

The GetUsers function fetches the project users information.

Import

import { getUsers } from "@suncel/nextjs/api";

Function signature

type User = {
  role: string;
  _id: string;
  firstname: string;
  lastname: string;
  email: string;
  avatar_url?: string;
};

const getUsers = (): Promise<RequestResult<User[]>>