I'm struggling with getting a non Portal site admin user account to be able to generate a token?
Using Postman if I generate a POST call with the username and password of the Portal Site Admin in the body to: https://<URL>/arcgis/tokens/generateToken I get a valid token back:
If I do this exact same call with a different user it reports back:
Solved! Go to Solution.
Hello @WarrenMedernach ,
I think you need to use generateToken REST URL of your organization portal which will be https://<domain>/portal/sharing/rest/generateToken. Before that you need to create user in your organization with specific role and then hit above URL with the credentials
Hello @WarrenMedernach ,
I think you need to use generateToken REST URL of your organization portal which will be https://<domain>/portal/sharing/rest/generateToken. Before that you need to create user in your organization with specific role and then hit above URL with the credentials
Did you ever solve this Warren?
Hi Gordon,
Unfortunately no, I never did get past having to use an 'admin' level user to return a token.
@WarrenMedernach I believe @shahkunal was correct. You appear to be requesting a token from the ArcGIS Server end point. If your ArcGIS Server is federated you will need to generate a token from the Portal end point. This will be valid for the ArcGIS Server once generated.
Remember, a federated ArcGIS Server doesnt know anything about any users except the admin user it was configured with - hence the error.
Thanks for the confirmation/reminder Trevor. I have confirmed that a non-admin can indeed authenticate through the Portal generatetoken call.