Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
Permission type
Least privileged permissions
Higher privileged permissions
Delegated (work or school account)
BrowserSiteLists.ReadWrite.All
Not available.
Delegated (personal Microsoft account)
Not supported.
Not supported.
Application
BrowserSiteLists.ReadWrite.All
Not available.
HTTP request
POST /admin/edge/internetExplorerMode/siteLists
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Content-Type
application/json. Required.
Request body
In the request body, supply a JSON representation of the browserSiteList object.
You can specify the following properties when you create a browserSiteList.
Property
Type
Description
description
String
Description for the site list. Required.
displayName
String
Display name of the site list. Required.
Response
If successful, this method returns a 201 Created response code and a browserSiteList object in the response body.
POST https://graph.microsoft.com/v1.0/admin/edge/internetExplorerMode/siteLists
Content-Type: application/json
Content-length: 283
{
"displayName": "Production Site List A",
"description": "Production site list for team A"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new BrowserSiteList
{
DisplayName = "Production Site List A",
Description = "Production site list for team A",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Admin.Edge.InternetExplorerMode.SiteLists.PostAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc admin edge internet-explorer-mode site-lists create --body '{\
"displayName": "Production Site List A",\
"description": "Production site list for team A"\
}\
'
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
BrowserSiteList browserSiteList = new BrowserSiteList();
browserSiteList.displayName = "Production Site List A";
browserSiteList.description = "Production site list for team A";
graphClient.admin().edge().internetExplorerMode().siteLists()
.buildRequest()
.post(browserSiteList);
const options = {
authProvider,
};
const client = Client.init(options);
const browserSiteList = {
displayName: 'Production Site List A',
description: 'Production site list for team A'
};
await client.api('/admin/edge/internetExplorerMode/siteLists')
.post(browserSiteList);
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new BrowserSiteList();
$requestBody->setDisplayName('Production Site List A');
$requestBody->setDescription('Production site list for team A');
$result = $graphServiceClient->admin()->edge()->internetExplorerMode()->siteLists()->post($requestBody)->wait();
Import-Module Microsoft.Graph.DeviceManagement
$params = @{
displayName = "Production Site List A"
description = "Production site list for team A"
}
New-MgAdminEdgeInternetExplorerModeSiteList -BodyParameter $params
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(credentials, scopes)
request_body = BrowserSiteList(
display_name = "Production Site List A",
description = "Production site list for team A",
)
result = await graph_client.admin.edge.internet_explorer_mode.site_lists.post(request_body)