PlaceDeviceTelemetry.ReadWrite.All
Allows the app to read and write telemetry for all workplace devices, without a signed-in user.
Permission Details
Read and write telemetry for all workplace devices.
Allows the app to read and write telemetry for all workplace devices, without a signed-in user.
27fc435f-44e2-4b30-bf3c-e0ce74aed618
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
sensorDevices |
workplaceSensorDevice collection |
A collection of sensor devices. |
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.workplace"
}
Relationships
Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Relationship | Type | Description |
|---|---|---|
sensorDevices |
workplaceSensorDevice collection |
A collection of sensor devices. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
| Methods |
|---|
POST
/workplace/sensorDevices/ingestTelemetry
|
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Workplace.SensorDevices.IngestTelemetry;
using Microsoft.Graph.Beta.Models;
var requestBody = new IngestTelemetryPostRequestBody
{
Telemetry = new List<WorkplaceSensorDeviceTelemetry>
{
new WorkplaceSensorDeviceTelemetry
{
DeviceId = "contoso_9D6816",
SensorType = WorkplaceSensorType.Occupancy,
BoolValue = false,
Timestamp = DateTimeOffset.Parse("2021-03-31T09:36:05.144Z"),
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Workplace.SensorDevices.IngestTelemetry.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const ingestTelemetry = {
telemetry: [
{
deviceId: 'contoso_9D6816',
sensorType: 'occupancy',
boolValue: false,
timestamp: '2021-03-31T09:36:05.144Z'
}
]
};
await client.api('/workplace/sensorDevices/ingestTelemetry')
.version('beta')
.post(ingestTelemetry);
Connect-MgGraph -Scopes "PlaceDeviceTelemetry.ReadWrite.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/workplace/sensorDevices/ingestTelemetry"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.workplace.sensordevices.ingest_telemetry.ingest_telemetry_post_request_body import IngestTelemetryPostRequestBody
from msgraph_beta.generated.models.workplace_sensor_device_telemetry import WorkplaceSensorDeviceTelemetry
from msgraph_beta.generated.models.workplace_sensor_type import WorkplaceSensorType
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = IngestTelemetryPostRequestBody(
telemetry = [
WorkplaceSensorDeviceTelemetry(
device_id = "contoso_9D6816",
sensor_type = WorkplaceSensorType.Occupancy,
bool_value = False,
timestamp = "2021-03-31T09:36:05.144Z",
),
],
)
await graph_client.workplace.sensor_devices.ingest_telemetry.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions and search for PlaceDeviceTelemetry.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.