I created a secured feature service via ArcGIS for Server and then added it as an item to AGOL. This service is used by Survey123 using the submission url parameter. I was able to access this service from AGOL over the past year successfully. Just recently, I went to access the service url from AGOL and now get the error below. I am able to access the service just fine directly from ArcGIS for Server, just not from AGOL. Could a recent AGOL update have affected this functionality? Our client is also getting the same results from his AGOL organization. We have not changed this service over the past several months.
AGOL does not allow you to browse the service directory. But if you use the full url to your service you will not have any problem.
Will produce the error you have above.
That is strange I have never seen a FeatureServer on the Utility.arcgis.com server it has always been services1-9.arcgis.com. This is the message I receive when using ?f=pjson at the end:
"message": "You do not have permissions to access this resource or perform this operation.",
Is this item shared publicly or are you appending a token/logging in with your ArcGIS Online credentials when you try to access the service? Does this still work in a web map in ArcGIS Online?
We are also having this issue. We have a secured service hosted on a local 10.7 ArcGIS Server, we created a feature layer in AGOL pointing to a table in the secured layer with the credentials stored in the AGOL item. We are trying to query the table using rest and get the same error mentioned above.