active-directory-dotnet-graphapi-b2bportal-web
active-directory-dotnet-graphapi-b2bportal-web copied to clipboard
Disable Invitation Email
First of all, thank you for putting this up. I am more of a PowerShell type and will like to know how to stop the user from receiving any invitation email at all. I was looking in code for the part that called the Azure B2B invitation API so that I can set SendInvitationMessage to $false with no luck.
Any help at all will be appreciated.
Thanks!
You can simply comment code which is responsible to send mail in GuestRequestRule.CS file. request.Status = await InviteManager.SendInvitation(request, profileUrl, domainSettings);
You can test it out once as I did not test it :)