@9982c2a9-df9e-49ee-8db8-68420607ec20
You need to add "sendInvitationMessage":false
to the body of your Post call. Please refer to below Graph Call and Body:
Call:
POST https://graph.microsoft.com/v1.0/invitations
Body:
{"invitedUserEmailAddress":"user@example.com","sendInvitationMessage":false,"inviteRedirectUrl":"https://myapp.com"}
In order to get a list of all guest users who have accepted and who haven't accepted the invite, you can use below call:
GET https://graph.microsoft.com/beta/users?$filter=UserType eq 'Guest'&$select=displayname,externalUserState
To get a list of only those users who have accepted the invite, use below call:
GET https://graph.microsoft.com/beta/users?$filter=externalUserState eq 'Accepted'&$select=DisplayName,externalUserState
or
https://graph.microsoft.com/beta/users?$filter=UserType eq 'Guest'&$filter=externalUserState eq 'Accepted'&$select=DisplayName,externalUserState
or
https://graph.microsoft.com/beta/users?$filter=UserType eq 'Guest'&$filter=externalUserState eq 'Accepted'
Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.