Skip to main content

Details - O365 Authorization Tool

Updated over 6 months ago

Office 365 does not allow Administrator access to user OneDrive files and folders by default, Cloud Access Monitor requires these permissions in order to gain OneDrive file / folder visibility. The ManagedMethods team has developed a tool to automatically open these permissions in your environment. Below are instructions to use the Authorization tool.

NOTE: The tool must be run on an account within your TENANT domain. The tool will not work on an administrative account outside of the <YourCompany>.onmicrosoft.com domain.


STEP ONE:

Click here to Download the Authorization Tool.


STEP TWO:

Search your machine for "Windows PowerShell". Right click OR Select "Run as Administrator".

mceclip0.png

STEP THREE:

Using PowerShell navigate to the directory where the Authorization Tool is installed.

Navigate to home directory: cd ~

mceclip6.png

Find the PSAuthTool file and right click then select "Properties". Copy the file "Location"

mceclip7.png
From PowerShell input: cd <Location>

mceclip8.png

STEP FOUR:

Run the Authorization Tool

From PowerShell input: .\PSAuthTool.ps1

mceclip9.png

If done successfully you will receive the pre run script "Security warning".

(Error: Script not digitally signed: Input "Set-ExecutionPolicy unrestricted")
(Error: SharePoint tools required: Input "Install-Module -Name Microsoft.Online.SharePoint.PowerShell")

Run once with the input: R

mceclip10.png

Enable Advanced Logging with the input: y

mceclip11.png

STEP FIVE:

  • Enter your Office-365 Tenant Administrator credentials as prompted.

  • Enter the full account name: <UserName>@<YourCompany>.onmicrosoft.com

  • (This must be a Tennant related administrative account within the <YourCompany>.onmicrosoft.com domain.)

mceclip12.png

Enter only the Domain: <YourCompany>

mceclip13.png

For PowerShell prompt steps 3 and 4 input: n

mceclip15.png

If done successfully you will receive the "Connecting with..." status followed by a Microsoft login pop-up.


STEP SIX:

Enter your Office-365 Tenant Administrator credentials as prompted.

mceclip16.png

If done successfully the Authorization tool will begin running its process.

mceclip17.png

STEP SEVEN:

The tool will run and give administrative permission into all files and folders within your environment.

Once the prompt shows the completed "Elapsed Time" you may exit the application.

mceclip18.png

STEP EIGHT:

The tool will output a .txt log file. Search your machine for "MMlogfile-(yyyy-mm-dd-hour)"

mceclip0.png

Please email [email protected] and attach log file.

("I have completed the O365 Authorization Tool steps and attached are the logs.")


STEPS COMPLETE:

Return to the O365 Setup Process Here.

Did this answer your question?