Hello
I am trying to truncate a hosted feature layer on AGOL using the REST API and Power Automate. I created an App in AGOL and I am using the client_id and client_secret to get a token. This seems to be working fine. But when I try to use the token I get the following error: User does not have permissions to access this service.
Any guidance would be much appreciated.
Thanks!
the result is this: I am able to get a token but... I get the user does not have permissions to access this service
Solved! Go to Solution.
OK, I solved my problem:
1) I was using the wrong URI... (https://www.arcgis.com/sharing/generateToken)
2) I had to encrypt my credentials using the following expression in the body:
OK, I solved my problem:
1) I was using the wrong URI... (https://www.arcgis.com/sharing/generateToken)
2) I had to encrypt my credentials using the following expression in the body: