PowerServer Management APIs can get and modify information about the license, database connection, transaction etc. To protect these sensitive information, access to these APIs are disabled by default in PowerBuilder 2025.
If you want to access the PowerServer Management APIs, you should enable the use of APIs first.
To enable the use of APIs, go to UserExtensions project -> UserStartup.cs, uncomment the following script if it is commented or add the script if it does not exist:
app.UsePowerServerManagementAPI()
After PowerServer Management APIs are enabled, they can be accessed by any user. You can configure authentication and authorization to determine only users with specific rights can access the APIs. For more information, refer to Enable access to APIs.