I need to find whether the Guest user has redeemed the invitation or not. When I get the user details from Graph API the returned user doesn't has that kind of information.
But in the Azure Portal I can see the source property under the Identity section is getting changed to Microsoft Account or something like that from "Invited user" when the user redeem the invitation.
Look at the extensionproperty on the azureaduser... it has the userstate for the invitation.
Example:
(Get-AzureADUser -SearchString 'insertusername').ExtensionProperty
the Extension Property shows: SEE USERSTATE "pendingacceptance"
Key Value
--- -----
odata.type Microsoft.DirectoryServices.User
ageGroup
consentProvidedForMinor
createdDateTime 7/09/2018 6:49:38 AM
employeeId
legalAgeGroupClassification
onPremisesDistinguishedName
userIdentities []
userState PendingAcceptance
userStateChangedOn 7/09/2018 6:49:35 AM