'Fastlane Testflight distribute to external users

I tried to upload the IPA file to Testflight with success and when I uploaded it automatically Internal testers are added and notified of the new version applied.When I tried to add external groups stand not added. There are no errors from Fastlane. Here is my lane. Thanks!

 desc "Upload to Testflight"
    lane :testflight_track do
       app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
       api_key = lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
       upload_to_testflight(
       api_key: api_key,
       app_identifier: app_identifier,
       ipa:"ipaname",
       changelog: "testnotes",
       distribute_external: true,
       skip_waiting_for_build_processing: true,
       groups: [
           "Internal Users",
           "External Users"
       ]
    )


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source