EduRoster.ReadWrite.All
Allows the app to read and write the structure of schools and classes in the organization's roster and education-specific information about all users to be read and written.
Permission Details
Read and write the organization's roster
Allows the app to read and write the structure of schools and classes in the organization's roster and education-specific information about all users to be read and written.
d1808e82-ce13-47af-ae0d-f9b254e6d58a
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
classCode |
StringNullable |
Class code used by the school to identify the class. |
createdBy |
identitySet |
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. |
externalSource |
educationExternalSource |
How this class was created. The possible values are: sis, manual. |
externalSourceDetail |
StringNullable |
The name of the external source this resource was generated from. |
externalName |
StringNullable |
Name of the class in the syncing system. |
grade |
StringNullable |
Grade level of the class. |
id |
String |
Object identifier. Inherited from entity. |
mailNickname |
String |
Mail name for sending email to all members, if this is enabled. |
term |
educationTerm |
Term for this class. |
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. |
Showing 15 of 22 properties.
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.educationClass",
"description": "String",
"displayName": "String",
"createdBy": {
"@odata.type": "microsoft.graph.identitySet"
},
"classCode": "String",
"externalName": "String",
"externalId": "String",
"externalSource": "String",
"externalSourceDetail": "String",
"grade": "String",
"id": "String (identifier)",
"mailNickname": "String",
"term": {
"@odata.type": "microsoft.graph.educationTerm"
}
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
assignments |
educationAssignment collection |
All assignments associated with this class. Nullable. |
assignmentCategories |
educationCategory collection |
All categories associated with this class. Nullable. |
assignmentDefaults |
educationAssignmentDefaults collection |
Specifies class-level defaults respected by new assignments created in the class. |
assignmentSettings |
educationAssignmentSettings collection |
Specifies class-level assignments settings. |
group |
group |
The underlying Microsoft 365 group object. |
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 ReferenceCreate
{
OdataId = "https://graph.microsoft.com/v1.0/education/users/13015",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Education.Classes["{educationClass-id}"].Members.Ref.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const educationUser = {
'@odata.id':'https://graph.microsoft.com/v1.0/education/users/13015'
};
await client.api('/education/classes/{class-id}/members/$ref')
.post(educationUser);
Import-Module Microsoft.Graph.Education
$params = @{
"@odata.id" = "https://graph.microsoft.com/v1.0/education/users/13015"
}
New-MgEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.reference_create import ReferenceCreate
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ReferenceCreate(
odata_id = "https://graph.microsoft.com/v1.0/education/users/13015",
)
await graph_client.education.classes.by_education_class_id('educationClass-id').members.ref.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 Application permissions and search for EduRoster.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.