Azure-AccessPermissions – Easy to use PowerShell script to enumerate access permissions in an Azure Active Directory environment

f35585ff791d98de5be5c3c35620ac4c5934dd9daf6cb49e3b75316deb880932


Easy to use PowerShell script to enumerate access permissions in an Azure Active Directory environment.

Background details can be found in the accompanied blog posts:


Requirements

To run this script you’ll need these two PowerShell modules:

All of these can be installed directly within PowerShell:

Usage

First time use

The script uses a browser-based Login UI to connect to Azure. If you run the tool for the first time you might experience the following error

emulation not set for PowerShell or PowerShell ISE! Would you like set the emulation to IE 11? Otherwise the login form may not work! (Y/N): Y Emulation set. Restart PowerShell/ISE!” dir=”auto”>
[*] Connecting to Microsoft Graph...
WARNING: WebBrowser control emulation not set for PowerShell or PowerShell ISE!
Would you like set the emulation to IE 11? Otherwise the login form may not work! (Y/N): Y
Emulation set. Restart PowerShell/ISE!

832a5c3b2dc95e67cd9a838207e51b79cf5a9159d3621f225236cf60a882d858

To solve this simply allow PowerShell to emulate the browser and rerun your command.

Example use

Import and run, no argumentes needed.

Note: On your first run you will likely have to authenticate twice (once Microsoft Graph and once against Azure AD Graph). I might wrap this into a single login in the future…

PS:> Import-Module .\Azure-AccessPermissions.ps1

624e2291454b52d656fe535c8e369a72c117cb45c3db2496eeeea5ff67ad1d4d

141acb2a01f3577ec2146e9ff0c7aa3f8ebbfd12596bb533c28e93c3534ff941




Original Source


 


A considerable amount of time and effort goes into maintaining this website, creating backend automation and creating new features and content for you to make actionable intelligence decisions. Everyone that supports the site helps enable new functionality.

If you like the site, please support us on “Patreon” or “Buy Me A Coffee” using the buttons below

Buy Me A Coffee
Patreon

 To keep up to date follow us on the below channels.

join
Telegram
discord
Discord
reddit
Reddit
linkedin
LinkedIn