# get-azuread-guestusers
Retrieve all guest users from the Azure tenant (MS Graph REST API)
This script requires the Web Application and permissions setup in target Azure tenant.
No parameters required - just below registered application details updated in the script code:
$ClientID = "{your ID here}" # Should be a ~35 character string insert your info here
$ClientSecret = "{your secret here}" # Should be a ~44 character string insert your info here
$tenantdomain = "{your tenant here}.onmicrosoft.com" # For example, contoso.onmicrosoft.com
$loginURL = "https://login.windows.net"
How to register application - https://docs.microsoft.com/en-us/graph/auth-v2-service
Permission required - Appliction:Directory.Read.All
Remember to consent to application !pstepien77/get-azuread-guestusers
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|