In reply to S.

Any file you upload to MS Teams will be in a SharePoint location (Teams files are just SharePoint Online underneath). This article describes how to access these files from SAS -- it's got an involved setup, but once you have it working it's reliable.