I'm inviting a user to be added as a Member to my Active Directory using the Microsoft Graph REST API.
curl -X POST \
https://graph.microsoft.com/v1.0/invitations \
-H 'authorization: Bearer ey...Jg' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"invitedUserEmailAddress": "[email protected]",
"inviteRedirectUrl": "https://example.com/afterInvite",
"sendInvitationMessage": false,
"invitedUserType":"Member"
}'
I do receive a correct response with the status field:
"status": "PendingAcceptance",
which of course is true as the user has just been invited. Is there a way to see if the user has redeemed the invitation yet?
Thanks a lot
I found it in the graph explorer:
https://graph.microsoft.com/v1.0/users?
$filter=(UserType eq 'Guest') and (mail eq '[email protected]')&
$select=externalUserState
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With