Skip to content

LMv1 fails with Set-LMDeviceGroup but Bearer works for same user #94

Description

@aggie87

LMv1 fails on Set-LMDeviceGroup; Bearer works (same user)

Symptom

  • Connect-LMAccount with LMv1 (Access ID/Key)
  • Get-LMDeviceGroup → OK
  • Set-LMDeviceGroup (PATCH, ?opType=replace) → Authentication failed
  • Same user + roles with BearerSet-LMDeviceGroup OK

Reproduce Issue

# LMv1 session
Get-LMDeviceGroup -Filter 'fullPath -eq "Locations/Example/Group"'   # works

Set-LMDeviceGroup -Id '<id>' -NewName '<name>' -ParentGroupId <parentId> `
  -Properties @{ prop1 = 'value1'; prop2 = 'value2' } -Confirm:$false
# → Authentication failed

# Same account via Bearer → same Set-LMDeviceGroup succeeds

Likely area

Private/New-LMHeader.ps1 — LMv1 signs PATCH + epoch + body + path; GET has no body. Bearer skips signing. Suspect signature/body mismatch on device-group PATCH.

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