Maintain control of your Microsoft 365 data
Post Reply
kavaa
Influencer
Posts: 16
Liked: 5 times
Joined: Jan 02, 2022 10:05 am
Full Name: Kay van Aarssen
Contact:

Check for Tenants connected with Basic Auth

Post by kavaa »

Does anyone know how to check with Powershell what tenants are connected via Basic Auth.
So we can change them over to Modern Auth.

We have over 900 Tenants in the server,,, clicking on them one by one and checking would be very time consuming.
VEEAM support is telling is there is no "Script" for it...
Mildur
Product Manager
Posts: 8549
Liked: 2223 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Check for Tenants connected with Basic Auth

Post by Mildur »

Hi Kay

You can try to build yourself a powershell script for the following command:
- Get-VBOOrganization
Each organization contains two properties which shows the authentication type for the tenants SPO and Exchange Online Connection:
- Office365ExchangeConnectionSettings
- Office365SharePointConnectionSettings
I don't find any other possibility in our guides for powershell.

There is another method. You can use VBO RestAPI.
This gives you the following property per organization:
- useApplicationOnlyAuth
If it's True, then no Basic Auth is leveraged for the organization. If it's False, then VBO is configured with Basic Auth for this organization.

I would probably use myself the REST APi Method.
Product Management Analyst @ Veeam Software
Mike Resseler
Product Manager
Posts: 8044
Liked: 1263 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: Check for Tenants connected with Basic Auth

Post by Mike Resseler »

I agree with Mildur. This is probably the easiest way to do it, through the API
kavaa
Influencer
Posts: 16
Liked: 5 times
Joined: Jan 02, 2022 10:05 am
Full Name: Kay van Aarssen
Contact:

Re: Check for Tenants connected with Basic Auth

Post by kavaa »

Thanks with a lot of dirty scripting got it to work.
Would just be nice if VEEAM provided a script with easy output. But to bad they don't
jorgedlcruz
Veeam Software
Posts: 1356
Liked: 613 times
Joined: Jul 17, 2015 6:54 pm
Full Name: Jorge de la Cruz
Contact:

Re: Check for Tenants connected with Basic Auth

Post by jorgedlcruz » 1 person likes this post

Good afternoon,
Saw this right now, thanks to Mildur's quick point to the API, I've prepared a non-official, but quick HTML Report, that looks like this:
Image

Everything in red should be taken care of.

It just requires:
  • Download the veeam_microsoft365_modernauth_report.sh to a Linux server that can reach the VB365 RESTful API Server. I always recommend wget to avoid copy/paste errors
  • chmod + veeam_microsoft365_modernauth_report.sh
  • Edit the Configurations, usually adding a user/pass, and email address. And the Path to the HTML Report on the Linux box needs to exist prior to you executing the Script
  • Run it, and that's it, you can find the HTML on the folder you specified, plus on your email if everything worked as expected
Small system requirements

Code: Select all

apt-get install jq

Code: Select all

apt-get install s-nail
Configure the s-nail with:

Code: Select all

vi ~/.mailrc
set smtp-use-starttls
set ssl-verify=ignore
set smtp=smtp://YOURSMTPSERVER:587
set smtp-auth=login
set smtp-auth-user="YOURUSER@YOURDOMAIN.COM"
set smtp-auth-password="YOURPASSWORD"
set from="YOURFROMEMAIL@YOURDOMAIN.COM"
As said, not official, just something to help you, and others with a similar case, which is really important as you mentioned.

Hope it helps.
Jorge de la Cruz
Senior Product Manager | Veeam ONE @ Veeam Software

@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
Mildur
Product Manager
Posts: 8549
Liked: 2223 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Check for Tenants connected with Basic Auth

Post by Mildur »

Thanks Jorge :)
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: NickyP101 and 17 guests