# The student's ID: checking, duplicates and foreign students

> Why the system refuses a document, what to do when it is already in use, and how to register someone without a CPF.

## What you will get

An understanding of the three things the system does with a student's ID —
demand it, check it, and refuse to repeat it — and what to do when one of them
gets in the way.

None of this is an EduPay rule. They are switches your school turns on and off
in **Settings › Student Portal**.

## The three switches

| Switch | What it does |
|---|---|
| **Login identifier** | Decides whether the student signs into the portal with the **Document (CPF)** or the **Email** |
| **Document required** | Blocks saving a record without an ID |
| **Validate CPF** | Checks the CPF's verification digits when saving |

With all three off, the ID field is optional and accepts any text up to 20
characters.

## When the system says the CPF is invalid

The check looks at the last two digits, which are calculated from the first
nine. If the arithmetic does not add up, the field refuses.

![ID field filled with 123.456.789-00 and the message CPF inválido below it](/Apps/edupay/ajuda/aluno-cpf-invalido.png)
*The message shows up under the field after you click Create — not while you type.*

Three causes, most common first:

- **One digit mistyped.** Check the document itself.
- **All digits the same** (111.111.111-11 and the like). Refused on purpose:
  they exist for testing and no person holds one.
- **The document is not a CPF.** Company IDs, passports and other papers do not
  pass. If your school registers companies or foreign students, turn **Validate
  CPF** off.

Dots and dashes make no difference — the system strips them before checking.

## When the ID is already in use

Each CPF appears once per school. Try to repeat it and the field refuses.

![ID field with the message saying the value has already been taken](/Apps/edupay/ajuda/aluno-documento-duplicado.png)
*That message means the ID already belongs to another record. To find out whose, paste the number into the search box on the student list.*

What to do:

- **It is the same person, registered twice.** Use the record that already
  exists instead of creating another. Two records for one student become two
  sets of charges.
- **It is a namesake with a mistyped ID.** Work out which of the two is wrong
  before touching anything.

There is one case with a different message: **This document is already
registered to a deleted student. Restore the student or use a different
document.** The CPF is being held by someone who left the list, and the text
gives you both ways out.

## Foreign students, or students without a CPF

The field accepts any document. Two choices to make first:

**If only a few students are foreign**, leave **Validate CPF** off and store the
passport in the field. You lose the check on Brazilian students, but everyone
gets registered.

**If login is by document**, remember that the number you store becomes the
portal login — the student will type exactly that. In that case, email is
usually a more comfortable login for everyone.

## How you know it worked

> [certo]
> The record saves and the student page opens with the document under the name.
> If the document is the login identifier, it also appears under **Portal
> access**, with no dots or dashes — that is how the student will type it.

## If something goes wrong

> [erro]
> **The CPF is right and still refused.** Check for a stray space at the start or
> end, left over from pasting out of another system.
>
> **You need two students with the same ID.** You cannot, and you should not: the
> same CPF is the same person. A parent and a child each have their own.
>
> **Your school changed its mind about requiring an ID.** Flipping the switch
> applies to new records. Anyone already stored without a document stays as they
> are.


---

https://edupay.estudiosite.com/en/ajuda/day-to-day/student-id-document
2026-08-05
