web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / User permissions for M...
Power Automate
Unanswered

User permissions for Microsoft SQL Server to run a store procedure

(0) ShareShare
ReportReport
Posted on by 4

This should be a simple question, but I cannot seem to find an answer in anywhere.

I'm trying to connect to SQL Server database through the on premise gateway to run a store procedure.

The stored procedure contains 10 tables.

I'm trying to use a user with limited permissions but it only allows me to save the step if the user has the owner role.

If it doesn't have the owner role it time out when I'm trying to save the step.

The stored procedure is just a select statement.

I've tried saving it with and without parameters.

I've tried giving them read/write permissions on the database.

I've tried give them select permissions on the tables.

I've simplified the stored procedure to just query one of the tables but that doesn't allow me to save either.

I've tried using an Active Directory user as well with the same results, in order to save the step it must have the owner role.

I contacted Microsoft support and they couldn't help me.

Does any one know if limited permissions can be used to run a store procedure?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Are you using an implicit or explicit SQL connection? 

     

    Assuming its a shared connection

    1) Does the connection user have access to the gateway?

    2) Does the connection user have permissions to the stored procedure in SQL or just to the tables?

     

  • DannyMot Profile Picture
    4 on at

    I am using an explicit SQL connector.

    I was originally using a different user to access the gateway.

    I gave it access to the database with the same result - if the user doesn't have the owner role it times out when I save.

    The database user and the AD user can run the stored procedure in SQL studio without owner permissions.

  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Do you mean owner of the flow or owner of the database?  Also, is the flow using a manual trigger or an automated trigger?

  • DannyMot Profile Picture
    4 on at

    Sorry owner of the database.

    The database owner role.

    The user needs the owner role in order for the SQL Server store procedure step to save.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard