EduAssignments.ReadWrite
Allows the app to read and write assignments and their grades on behalf of the user.
Permission Details
Read and write users' class assignments and their grades
Allows the app to read and write assignments and their grades on behalf of the user.
2f233e90-164b-4501-8bce-31af2559a2d3
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
content |
Stream |
The content stream |
contentUrl |
String (url) |
The URL for downloading the content |
assignmentCategories |
educationCategory collection |
All categories associated with this class. Nullable. |
assignmentDefaults |
object |
Specifies class-level defaults respected by new assignments created in the class. |
assignments |
educationAssignment collection |
All assignments associated with this class. Nullable. |
assignmentSettings |
object |
Specifies class-level assignments settings. |
classCode |
stringNullable |
Class code used by the school to identify the class. |
course |
object |
|
createdBy |
object |
Entity who created the class |
description |
stringNullable |
Description of the class. |
displayName |
string |
Name of the class. |
externalId |
stringNullable |
ID of the class from the syncing system. |
externalName |
stringNullable |
Name of the class in the syncing system. |
externalSource |
object |
How this class was created. The possible values are: sis, manual. |
externalSourceDetail |
stringNullable |
The name of the external source this resource was generated from. |
Showing 15 of 24 properties.
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"content": "String",
"contentUrl": {
"@type": "String (url)",
"id": "00000000-0000-0000-0000-000000000000"
},
"assignmentCategories": [
{
"@type": "educationCategory",
"id": "00000000-0000-0000-0000-000000000000"
}
],
"assignmentDefaults": {
"sample": "value"
},
"assignments": [
{
"@type": "educationAssignment",
"id": "00000000-0000-0000-0000-000000000000"
}
],
"assignmentSettings": {
"sample": "value"
},
"classCode": "String",
"course": {
"sample": "value"
},
"createdBy": {
"sample": "value"
},
"description": "String",
"displayName": "String",
"externalId": "String",
"externalName": "String",
"externalSource": {
"sample": "value"
},
"externalSourceDetail": "String",
"grade": "String",
"group": {
"sample": "value"
},
"id": "String",
"mailNickname": "String",
"members": [
{
"@type": "educationUser",
"id": "00000000-0000-0000-0000-000000000000"
}
]
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
assignmentCategories |
educationCategory collection |
All categories associated with this class. Nullable. |
assignments |
educationAssignment collection |
All assignments associated with this class. Nullable. |
members |
educationUser collection |
All users in the class. Nullable. |
modules |
educationModule collection |
All modules in the class. Nullable. |
schools |
educationSchool collection |
All schools that this class is associated with. Nullable. |
teachers |
educationUser collection |
All teachers in the class. Nullable. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new EducationFeedbackResourceOutcome
{
OdataType = "#microsoft.graph.educationFeedbackResourceOutcome",
FeedbackResource = new EducationWordResource
{
OdataType = "#microsoft.graph.educationWordResource",
DisplayName = "Document1.docx",
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Education.Classes["{educationClass-id}"].Assignments["{educationAssignment-id}"].Submissions["{educationSubmission-id}"].Outcomes.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const educationOutcome = {
'@odata.type': '#microsoft.graph.educationFeedbackResourceOutcome',
feedbackResource: {
'@odata.type': '#microsoft.graph.educationWordResource',
displayName: 'Document1.docx'
}
};
await client.api('/education/classes/37d99af7-cfc5-4e3b-8566-f7d40e4a2070/assignments/a3cce0ba-2008-4c4d-bf62-079408562d96/submissions/2185e6d7-2924-4ed1-dde1-269f89e29184/outcomes')
.post(educationOutcome);
Import-Module Microsoft.Graph.Education
$params = @{
"@odata.type" = "#microsoft.graph.educationFeedbackResourceOutcome"
feedbackResource = @{
"@odata.type" = "#microsoft.graph.educationWordResource"
displayName = "Document1.docx"
}
}
New-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.education_feedback_resource_outcome import EducationFeedbackResourceOutcome
from msgraph.generated.models.education_word_resource import EducationWordResource
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = EducationFeedbackResourceOutcome(
odata_type = "#microsoft.graph.educationFeedbackResourceOutcome",
feedback_resource = EducationWordResource(
odata_type = "#microsoft.graph.educationWordResource",
display_name = "Document1.docx",
),
)
result = await graph_client.education.classes.by_education_class_id('educationClass-id').assignments.by_education_assignment_id('educationAssignment-id').submissions.by_education_submission_id('educationSubmission-id').outcomes.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for EduAssignments.ReadWrite
Grant Admin Consent
This delegated permission requires admin consent.