How to Fix Power Apps SQL Server Connector Permission Error
Question details
The user needs to resolve an error indicating they lack the minimum required permissions for a SQL Server connection in Power Apps.

- Product
- Microsoft Power Apps
- Device & OS
- not provided
- Scenario
- Connecting a Power Apps application to a SQL Server database using the shared_sql API.
- Observed behavior
- Power Apps displays an error stating that the caller lacks the minimum required permission for the SQL Server connection under API shared_sql.
Ensure you have administrative access to both the Power Apps environment and the target SQL Server database to review and modify user permissions.
Review SQL Permissions and Re-create the Power Apps Connection
Verify that the database user has the correct read and write roles, then re-establish the connection within Power Apps.
Often, permission errors occur because the credentials used to authenticate the SQL connection lack the necessary database roles, or the connection token has become invalid.
Access your SQL Server via SQL Server Management Studio (SSMS). Ensure the user account tied to the connection is granted both db_datareader and db_datawriter roles for the specific database.
Log into the Power Platform admin center. Verify that your user account has the appropriate security roles, such as Environment Maker, to create and manage connections in the current environment.
In the Power Apps maker portal, navigate to 'Data' > 'Connections'. Locate your existing SQL Server connection, click the three dots (...), and select 'Delete'. Then, click 'New connection', search for SQL Server, and enter your credentials to create a fresh connection.

Consult the Microsoft Power Apps Community
If standard permission checks do not resolve the error, escalate the issue to experts in the official Power Apps forum as this is a specific platform connector issue.
Looking for a Lightweight Microsoft Office Alternative?
While troubleshooting complex Power Apps and SQL server integrations, you might also be looking for a more efficient and cost-effective daily office suite. WPS Office provides a fully compatible, lightweight, and free alternative to Microsoft Office for all your document, spreadsheet, and presentation needs.
- 1. Download WPS Office: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Install the Suite: Run the downloaded setup file and follow the quick on-screen instructions to install the software.
- 3. Open Your Files: Launch WPS Office and open your existing Microsoft Office documents seamlessly without formatting loss.

Frequently Asked Questions
What does the API shared_sql permission error mean?
This error means the credentials or account used to establish the SQL Server connection in Power Apps does not have the required access privileges (such as read/write) on the backend database.
Can I share a Power App without giving users direct SQL permissions?
If you use an implicitly shared SQL connection, the app runs under the connection creator's credentials. However, if explicit connections are used, every user accessing the app must have their own valid SQL server permissions.
Why did my SQL connection in Power Apps suddenly stop working?
Connections can fail abruptly if the password for the SQL account expires, backend database roles are modified by a database administrator, or if there are new Data Loss Prevention (DLP) policies enforced in your Power Platform environment.




