The issue is just a stale enroll‑bit still alive in Entra/SDS, not Teams. Have ur IT admin remove the student’s AAD/SDS roster entry in Entra → Groups → class → Members; if it still lingers, hit Refresh sync on that user.
How to remove student who left team?
The student left our school district, so I do not want to assign any more assignments to them. When I got to manage the team, they were not on the list, but when I go to add an assignment, it always assigns it to this student. When I look through the list of individual students to assign, this student is on it. I would like to avoid assigning a task to individual students, so I want to remove the student, but there is no way for me to do so.
When I go to add the student back to the team, they are no longer in our district, so the student is not an option to add. I have no other clues on what to do. Does anyone have an idea?
Microsoft Teams | Microsoft Teams for education | Teams and channels | Manage a team or channel
Answer accepted by question author
1 additional answer
Sort by: Most helpful
-
Q&A Assist2026-05-01T12:49:58.3666667+00:00 AI generated content. This question contains an answer created with AI from Q&A Assist. Learn moreAssignments in Teams for Education can still show data for students who are no longer enrolled in the class. Even after a student is removed from the class team (and thus from the Class Notebook membership), their assignment data can remain associated with the class as “no longer enrolled.” This is why the name can still appear in assignment targeting.
To fully clean this up, a tenant admin can bulk export or delete assignment data for that student from the class:
- Before (or even after) removing the student from the class, the admin runs the Assignments script described in Configure assignments for Teams, providing the student’s
userIdand, optionally, theclassId. - To remove the student’s assignment data from a specific class, the admin uses the bulk delete option with both
userIdandclassId. This deletes the student’s assignment data for that class outside of the SharePoint document libraries. - Once the student’s assignment data is deleted for that class, the student should no longer appear as a target when creating new assignments.
If the student was originally part of the class team and then removed, but their assignment data still needs to be exported (for records) before deletion, the admin can:
- Add the student back to the class temporarily (if possible) and run the script with
userId, or - Run the script with
userIdandclassIdeven if the student has already been removed from the site.
Because this involves tenant-level scripts and access to
userId/classId, this cleanup must be done by the Microsoft 365/Azure AD (Entra ID) admin, not from within the Teams Assignments UI alone.
References:
- Before (or even after) removing the student from the class, the admin runs the Assignments script described in Configure assignments for Teams, providing the student’s