Create and publish an assignment for a class using the Microsoft Graph education API.
domain: learn.microsoft.com · 5 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗
Verified steps
Acquire a delegated Azure AD (work/school account) token with an EduAssignments scope such as EduAssignments.ReadWriteBasic — personal Microsoft accounts are not supported.
POST an educationAssignment object to /education/classes/{class-id}/assignments, setting displayName, dueDateTime, instructions, and a grading object (e.g., educationAssignmentPointsGradeType with maxPoints).
Set assignTo to target the whole class (educationAssignmentClassRecipient) or specific students.
Confirm the created assignment starts in draft status, then explicitly publish/activate it so students can see it.
Use the returned webUrl to deep-link into Microsoft Teams for the assignment if needed.
Known gotchas
Only teachers of the class can create assignments; application-only permissions still require proper role context (ReadWriteBasic.All/ReadWrite.All).
This API is unavailable in some national/sovereign clouds (e.g., US Gov L4/L5, China 21Vianet) — check regional availability first.
New assignments default to draft and are invisible to students until explicitly published.
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?