microsoftgraph / microsoftgraph/msgraph-sdk-powershell
Get-MgBetaDeviceManagementManagedDevice not showing RoleScopeTagIds
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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