Eine der nachfolgenden Berechtigungen ist erforderlich, um diese API aufrufen zu können. Weitere Informationen, unter anderem zur Auswahl von Berechtigungen, finden Sie unter Berechtigungen.
Berechtigungstyp
Berechtigungen (von der Berechtigung mit den wenigsten Rechten zu der mit den meisten Rechten)
Delegiert (Geschäfts-, Schul- oder Unikonto)
DeviceManagementApps.ReadWrite.All
Delegiert (persönliches Microsoft-Konto)
Nicht unterstützt
Anwendung
DeviceManagementApps.ReadWrite.All
HTTP-Anforderung
POST /users/{usersId}/wipeManagedAppRegistrationsByDeviceTag
POST https://graph.microsoft.com/v1.0/users/{usersId}/wipeManagedAppRegistrationsByDeviceTag
Content-type: application/json
Content-length: 39
{
"deviceTag": "Device Tag value"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Users.Item.WipeManagedAppRegistrationsByDeviceTag;
var requestBody = new WipeManagedAppRegistrationsByDeviceTagPostRequestBody
{
DeviceTag = "Device Tag value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Users["{user-id}"].WipeManagedAppRegistrationsByDeviceTag.PostAsync(requestBody);
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc users wipe-managed-app-registrations-by-device-tag post --user-id {user-id} --body '{\
"deviceTag": "Device Tag value"\
}\
'
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.users.item.wipemanagedappregistrationsbydevicetag.WipeManagedAppRegistrationsByDeviceTagPostRequestBody wipeManagedAppRegistrationsByDeviceTagPostRequestBody = new com.microsoft.graph.users.item.wipemanagedappregistrationsbydevicetag.WipeManagedAppRegistrationsByDeviceTagPostRequestBody();
wipeManagedAppRegistrationsByDeviceTagPostRequestBody.setDeviceTag("Device Tag value");
graphClient.users().byUserId("{user-id}").wipeManagedAppRegistrationsByDeviceTag().post(wipeManagedAppRegistrationsByDeviceTagPostRequestBody);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Models\WipeManagedAppRegistrationsByDeviceTagPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new WipeManagedAppRegistrationsByDeviceTagPostRequestBody();
$requestBody->setDeviceTag('Device Tag value');
$graphServiceClient->users()->byUserId('user-id')->wipeManagedAppRegistrationsByDeviceTag()->post($requestBody)->wait();
Nachfolgend sehen Sie ein Beispiel der Antwort. Hinweis: Das hier gezeigte Antwortobjekt ist möglicherweise aus Platzgründen abgeschnitten. Von einem tatsächlichen Aufruf werden alle Eigenschaften zurückgegeben.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unter https://aka.ms/ContentUserFeedback.