-
- Enthusiast
- Posts: 25
- Liked: 16 times
- Joined: Jan 02, 2022 10:05 am
- Full Name: Kay van Aarssen
- Contact:
Check for Tenants connected with Basic Auth
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...
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...
-
- Product Manager
- Posts: 9846
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Check for Tenants connected with Basic Auth
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.
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
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: Check for Tenants connected with Basic Auth
I agree with Mildur. This is probably the easiest way to do it, through the API
-
- Enthusiast
- Posts: 25
- Liked: 16 times
- Joined: Jan 02, 2022 10:05 am
- Full Name: Kay van Aarssen
- Contact:
Re: Check for Tenants connected with Basic Auth
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
Would just be nice if VEEAM provided a script with easy output. But to bad they don't
-
- Veeam Software
- Posts: 1493
- Liked: 655 times
- Joined: Jul 17, 2015 6:54 pm
- Full Name: Jorge de la Cruz
- Contact:
Re: Check for Tenants connected with Basic Auth
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:
Everything in red should be taken care of.
It just requires:
Configure the s-nail with:
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.
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:
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
Code: Select all
apt-get install jq
Code: Select all
apt-get install s-nail
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"
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
Senior Product Manager | Veeam ONE @ Veeam Software
@jorgedlcruz
https://www.jorgedelacruz.es / https://jorgedelacruz.uk
vExpert 2014-2024 / InfluxAce / Grafana Champion
-
- Product Manager
- Posts: 9846
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Check for Tenants connected with Basic Auth
Thanks Jorge
Product Management Analyst @ Veeam Software
Who is online
Users browsing this forum: No registered users and 21 guests