Update an editable secureScoreControlProfile object within any integrated solution to change various properties, such as assignedTo or tenantNote.
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)
SecurityEvents.ReadWrite.All
Delegated (personal Microsoft account)
Not supported.
Application
SecurityEvents.ReadWrite.All
HTTP request
PATCH /security/secureScoreControlProfiles/{id}
Request headers
Name
Description
Authorization
Bearer {code}. Required.
Prefer
return=representation.
Request body
In the request body, supply a JSON representation of the values for relevant fields that should be updated. The body must contain the vendorInformation property with valid provider and vendor fields. The following table lists the fields that can be updated for a secureScoreControlProfile. The values for existing properties that are not included in the request body will not change. For best performance, don't include existing values that haven't changed.
Property
Type
Description
assignedTo
String
Name of the analyst the control is assigned to for triage, implementation, or remediation.
comment
String
Analyst comments on the control (for customer control management).
state
String
Analyst driven setting on the control. Possible values are: Default, Ignored, ThirdParty, Reviewed.
Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=SecureScore;). Provider and vendor fields are required.
Response
If successful, this method returns a 204 No Content response code.
If the optional request header is used, the method returns a 200 OK response code and the updated secureScoreControlProfiles object in the response body.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new SecureScoreControlProfile
{
VendorInformation = new SecurityVendorInformation
{
Provider = "SecureScore",
ProviderVersion = null,
SubProvider = null,
Vendor = "Microsoft",
},
AdditionalData = new Dictionary<string, object>
{
{
"assignedTo" , ""
},
{
"comment" , "control is reviewed"
},
{
"state" , "Reviewed"
},
},
};
var result = await graphClient.Security.SecureScoreControlProfiles["{secureScoreControlProfile-id}"].PatchAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new SecureScoreControlProfile();
$vendorInformation = new SecurityVendorInformation();
$vendorInformation->setProvider('SecureScore');
$VendorInformation->setProviderVersion(null);
$VendorInformation->setSubProvider(null);
$vendorInformation->setVendor('Microsoft');
$requestBody->setVendorInformation($vendorInformation);
$additionalData = [
'assignedTo' => '',
'comment' => 'control is reviewed',
'state' => 'Reviewed',
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->security()->secureScoreControlProfiles()->bySecureScoreControlProfileId('secureScoreControlProfile-id')->patch($requestBody);
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new SecureScoreControlProfile
{
VendorInformation = new SecurityVendorInformation
{
Provider = "SecureScore",
ProviderVersion = null,
SubProvider = null,
Vendor = "Microsoft",
},
AdditionalData = new Dictionary<string, object>
{
{
"assignedTo" , ""
},
{
"comment" , "control is reviewed"
},
{
"state" , "Reviewed"
},
},
};
var result = await graphClient.Security.SecureScoreControlProfiles["{secureScoreControlProfile-id}"].PatchAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new SecureScoreControlProfile();
$vendorInformation = new SecurityVendorInformation();
$vendorInformation->setProvider('SecureScore');
$VendorInformation->setProviderVersion(null);
$VendorInformation->setSubProvider(null);
$vendorInformation->setVendor('Microsoft');
$requestBody->setVendorInformation($vendorInformation);
$additionalData = [
'assignedTo' => '',
'comment' => 'control is reviewed',
'state' => 'Reviewed',
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->security()->secureScoreControlProfiles()->bySecureScoreControlProfileId('secureScoreControlProfile-id')->patch($requestBody);