Skip to content

Retrieve all guest users from the Azure tenant (MS Graph REST API)

License

Notifications You must be signed in to change notification settings

pstepien77/get-azuread-guestusers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# 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 !

About

Retrieve all guest users from the Azure tenant (MS Graph REST API)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published