• Updates the overall status (e.g., ACTIVE, SUSPENDED) of a user.

    Parameters

    • userId: string

      The user's unique ID.

    • status: UserStatus

      The new status to assign.

    • OptionaluserClassId: string

      (Optional) Class ID if updating class-specific status.

    Returns Promise<{ error?: string; success?: boolean }>

    An object indicating success or an error message.