Discussions

Expand all | Collapse all

Service Account UserToken for API Calls into another app

  • 1.  Service Account UserToken for API Calls into another app

    Posted 05-07-2019 15:30
    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.  RE: Service Account UserToken for API Calls into another app

    Posted 05-07-2019 18:32
    **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.


  • 3.  RE: Service Account UserToken for API Calls into another app

    Posted 05-08-2019 16:45
    Thats right, Ryan. Usertokens are for API calls only and will not override any client-side browser sessions.