Forum Discussion

RyanStanford1's avatar
RyanStanford1
Qrew Captain
6 years ago

Service Account UserToken for API Calls into another app

The Use Case is trying to check if a checkbox is checked in a "Process Control" table/app... which only Realm Admins have access to.

This app is used as a go between our QB environment and on-prem SQL Server... I've attempted to use our Service account's user token for API DoQuery to check the target table first... but it comes back with a 1 error of "You do not have access to this app" for the actual user.

Me, with access to the Process Control App, has no issues.

I have confirmed that our Service Account does have admin role for the Process Control app.

I'm sure I'm overlooking something basic... Thanks in advance for any insight.

2 Replies

  • **Update** I've done some further research and it appears my issue is that the usertoken isn't overwriting the permissions of the user that is actually logged in.
    • hhersch's avatar
      hhersch
      Qrew Captain
      Thats right, Ryan. Usertokens are for API calls only and will not override any client-side browser sessions.