Skip to content

Extend permissions in ms365 auto setup to allow querying devices #1708

@tas50

Description

@tas50

Describe the bug
Let's ensure we have the permissions via the automatic setup to perform queries on devices:

cnquery> microsoft.devicemanagement.managedDevices
error while performing request. Code: Forbidden, Message: {
  "_version": 3,
  "Message": "Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 9567c8a9-89e5-4fc7-bb4a-3558aa3df883 - Url: https://fef.msua09.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices?api-version=2024-06-14&$expand=windowsProtectionState",
  "CustomApiErrorPhrase": "",
  "RetryAfter": null,
  "ErrorSourceService": "",
  "HttpHeaders": "{}"
}
microsoft.devicemanagement.managedDevices: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions