cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mattyn07
Level: Powered On

App asking for permission to SQL permission on load

Hi,
I have created an app that uses a SQL connector. Upon sharing with users it consistantly asks for permission to access SQL even though we have created a dbo account and not a users account to access this.

 

Is there anyway of removing the need to accept permission to sql as I start to roll this out to more users?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: App asking for permission to SQL permission on load

Hi @mattyn07 ,

Have you taken a try with the solution I and @mosmas  provided above?

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
mosmas
Level: Powered On

Re: App asking for permission to SQL permission on load

Yes, there is a way to do that using PowerShell commandlets. Check out this thread for more information:

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/PowerApps-User-Permission/m-p/176844... 

Super User
Super User

Re: App asking for permission to SQL permission on load

Hi,

 

PowerApps runs under the current user's context and uses the current user's permissions for any connections, so while you may have created a dbo account, the user that logs in must also have access to the connector and access rights to the db in order for the connection to work as it does not use stored credentials.

 

So yes, you can use Powershell to remove the consent screen, but you also need to be aware that it is running under that user, not the separate dbo account you set up.

 

Cheers,

ManCat




Don't forget to 'Mark as Solution' if a post answered your question and always 'Thumbs Up' the posts you like or helped you!
Community Support Team
Community Support Team

Re: App asking for permission to SQL permission on load

Hi @mattyn07 ,

Do you want to get rid of asking for permission consistantly when you load the app?

 

I agree with @mosmas 's thought almost, I think the PowerShell cmdlet may help in your scenario:

Set-AdminPowerAppApisToBypassConsent -PowerAppName c3dba9c8-0f42-4c88-8110-04b582f20735

Note: The c3dba9c8-0f42-4c88-8110-04b582f20735 represents the App ID of your canvas app, please replace it with your own.8.JPG

 

More details about PowerApps PowerShell cmdlet, please check the following article:

https://docs.microsoft.com/en-us/power-platform/admin/powerapps-powershell

 

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mattyn07
Level: Powered On

Re: App asking for permission to SQL permission on load

Thanks to those who replied I will give this a go and let you know how I get on. Really appreciate the help.

 

 

Community Support Team
Community Support Team

Re: App asking for permission to SQL permission on load

Hi @mattyn07 ,

Have you taken a try with the solution I and @mosmas  provided above?

 

If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 177 members 5,709 guests
Please welcome our newest community members: