call: changeScreenSharingRole


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.

Start and stop sharing screen in the call. This API is used to allow applications to share screen content with the participants of a call or meeting.


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 Calls.AccessMedia.All

HTTP request

POST /app/calls/{id}/changeScreenSharingRole
POST /applications/{id}/calls/{id}/changeScreenSharingRole

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

In the request body, provide a JSON object with the following parameters.

Parameter Type Description
role String Possible values are: 'Viewer', 'Sharer'


Returns 202 Accepted response code.


The following example shows how to call this API.


The following example shows the request.

Content-Type: application/json
Content-Length: 24

  "role": "viewer"

Here is an example of the response.

HTTP/1.1 202 Accepted

SDK sample code

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var role = ScreenSharingRole.Viewer;

await graphClient.App.Calls["{id}"]

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.