active-directory-dotnet-graphapi-b2bportal-web icon indicating copy to clipboard operation
active-directory-dotnet-graphapi-b2bportal-web copied to clipboard

Disable Invitation Email

Open SB-o-matic opened this issue 6 years ago • 1 comments

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!

SB-o-matic avatar Sep 06 '19 17:09 SB-o-matic

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 :)

AmitavaHazra avatar Sep 25 '19 06:09 AmitavaHazra