JSCAPE
  • Products
    • Managed File Transfer
    • JSCAPE SaaS
    • MFT Gateway
    • MFT Monitor
    • All Products
  • Solutions
    • All Solutions
    • Secure File Transfer
    • AS2 Server Software
    • File Synchronization
    • Reverse Proxy
    • Compliance
    • DMZ Streaming
  • Pricing
  • Company
    • Blog
    • Company
    • Contact Us
    • Clients
    • Case Studies
    • Testimonials
    • Certifications
  • Support
    • Help Desk
    • Documentation
    • Customer Downloads
Get a demo

Segregating files received from different AS2 trading partners

Words by

John Carl Villanueva

Files coming in via unauthenticated AS2 file transfers are stored in one common directory. However, in most cases, you would like to segregate files according to their sending trading partner. This post will teach you how to set up MFT Server for that.

Published in:

Blog

/

AS2, Business Process Automation, JSCAPE MFT, Managed File Transfer, Triggers

Files coming in via unauthenticated AS2 file transfers are stored in one common directory. However, in most cases, you would like to segregate files according to their sending trading partner. This post will teach you how to set up MFT Server for that.

It’s easy to segregate files when they’re uploaded to your server via authenticated AS2 file transfers. In fact, you don’t have to do anything in this case because the uploaded files will simply be stored into the directory of a user account who will most likely be associated with the sending trading partner. Let me elaborate on that a bit in case you found that confusing.

Authenticated vs Unauthenticated AS2 transfers

When trading partners wish to connect to JSCAPE MFT Server’s AS2 service, they have the option to authenticate using user account credentials or not. When a trading partner authenticates using user account credentials, we call that an authenticated transfer. Those that don’t authenticate with user account credentials are called unauthenticated transfers.

To illustrate, if the sending AS2 trading partner was also a JSCAPE MFT Server instance and it wished to perform an authenticated transfer with your MFT Server, its trading partner settings would typically include values in the username and password fields.

authenticated as2 transfers

To clarify, that doesn’t mean unauthenticated transfers don’t employ any form of authentication. They still do. They can still authenticate through digital certificates (see article ‘Taking Advantage of SSL/TLS Security When Running AS2 On HTTPS‘).

Segregating files of trading partners using authenticated transfers

One advantage of using authenticated transfers is that it’s easier to segregate inbound files according to their sending AS2 trading partners. That’s because each trading partner that connects via an authenticated transfer will likely already be associated with an existing user account whose username and password were used during authentication. Thus, when those trading partners upload files, those files will be automatically stored in their respective user account directories.

mft_server_as2_authenticated_transfer

For unauthenticated transfers, it’s not that straightforward.

Segregating files of trading partners using unauthenticated transfers

When files are uploaded via unauthenticated AS2 transfers, all those files are stored in one common directory

mft_server_as2_unauthenticated_transfer

And that directory belongs to the user account specified in the ‘Bind unauthenticated transfers…’ setting in Settings > Web > AS2.

bind unauthenticated transfers to user

Since all uploaded files will be stored in one common directory, you need to do a few additional steps if you want to segregate those files according to sending trading partners. But don’t worry. There’s nothing to it. Basically, all you need to do is create a trigger that uses the File Upload trigger event and then you have two options:

Option 1:

You can specify a trigger condition similar to this:

AS2.Sender = "trading_partner_id"

Just replace trading_partner_id with the actual AS2 trading partner ID of the sending trading partner. With this condition, you could then have an action that moves the file to the desired directory using Move File action. Note, however, that you would need a separate trigger for each trading partner.

Option 2:

Alternatively, you could do away with having a condition altogether and just use the AS2.Sender variable as part of your Move File action as follows:

File: %LocalPath% Destination Directory: C:\path\to\root\%AS2.Sender%

The result is that files would automatically be moved to a unique directory for each trading partner.

Would you like to try this out yourself? Download the free, fully-functional Starter Edition of JSCAPE MFT Server now.

Download JSCAPE MFT Server

Download JSCAPE MFT Server Trial

Easy To Deploy, Easy To Administer, Easy To Manage

Ready to see how JSCAPE makes managed file transfer so much simpler? Schedule your demo now.

Request a demo

Popular Articles

View more by

JSCAPE
  •  
    1–2 minutes
    23/09/2025

    JSCAPE by Redwood, version 2025.3: New UI continues to make a splash

    Dive back into JSCAPE by Redwood with version 2025.3, bringing more modern UI updates to make using and navigating JSCAPE more intuitive. 

    Read article

  •  
    1–2 minutes
    19/08/2025

    Weathering the economic storm: Expert support is your enterprise file transfer system’s lifeline

    The global economic landscape can be described by one word: “uncertain”. Lingering effects from the 2020 pandemic, combined with new waves of international tariffs throughout 2025, have…

    Read article

  •  
    1–2 minutes
    30/07/2025

    Escape the grip: Why flexible MFT is key to enterprise agility

    Break free from costly vendor lock-in Let’s be blunt: some MFT vendors have built product suites that are less about true partnership and more about proprietary siloing.…

    Read article

  •  
    1–2 minutes
    23/07/2025

    Avoid downtime and threat actors: Getting the best of both worlds in MFT

    For enterprise organizations relying on managed file transfer (MFT) solutions, cybersecurity often feels like an arms race. The need to patch MFT software vulnerabilities to prevent breaches…

    Read article

Related Content

Read more about

JSCAPE MFT
  •  
    1–2 minutes
    30/07/2025

    Escape the grip: Why flexible MFT is key to enterprise agility

    Break free from costly vendor lock-in Let’s be blunt: some MFT vendors have built product suites that are less about true partnership and more about proprietary siloing.…

    Read article

  •  
    1–2 minutes
    03/07/2025

    Consolidate, deploy and thrive: JSCAPE’s formula for MFT success in uncertain times

    Global enterprises today are navigating a landscape marked by significant economic volatility. Fluctuating markets, shifting trade policies and persistent economic uncertainty are compelling enterprise organizations to reevaluate…

    Read article

  •  
    1–2 minutes
    31/03/2025

    SFTP vs. FTPS: Which file transfer software is best for business use?

    What is SFTP? SFTP is a file transfer protocol that’s normally packaged with Secure Shell (SSH), the network protocol most IT administrators use to access and manage…

    Read article

  •  
    1–2 minutes
    25/03/2025

    EDI integration with trading partners: 6 best practices

    Many large companies with high-volume transactions, especially those involved in e-commerce, manufacturing and retail supply chains, have long migrated from manual processes to Electronic Data Interchange (EDI).…

    Read article

Company

  • About Us
  • Contact Us
  • Clients
  • Case Studies
  • Testimonials
  • Privacy Policy
  • Certifications

Resources

  • Managed File Transfer
  • Secure File Transfer
  • Secure FTP Server
  • AS2 Server
  • Reverse Proxy
  • File Upload Processing
  • What Is An AS2 Server?

Support

  • Help Desk
  • Documentation
  • Customer Downloads
JSCAPE

Copyright © 2025 JSCAPE

  • Privacy Policy
  • Cookie Settings