auth0/auth0.net

OrganizationCreateInvitationRequest documentation reports that SendInvitationEmail defaults to true ,

Closed this issue · 1 comments

Checklist

  • I have looked into the Readme and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

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.
{3FAA1E5F-830B-41A7-B973-F40A0627A3B3}

Reproduction

  1. 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
    });

Additional context

No response

auth0.net version

7.25.0

.NET version

4.8

This is fixed in the latest available version 7.27.0
Closing the issue now.