Skip to main content

I have a workspace in FME that reads data from a PostGIS database and updates a Feature Service in ArcGIS Online (AGOL). Since the PostGIS data is updated frequently, I use the ChangeDetector transformer to update only the modified features instead of overwriting the entire dataset (to avoid the "413 Request Entity Too Large" error).

Currently, each time I run the workspace, I need to enter my AGOL credentials. I want a solution where anyone in my organization can run the workspace, even if the Feature Service is not in their My Content.

What are the best ways to handle authentication in FME for AGOL updates?

  • Is there a way to store credentials securely for automation?
  • Can I use API keys or OAuth2 authentication?
  • How do I allow others to update the Feature Service without adding it to their My Content?

There are a few approaches, one i’d suggest would be having a ‘service’ account that is used by FME when interfacing with AGOL.

This account would need to have permissions to update the necessary feature services, most likely via group settings where items are shared to.

The AGOL account would then be setup in FME as a WebConnection and you can then use that to authenticate the ArcGIS Online Writer


Reply