WindowsUpdates.ReadWrite.All
Allows the app to read and write all Windows update deployment settings for the organization without a signed-in user.
Permission Details
Read and write all Windows update deployment settings
Allows the app to read and write all Windows update deployment settings for the organization without a signed-in user.
7dd1be58-6e76-4401-bf8d-31d1e8180d5b
Read and write all Windows update deployment settings
Allows the app to read and write all Windows update deployment settings for the organization on behalf of the signed-in user.
11776c0c-6138-4db3-a668-ee621bea2555
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
edge |
object |
A container for Microsoft Edge resources. Read-only. |
exchange |
object |
A container for the Exchange admin functionality. Read-only. |
microsoft365Apps |
object |
A container for the Microsoft 365 apps admin functionality. |
people |
object |
Represents a setting to control people-related admin settings in the tenant. |
reportSettings |
object |
A container for administrative resources to manage reports. |
serviceAnnouncement |
object |
A container for service communications resources. Read-only. |
sharepoint |
object |
|
teams |
object |
A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.admin"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
configurationManagement |
configurationManagement |
A container for Tenant Configuration Management (TCM) resources. Read-only. |
edge |
edge |
A container for Microsoft Edge resources. Read-only. |
exchange |
exchangeAdmin |
A container for the Exchange admin functionality. Read-only. |
microsoft365Apps |
adminMicrosoft365Apps |
A container for the Microsoft 365 apps admin functionality. |
people |
peopleAdminSettings |
Represents a setting to control people-related admin settings in the tenant. |
reportSettings |
adminReportSettings |
A container for administrative resources to manage reports. |
serviceAnnouncement |
serviceAnnouncement |
A container for service communications resources. Read-only. |
sharepointSettings |
sharepointSettings |
A container for administrative resources to manage tenant-level settings for SharePoint and OneDrive. |
teams |
teamsAdministration.teamsAdminRoot |
A container for Teams administration functionalities, such as Teams telephone number management functionalities, user Teams configurations, and policy assignments. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models.WindowsUpdates;
using Microsoft.Kiota.Abstractions.Serialization;
var requestBody = new ContentApproval
{
OdataType = "#microsoft.graph.windowsUpdates.contentApproval",
Content = new CatalogContent
{
OdataType = "#microsoft.graph.windowsUpdates.catalogContent",
CatalogEntry = new FeatureUpdateCatalogEntry
{
OdataType = "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry",
Id = "6b7e60db-a8e4-426a-9aed-bd12b5c0b9d4",
},
},
DeploymentSettings = new DeploymentSettings
{
},
AdditionalData = new Dictionary<string, object>
{
{
"schedule" , new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"startDateTime", new UntypedString("String (timestamp)")
},
{
"gradualRollout", new UntypedObject(new Dictionary<string, UntypedNode>
{
{
"@odata.type", new UntypedString("#microsoft.graph.windowsUpdates.dateDrivenRolloutSettings")
},
{
"endDateTime", new UntypedString("String (timestamp)")
},
})
},
})
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Admin.Windows.Updates.UpdatePolicies["{updatePolicy-id}"].ComplianceChanges.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const complianceChange = {
'@odata.type': '#microsoft.graph.windowsUpdates.contentApproval',
content: {
'@odata.type': '#microsoft.graph.windowsUpdates.catalogContent',
catalogEntry: {
'@odata.type': '#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry',
id: '6b7e60db-a8e4-426a-9aed-bd12b5c0b9d4'
}
},
deploymentSettings: {},
schedule: {
startDateTime: 'String (timestamp)',
gradualRollout: {
'@odata.type': '#microsoft.graph.windowsUpdates.dateDrivenRolloutSettings',
endDateTime: 'String (timestamp)'
}
}
};
await client.api('/admin/windows/updates/updatePolicies/a7aa99c1-34a2-850c-5223-7816fde70713/complianceChanges')
.version('beta')
.post(complianceChange);
Import-Module Microsoft.Graph.Beta.WindowsUpdates
$params = @{
"@odata.type" = "#microsoft.graph.windowsUpdates.contentApproval"
content = @{
"@odata.type" = "#microsoft.graph.windowsUpdates.catalogContent"
catalogEntry = @{
"@odata.type" = "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry"
id = "6b7e60db-a8e4-426a-9aed-bd12b5c0b9d4"
}
}
deploymentSettings = @{
}
schedule = @{
startDateTime = "String (timestamp)"
gradualRollout = @{
"@odata.type" = "#microsoft.graph.windowsUpdates.dateDrivenRolloutSettings"
endDateTime = "String (timestamp)"
}
}
}
New-MgBetaWindowsUpdatesPolicyComplianceChange -UpdatePolicyId $updatePolicyId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.windows_updates.content_approval import ContentApproval
from msgraph_beta.generated.models.windows_updates.catalog_content import CatalogContent
from msgraph_beta.generated.models.windows_updates.feature_update_catalog_entry import FeatureUpdateCatalogEntry
from msgraph_beta.generated.models.windows_updates.deployment_settings import DeploymentSettings
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ContentApproval(
odata_type = "#microsoft.graph.windowsUpdates.contentApproval",
content = CatalogContent(
odata_type = "#microsoft.graph.windowsUpdates.catalogContent",
catalog_entry = FeatureUpdateCatalogEntry(
odata_type = "#microsoft.graph.windowsUpdates.featureUpdateCatalogEntry",
id = "6b7e60db-a8e4-426a-9aed-bd12b5c0b9d4",
),
),
deployment_settings = DeploymentSettings(
),
additional_data = {
"schedule" : {
"start_date_time" : "String (timestamp)",
"gradual_rollout" : {
"@odata_type" : "#microsoft.graph.windowsUpdates.dateDrivenRolloutSettings",
"end_date_time" : "String (timestamp)",
},
},
}
)
result = await graph_client.admin.windows.updates.update_policies.by_update_policy_id('updatePolicy-id').compliance_changes.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for WindowsUpdates.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.