Revoke the specified user's access to submit print jobs to the associated printerShare.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
To use the Universal Print service, the user or app's tenant must have an active Universal Print subscription, in addition to the permissions listed in the following table. The signed in user must be a Printer Administrator.
var graphClient = new GraphServiceClient(requestAdapter);
await graphClient.Print.Shares["{printerShare-id}"].AllowedUsers["{user-id}"].Ref.DeleteAsync();
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
graphClient.Print().SharesById("printerShare-id").AllowedUsersById("user-id").Ref().Delete(context.Background(), nil)
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$graphServiceClient->print()->sharesById('printerShare-id')->allowedUsersById('user-id')->ref()->delete();