Url link to an assessment that's automatically loaded when the secure assessment browser is launched. It has to be a valid Url (http[s]://msdn.microsoft.com/).
configurationAccount
String
The account used to configure the Windows device for taking the test. The user can be a domain account (domain\user), an AAD account ([email protected]) or a local account (username).
allowPrinting
Boolean
Indicates whether or not to allow the app from printing during the test.
allowScreenCapture
Boolean
Indicates whether or not to allow screen capture capability during a test.
allowTextSuggestion
Boolean
Indicates whether or not to allow text suggestions during the test.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new Windows10SecureAssessmentConfiguration
{
OdataType = "#microsoft.graph.windows10SecureAssessmentConfiguration",
Description = "Description value",
DisplayName = "Display Name value",
Version = 7,
LaunchUri = "Launch Uri value",
ConfigurationAccount = "Configuration Account value",
AllowPrinting = true,
AllowScreenCapture = true,
AllowTextSuggestion = true,
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.DeviceConfigurations["{deviceConfiguration-id}"].PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
Windows10SecureAssessmentConfiguration deviceConfiguration = new Windows10SecureAssessmentConfiguration();
deviceConfiguration.setOdataType("#microsoft.graph.windows10SecureAssessmentConfiguration");
deviceConfiguration.setDescription("Description value");
deviceConfiguration.setDisplayName("Display Name value");
deviceConfiguration.setVersion(7);
deviceConfiguration.setLaunchUri("Launch Uri value");
deviceConfiguration.setConfigurationAccount("Configuration Account value");
deviceConfiguration.setAllowPrinting(true);
deviceConfiguration.setAllowScreenCapture(true);
deviceConfiguration.setAllowTextSuggestion(true);
DeviceConfiguration result = graphClient.deviceManagement().deviceConfigurations().byDeviceConfigurationId("{deviceConfiguration-id}").patch(deviceConfiguration);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.windows10_secure_assessment_configuration import Windows10SecureAssessmentConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Windows10SecureAssessmentConfiguration(
odata_type = "#microsoft.graph.windows10SecureAssessmentConfiguration",
description = "Description value",
display_name = "Display Name value",
version = 7,
launch_uri = "Launch Uri value",
configuration_account = "Configuration Account value",
allow_printing = True,
allow_screen_capture = True,
allow_text_suggestion = True,
)
result = await graph_client.device_management.device_configurations.by_device_configuration_id('deviceConfiguration-id').patch(request_body)
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.