Jannos-443 / PRTG-M365

PRTG Microsoft 365 Scripts
MIT License
10 stars 6 forks source link

PRTG-M365-Licenses.ps1: GroupBasedLicenseError shows 0 while it should be 1 #9

Closed Sabbest313 closed 1 year ago

Sabbest313 commented 1 year ago

Hi,

I've setup the PRTG-M365-Licenses.ps1 script. I've purposely set 1 group to have licenses errors (14 users added with only 13 licenses present). The reported license count is correct, however the GroupBasedLicenseError still shows 0 instead of 1. I'm using the GroupBasedLicenseError wrong? As I see it it should return the number of groups that have license errors within the scope of the queried licenses.

Jannos-443 commented 1 year ago

Hi, did you see the license error in Azure AD itself? Should exactly work as you described

Sabbest313 commented 1 year ago

HI,

Yes, Azure AD does show the error yet PRTG doesn't (see attachments).

AAD_group_error PRTG_no_error

Jannos-443 commented 1 year ago

looks like Microsoft changed something in the Graph API, should now work again with the latest Version :)

Sabbest313 commented 1 year ago

Updatet to the latest version, indeed it works now. Thanks a lot!