Last post Aug 22, 2019 11:44 PM by WilliamSnell
Aug 21, 2019 09:24 PM|WilliamSnell|LINK
I'm getting the error in this post's title. The only suggestion I found that addressed this directly stated this:
You're attempting to invite someone with an address from one of the verified domains. In other words, if your tenant lists company.onmicrosoft.com and company.com as verified domains, attempting to invite an address ending
in @company.onmicrosoft.com or @company.com will fail.
The external email address you supplied already exists in the tenant (typically because they've already accepted a previous invitation).
Both of these boil down to the same root cause: you cannot send an invitation to an email address that has already been assigned to an existing user.
I don't understand this. What does it mean for someone to already exist in the tenant? Just accepting an invite to the event? That's my assumption, but I have no idea what it means to send an invite to an email address assigned to an existing user. Does
that mean essentially the same thing as #1? I thought that meant since my user account was the one used to set up an event, I couldn't invite myself to the same event, but I sent an invite to someone else, and got the exact same error. This is the code I'm
public async Task<Invitation> SendInvitation(string invitee, string redirectUrl)
var graphClient = GetAuthenticatedClient();
var invitation = new Invitation
InvitedUserEmailAddress = invitee,
InviteRedirectUrl = redirectUrl
var invite = await graphClient.Invitations.Request().AddAsync(invitation);
With this, how does it even know what Event it's sending an invitation for? Is the InviteRedirectUrl generated unique? Any help would be greatly appreciated.
Aug 22, 2019 12:20 AM|PatriceSc|LINK
It seems you are trying to invite a user whose account is (or should be) under your control (for example created directly in your Azure AD or kept in sync from an on premise directory owned by your organization or maybe a non existing account whose
mail ends with your own on premise domain name etc...). Use https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade/AllUsers and see
if you find the user you are trying to invite.
It's not an invitation to an "event". This to invite external users to register themselves inside your own Azure AD tenant so that they can access your own resources using an account which is not under your control. It creates immediately a "guest" account
(to which you can immediately assign permissions etc...) which will be enabled once the user completed the registration process. Depending on the situation the user will be able then to just use his existing company or Microsoft account (or at worst will
have to create a new Microsoft account).
Aug 22, 2019 04:23 PM|WilliamSnell|LINK
I'm still a bit confused. I did a search on inviting others to a calendar event, and the code I showed in my post is what I found. But that's to invite them to share account control? If it's to assume control over my account's resources, then why does the
Invitation take an InviteRedirectUrl as part of the Invitation object? Here's the article I was referencing: Send Event Invitation
So far my application:
My application has sufficient permissions to perform these tasks, but I'm having difficulty sending invitations to other users. If the article I found wasn't for this, could you suggest another?
Aug 22, 2019 06:24 PM|PatriceSc|LINK
Nope. As said on this page "Invitation adds an external user to the the organization"' and check the parent "Invitation Manager" page.
Instead see rather around https://docs.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http or maybe https://en.wikipedia.org/wiki/ICalendar
for a general audience.
Aug 22, 2019 11:44 PM|WilliamSnell|LINK
Thanks. You were 100% correct. Turned out the trick was to include an organizer to the meeting, and all attendees are then sent an invitation email. I went off on the completely wrong tangent.