Office 365 filter rule for blacklist and whitelist user

We have several office365 admin accounts and wanted to create a global blacklist and whitelist so that we can quickly add an email or domain and it’ll be in effect immediately for everyone.

It will be helpful if we get an option like upload the detail through .csv files etc., I believe it will save a lot of time for us or else a PowerShell script can also be fine.

If anyone shares their experience or thought I will be very humble to accept it

Hello,
Please check the link below.