Retrieve a list of users who have been granted 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.
In addition to the following permissions, the user or app's tenant must have an active Universal Print subscription and have a permission that grants List users access. The signed in user must be a Printer Administrator.
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
PrinterShare.Read.All, PrinterShare.ReadWrite.All
Delegated (personal Microsoft account)
Not Supported.
Application
Not Supported.
HTTP request
GET /print/shares/{printerShareId}/allowedUsers
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK response code and a collection of user objects in the response body.
GET https://graph.microsoft.com/v1.0/print/shares/{printerShareId}/allowedUsers
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.Print.Shares["{printerShare-id}"].AllowedUsers.GetAsync();
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$result = $graphServiceClient->print()->shares()->byShareId('printerShare-id')->allowedUsers()->get();