POST /deviceManagement/managedDevices/{managedDeviceId}/deleteUserFromSharedAppleDevice
POST /deviceManagement/detectedApps/{detectedAppId}/managedDevices/{managedDeviceId}/deleteUserFromSharedAppleDevice
POST /deviceManagement/detectedApps/{detectedAppId}/managedDevices/{managedDeviceId}/users/{userId}/managedDevices/{managedDeviceId}/deleteUserFromSharedAppleDevice
POST https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{managedDeviceId}/deleteUserFromSharedAppleDevice
Content-type: application/json
Content-length: 56
{
"userPrincipalName": "User Principal Name value"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.DeviceManagement.ManagedDevices.Item.DeleteUserFromSharedAppleDevice;
var requestBody = new DeleteUserFromSharedAppleDevicePostRequestBody
{
UserPrincipalName = "User Principal Name value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.DeviceManagement.ManagedDevices["{managedDevice-id}"].DeleteUserFromSharedAppleDevice.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphdevicemanagement "github.com/microsoftgraph/msgraph-sdk-go/devicemanagement"
//other-imports
)
requestBody := graphdevicemanagement.NewDeleteUserFromSharedAppleDevicePostRequestBody()
userPrincipalName := "User Principal Name value"
requestBody.SetUserPrincipalName(&userPrincipalName)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.DeviceManagement().ManagedDevices().ByManagedDeviceId("managedDevice-id").DeleteUserFromSharedAppleDevice().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.devicemanagement.manageddevices.item.deleteuserfromsharedappledevice.DeleteUserFromSharedAppleDevicePostRequestBody deleteUserFromSharedAppleDevicePostRequestBody = new com.microsoft.graph.devicemanagement.manageddevices.item.deleteuserfromsharedappledevice.DeleteUserFromSharedAppleDevicePostRequestBody();
deleteUserFromSharedAppleDevicePostRequestBody.setUserPrincipalName("User Principal Name value");
graphClient.deviceManagement().managedDevices().byManagedDeviceId("{managedDevice-id}").deleteUserFromSharedAppleDevice().post(deleteUserFromSharedAppleDevicePostRequestBody);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\DeviceManagement\ManagedDevices\Item\DeleteUserFromSharedAppleDevice\DeleteUserFromSharedAppleDevicePostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new DeleteUserFromSharedAppleDevicePostRequestBody();
$requestBody->setUserPrincipalName('User Principal Name value');
$graphServiceClient->deviceManagement()->managedDevices()->byManagedDeviceId('managedDevice-id')->deleteUserFromSharedAppleDevice()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.devicemanagement.manageddevices.item.delete_user_from_shared_apple_device.delete_user_from_shared_apple_device_post_request_body import DeleteUserFromSharedAppleDevicePostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = DeleteUserFromSharedAppleDevicePostRequestBody(
user_principal_name = "User Principal Name value",
)
await graph_client.device_management.managed_devices.by_managed_device_id('managedDevice-id').delete_user_from_shared_apple_device.post(request_body)
Veja a seguir um exemplo da resposta. Observação: o objeto response mostrado aqui pode estar truncado por motivos de concisão. Todas as propriedades serão retornadas de uma chamada real.