12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.28k stars 567 forks source link

Error while running the script TeamsGroupsActivityReportV5.PS1 #24

Closed altonbrinja closed 3 years ago

altonbrinja commented 3 years ago

image

themarkdiesel commented 3 years ago

Yep, getting the same.

JH050 commented 3 years ago

You probably get this error because you did not change the values at lines 133, 134 and 135 in the code. You need to change them to the id's of your App that you registered in Azure Active Directory.

12Knocksinna commented 3 years ago

Yep. You've got to have the right tenant id, app id, and app secret to run any Graph-based script. And you've got to make sure that the app you use has the right permissions.