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 Apps / Bypass concent for use...
Power Apps
Unanswered

Bypass concent for user when starting app for the first time?

(1) ShareShare
ReportReport
Posted on by 1,097

How to force so users dont need to concent on using the app?

 

I have done this in powershell


Set-AdminPowerAppApisToBypassConsent -AppName <GUID> (app ID)

 

I run powershell in admin

i connect to :

Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber

 

and

Add-PowerAppsAccount

 

then i run the first command with the GUID.

 

but i get this error:

 + ... $response = Invoke-WebRequest -Uri $Uri -Headers $Headers -Method $Me ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

 

 

anyone able to help?

Categories:
I have the same question (0)
  • rsaikrishna Profile Picture
    3,703 on at

    @Oskarkuus 

     

    Ask your Global Admin to run these Power Shell commands.

     

    Also, make sure the Global Admin have access to the Application.

     

    You can try the same with Power Platform Admin role.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Oskarkuus Profile Picture
    1,097 on at

    I am global admin

     

    So i need access to the app, co owner? 

  • rsaikrishna Profile Picture
    3,703 on at

    @Oskarkuus 

     

    Yes. Provide co-owner of the app.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Oskarkuus Profile Picture
    1,097 on at

    I have my global admin account co-owner of the app.

     

    The command in powershell still does not work.

    Set-AdminPowerAppApisToBypassConsent -AppName <APP ID>

     

    I have tried the app id with and without " "

     

    Error message is 403 forbidden from server

    Invoke-WebRequest : Fjärrservern returnerade ett fel: (403) Förbjuden.
    At C:\Program Files\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.86\Microsoft.PowerApps.RestClientModu
    le.psm1:75 char:25
    + ... $response = Invoke-WebRequest -Uri $Uri -Headers $Headers -Method $Me ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
     + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
     
  • rsaikrishna Profile Picture
    3,703 on at

    @Oskarkuus 

     

    Its weird.

     

    Do you have SharePoint 2013 Designer installed in your machine from where you are trying the Power Shell commands? If so, uninstall SharePoint 2013 Designer and try again.  OR try from a machine where you do not have SP 2013 designer NOT installed.

     

    I think, I encountered the same issue.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Oskarkuus Profile Picture
    1,097 on at

    I did have SP designer installed. I have removed it now, restarted computer.
    Still get the same issue.

    SCREENSHOT:http://prntscr.com/vd47ln

     

    I then went to another computer and did the same thing. Got the same problem 😞

     

     

  • Oskarkuus Profile Picture
    1,097 on at

    Still not been able to run this

  • Oskarkuus Profile Picture
    1,097 on at

    anyone been able to do this, i cant figure out what im doing wrong.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard