aaronengels / DattoRMM

A PowerShell module that connects to the Datto RMM API
GNU General Public License v3.0
64 stars 23 forks source link

Different results between Get-DrmmSiteDevices and Get-DrmmAccountDevices #24

Closed bc-rb closed 1 year ago

bc-rb commented 3 years ago

I am having an issue pulling back all devices. I am pretty sure it's an API issue (not a problem with the script) but I figured posting here can't hurt.

When retrieving devices via Get-DrmmSiteDevices, I get all devices for the particular site that I pass in.

However, when calling Get-DrmmAccountDevices, there are a lot that are not returned. In fact, I am missing about 1/3 of our devices.

What is especially interesting is that the missing devices are throughout the account so it's not like just certain accounts aren't returned (considered a permission issue). I have one site that has 37 devices and when I call the first method I get all 37. But when I make the account device call, I only get 32 returned. There is nothing that stands out about the missing ones - they are alphabetically dispersed and active devices.

Any thoughts would be much appreciated.

Thanks!