Service Account UserToken for API Calls into another app

  • 0
  • 1
  • Question
  • Updated 1 month ago
  • In Progress
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.
Photo of Ryan Stanford

Ryan Stanford

  • 1,358 Points 1k badge 2x thumb

Posted 1 month ago

  • 0
  • 1
Photo of Ryan Stanford

Ryan Stanford

  • 1,358 Points 1k badge 2x thumb
**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.
Photo of Harrison Hersch (QB)

Harrison Hersch (QB), Quick Base Sr. Product Manager (Platform)

  • 1,488 Points 1k badge 2x thumb
Thats right, Ryan. Usertokens are for API calls only and will not override any client-side browser sessions.