STEP 1: First we will need to make sure that our admin account has the correct permissions. Go to the Exchange Online Admin center, and then to permissions – admin roles and click on the + sign to add a new role
We will now create a new role group. Give it the name Address List Management and assign the role Address lists, and make sure to add the administrator account as a member. Click Save when ready.
Step 2: Our next step will be to go to PowerShell on your local computer and run the following commands. But, after granting permissions, I would recommend to wait at least a minute or 5 before proceeding. First connect with Exchange Online: