Add educationUser to an educationSchool

Add a user to a school.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Not supported.
Delegated (personal Microsoft account) Not supported.
Application EduRoster.ReadWrite.All

HTTP request

POST /education/schools/{id}/users/$ref

Request headers

Header Value
Authorization Bearer {token}. Required.
Content-Type application/json

Request body

In the request body, supply a JSON representation of an educationUser object.

Response

If successful, this method returns a 204 No Content response code and an educationClass object in the response body.

Example

Request

The following is an example of the request.

POST https://graph.microsoft.com/v1.0/education/schools/{id}/users/$ref
Content-type: application/json
Content-length: 56

{
  "@odata.id":"https://graph.microsoft.com/v1.0/education/users/14008"
}
Response

The following is an example of the response.

HTTP/1.1 204 No Content