Для вызова этого API требуется одно из следующих разрешений. Дополнительные сведения, включая сведения о том, как выбрать разрешения, см. в статье Разрешения.
Тип разрешения
Разрешения (в порядке повышения привилегий)
Делегированные (рабочая или учебная учетная запись)
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new ManagedDeviceMobileAppConfigurationUserSummary
{
OdataType = "#microsoft.graph.managedDeviceMobileAppConfigurationUserSummary",
PendingCount = 12,
NotApplicableCount = 2,
SuccessCount = 12,
ErrorCount = 10,
FailedCount = 11,
LastUpdateDateTime = DateTimeOffset.Parse("2016-12-31T23:58:21.6459442-08:00"),
ConfigurationVersion = 4,
};
// To initialize your graphClient, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceAppManagement.MobileAppConfigurations["{managedDeviceMobileAppConfiguration-id}"].UserStatusSummary.PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
ManagedDeviceMobileAppConfigurationUserSummary managedDeviceMobileAppConfigurationUserSummary = new ManagedDeviceMobileAppConfigurationUserSummary();
managedDeviceMobileAppConfigurationUserSummary.setOdataType("#microsoft.graph.managedDeviceMobileAppConfigurationUserSummary");
managedDeviceMobileAppConfigurationUserSummary.setPendingCount(12);
managedDeviceMobileAppConfigurationUserSummary.setNotApplicableCount(2);
managedDeviceMobileAppConfigurationUserSummary.setSuccessCount(12);
managedDeviceMobileAppConfigurationUserSummary.setErrorCount(10);
managedDeviceMobileAppConfigurationUserSummary.setFailedCount(11);
OffsetDateTime lastUpdateDateTime = OffsetDateTime.parse("2016-12-31T23:58:21.6459442-08:00");
managedDeviceMobileAppConfigurationUserSummary.setLastUpdateDateTime(lastUpdateDateTime);
managedDeviceMobileAppConfigurationUserSummary.setConfigurationVersion(4);
ManagedDeviceMobileAppConfigurationUserSummary result = graphClient.deviceAppManagement().mobileAppConfigurations().byManagedDeviceMobileAppConfigurationId("{managedDeviceMobileAppConfiguration-id}").userStatusSummary().patch(managedDeviceMobileAppConfigurationUserSummary);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.managed_device_mobile_app_configuration_user_summary import ManagedDeviceMobileAppConfigurationUserSummary
# To initialize your graph_client, see https://video2.skills-academy.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ManagedDeviceMobileAppConfigurationUserSummary(
odata_type = "#microsoft.graph.managedDeviceMobileAppConfigurationUserSummary",
pending_count = 12,
not_applicable_count = 2,
success_count = 12,
error_count = 10,
failed_count = 11,
last_update_date_time = "2016-12-31T23:58:21.6459442-08:00",
configuration_version = 4,
)
result = await graph_client.device_app_management.mobile_app_configurations.by_managed_device_mobile_app_configuration_id('managedDeviceMobileAppConfiguration-id').user_status_summary.patch(request_body)
Ниже приведен пример отклика. Примечание. Представленный здесь объект отклика может быть усечен для краткости. При фактическом вызове будут возвращены все свойства.