I have an external application that needs to take a data dump of a feature service in ArcGIS Enterprise using REST calls.
The feature service is secured using Portal groups.
I have created an application item in Portal, which gave me a clientid and secret. With this I can generate a token.
If I pass this token to the feature service, I either get login HTML (f=HTMLhtml) or "invalid token" (f=json).
I am guessing the application does not have access rights to the feature service. How do I configure this?