How to enable Devices API for Places

Hall, Henrik 0 Reputation points
2024-12-16T15:14:48.0633333+00:00

I'm trying out some sensor device APIs within Places. When I try to ingest telemetry for a device, I get the following error:

{
  statusCode: 403, 
  code: 'forbidden', 
  date: '2024-12-16T13:26:25.000Z', 
  body: '{"code":"forbidden","message":"Device APIs are not enabled for this tenant."}
}

I've tried using Set-PlacesSettings as per https://learn.microsoft.com/en-us/microsoft-365/places/powershell/set-placessettings, but to no avail.

Are the Device APIs strictly limited to a particular license level of the tenant? I'm trying this out in a lower tier tenant used for testing only. What are the requirements for enabling the Devices API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,760 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 111.6K Reputation points MVP
    2024-12-16T17:22:15.7166667+00:00

    Looks more like a permissions-related issue, if you are running in the delegate context, try with a Global admin user. But yes, you do need to have a qualifying license to use Places, as detailed for example here: https://learn.microsoft.com/en-us/microsoft-365/places/places-overview#qualifying-microsoft-365-subscriptions-for-core-features


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.