-
mike S
- PowerServer
- Tuesday, 7 July 2026 05:51 PM UTC
ref: https://docs.appeon.com/ps2025r2/Enable_access_to_APIs.html
The management apis' are disabled by default, and enabled them in c# (seems like it should have been a setting in userconfig.json) was done via: app.UsePowerServerManagementAPI()
If the JWT auth is already setup, i assume that it (or whatever auth setup for the server apis) are automatically used/required for the management apis? Is that correct?
it says: "Add authorization on top of authentication", but that is only if i want to setup additional auth requirements such as a role to restrict access to the management apis? Correct? So that if nothing was added, then simply having the bearer token should provide access?
I am using the JWT bearer token that the server apis' are using. I did not setup any other auth requirements such as role in the c# code. getting 401 error.
The server apis' are running fine, just getting 401 errors on the management apis:
https://<myserver>/api/Session/LoadAll
headers:
Authorization Bearer eyJhbGciOiJIUzI1NiIsInR5.....
Content-Type application/json;charset=UTF-8
NOTE: verified the bearer token has scope: serverapi
* this all worked/works with PS 22R3.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.