Jannos-443 / PRTG-M365

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

Enforce TLS 1.2 in License Script and assign permissions in AAD App #1

Closed harbinger85585 closed 1 year ago

harbinger85585 commented 1 year ago

Thank you for the great M365 licensing script. Since a few days it wasn't working anymore for us, I had to enforce TLS1.2 with the following command at the beginning of the script:

Also the check for groups with assignments wasn't working anymore, I've had to assign the application permission Directory.ReadAll to the AAD App so the query would work again.

Jannos-443 commented 1 year ago

Hello,

the permission thing was my fault, forgot to add "Group.Read.All" to the requirements because of the Group Based License check. You could try to remove "Directory.ReadAll".

I added the Tls1.2 part into the script :)

harbinger85585 commented 1 year ago

Hi,

Thanks for adding the TLS part. I've added the Group.Read.All permissions to the App, removed the Directory.Read.All and can confirm that it's working. I think this closes the issue.