Skip to main content
Question

Data streaming/download server app - role restricted

  • September 3, 2025
  • 5 replies
  • 76 views

nordpil
Supporter
Forum|alt.badge.img+11

I am looking at implementing something like this: https://support.safe.com/hc/en-us/articles/25407459193613-HTML-Page-with-Link-to-Download-Excel-File-FME-Flow-App

But I don’t want to create a webhook for public access for the data streaming link, I want this restricted to the same role/group that has access to the server app - is that possible?

5 replies

alexbiz
Influencer
Forum|alt.badge.img+28
  • Influencer
  • September 3, 2025

Hey ​@nordpil 

I think you can easily do that by removing the token of the webhook.
When creating a webhook, FME Flow will create a token that will be in the URL. That’s what make the service “public”. 
By removing the token from the URL, FME Flow should ask for authentication when trying to access it. If the user doesn’t have an FME Flow user, he will not be able to run it.


alexbiz
Influencer
Forum|alt.badge.img+28
  • Influencer
  • September 3, 2025

(You will still need to give those users/roles permission to run the workspace on the FME Flow side, under Admin/User Management)


nordpil
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • September 4, 2025

Yes, I have tried that, but then the user would have to log in again, which is annoying, they have already authenticated once to get access to the server app.


zoe.forbes
Safer
Forum|alt.badge.img+4
  • Safer
  • November 17, 2025

Hi ​@nordpil,

I just came across this question and wanted to respond even though it’s a few months old. After playing around with both the REST API and service webhooks, I don’t think this is possible.

The best solution I could come up with (other than requiring users authenticate twice) is writing output files to Resources/Temp/new_folder and providing users a link to this folder. No additional authentication is needed to download the files from here, as they’ve already logged into the UI to access the app.


nordpil
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • November 20, 2025

I actually implemented it like this - one workspace that is published as data streaming. When invoked at first it returns an html report (data streaming) and the page presents a link to the same workspace but with a parameter to return the download file, the workspace is run again and the user downloads the file. Works for small jobs, one wouldn’t want to do this with jobs that takes more than a minute or so.