While testing an (enterprise) integration, I've found that the Auth0 ManagementApi SDK does NOT set the "SendInvitationEmail" parameter to true (even though the documentation says it defaults to true.
This aligns with what the rest api documentation says, but no emails are sent unless you actually set the invitaiton email to true.
Reproduction
Invoke the client.Organizations.CreateInvitationAsync method with valid parameters.
OrganizationInvitation inviteResponse = await client.Organizations.CreateInvitationAsync(
orgId,
new OrganizationCreateInvitationRequest
{
ClientId = auth0ApplicationClientId,
ConnectionId = _connectionId,
Invitee = new OrganizationInvitationInvitee
{
Email = userEmail
},
Inviter = new OrganizationInvitationInviter
{
// this seems to only be for displaying in the auth0 dashboard
Name = inviterName
},
// SendInvitationEmail = true
});
Checklist
Description
While testing an (enterprise) integration, I've found that the Auth0 ManagementApi SDK does NOT set the "SendInvitationEmail" parameter to true (even though the documentation says it defaults to true.
This aligns with what the rest api documentation says, but no emails are sent unless you actually set the invitaiton email to true.
Reproduction
Additional context
No response
auth0.net version
7.25.0
.NET version
4.8