Forum Discussion
Resource Mailbox Usage Reporting
I'm getting all the way to the point where I get the following error:
Unable to query Graph API: 'The remote server returned an error: (401) Unauthorized.'
Have tried with my own Global Admin and with admin@tenant.onmicrosoft.com.
You don't need any special account in Office 365/Azure in order to run the script (actually, just run it with your normal/local account!). What you need to do is go to the Azure management portal (portal.azure.com), then go to "App registrations", and click on "New registration". From there, give it a name, create a secret, and in "API permissions" give it the permissions I mention in the script for "Microsoft Graph".
Then, you use the details from the app registration to update the $ClientID, $ClientSecret, and $TenantID properties in the script. This is what the script uses to authenticate against Graph API and retrieve all the information from meeting rooms.
- RaksChauhanSep 19, 2021Iron ContributorHey Tony or Nuno,
I am looking to get some resource mailbox usage stats, but the link in this thread to the script doesnt lead anywhere.
Do you have a copy of a working script i can use please?
TIA- Nuno MotaSep 20, 2021Copper ContributorHi Rakesh,
Please have a look at this: https://github.com/NunoFilipeMota/PublicScripts
Regards,
Nuno- Rickage90Nov 07, 2022Copper ContributorHi Nuno, I have been able to run the script using the -all switch but found it is only getting information of about 65 meeting rooms and we have about 120, is there something I can do to fix this issue?