cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexjames
Regular Visitor

Sign in/ out from within app?

I'm trying to construct an app that will be used on a company ipad that is passed from shift to shift and accessed from that device by multiple user. The app is linked to sharepoint and requires connection using their account details.

 

Is there an elegant solution to signing users out from within an app rather than having to go to the overarching PowerApps app?

 

Any help gratefully received!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @alexjames ,

Do you want to let the users sign out within an app rather than go to the overarching PowerApps app?

 

Based on the needs that you mentioned, I think the Exit() function could achieve your needs. The Exit() function is used to exit the currently running app.

 

On your side, you could consider add a "Sign Out" button within your app, then set the OnSelect property to following:

Exit(true)    /* <-- The Boolean value within the Exit() function indicates that the function would also log the user out of PowerApps*/

please take a try with above solution, then re-publish your app, run your app within your iPad device again, check if the issue is solved.

Note: Above formula would log the sign user out of PowerApps, the other users need to provide their credentials to sign in PowerApps again.

 

In addition, if you want to sign in within a canvas app, I afraid that there is no way to achieve your needs in PowerApps currently.

 

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

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @alexjames ,

Do you want to let the users sign out within an app rather than go to the overarching PowerApps app?

 

Based on the needs that you mentioned, I think the Exit() function could achieve your needs. The Exit() function is used to exit the currently running app.

 

On your side, you could consider add a "Sign Out" button within your app, then set the OnSelect property to following:

Exit(true)    /* <-- The Boolean value within the Exit() function indicates that the function would also log the user out of PowerApps*/

please take a try with above solution, then re-publish your app, run your app within your iPad device again, check if the issue is solved.

Note: Above formula would log the sign user out of PowerApps, the other users need to provide their credentials to sign in PowerApps again.

 

In addition, if you want to sign in within a canvas app, I afraid that there is no way to achieve your needs in PowerApps currently.

 

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,755)