microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Get-MgBetaDeviceManagementManagedDevice not showing RoleScopeTagIds

Open
#3,253 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question: SDK Status: Needs Investigation
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Describe the bug

in ver 2.26.1 Get-MgBetaDeviceManagementManagedDevice does not show RoleScopeTagIds
These are available via the REST API:
$device = Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/beta/deviceManagement/managedDevices('$id')" -Method GET
$scopeTags = $device.RoleScopeTagIds

Expected behavior

I expected to see the Scope Tag IDs

How to reproduce

$device = Get-MgBetaDeviceManagementManagedDevice -filter "deviceName eq 'deviceName'"
$device.RoleScopeTagIds

SDK Version

2.26.1

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Get-MgBetaDeviceManagementManagedDevice and compare its returned properties with the beta REST response at deviceManagement/managedDevices('$id'), focusing on RoleScopeTagIds. Trace the managed-device model used by this cmdlet and verify that the property is exposed and populated for a filtered device response.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.