Azure AD - How To Get B2B (Guest) Users Invitation Acceptance Status Report

Query King | Mon, 31 Aug 2020 at 05:40 hours | Replies : 2 | Points : 100

Category : Microsoft Azure


Hi,

How do i get B2B (Guest) Users Invitation Acceptance Status Report using Power Shell for Azure Active Directory.

Please help.


This Question is already solved Click To See The Answer


Hi,

Use below script to generate B2B (Guest) Users Invitation Acceptance Status Report/List using Power Shell for Azure Active Directory.

Hope it will help you.


#To Connect with Azure AD
Import-Module AzureAD
Connect-AzureAD
#To Get Current Date for File Name
$Date = Get-Date -Format MM-DD-YYYY
#To Generate B2B (Guest) Users Invitation Acceptance List
Get-AzureADUser -All $True | Where-Object {$_.UserType -eq 'Guest'} | Select-Object -Property DisplayName,Mail,CreationType,UserState,UserStateChangedOn | Export-CSV GuestUsersStatus_$Date.csv

 

Hi Santosh,

 

Thanks a lot. it worked as expected.