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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps login dillemma
Power Apps
Answered

Power Apps login dillemma

(0) ShareShare
ReportReport
Posted on by 54

Hello I am having trouble with a log in screen dilemma and that is:

a. I am trying to make a app that users enter in a user name and a password and power apps checks my data source to verify if the user name and pass matches and then sends the user to the employee hub screen.

 

b. I have created some code to allow for the login part to verify with a excel file ( i use excel when mocking things up) but now I have a new issue.

 

c. I have tried creating a persistent user token based off of the user name input object but every time I navigate to the employee hub after logging in The user token  is blank meaning there is no defining identifier to say which user logged in and jobs in a gallery list are filtered by employees name. 

d. Please bear in mind that I created a table with the user name, password and full names. Then I use a global variable to use the user name text input to use as a lookup  criteria to pull the user full name from the table. But for some reason the lookup turns up blank everytime. I feel this is because using the text input as a source is a bad deal.

My humble request is for someone to help me find a way to make a permanent user token created from the log in screen of the app. Basically I want to log in with the user name and pass and during that login a token or variable is made that I can use on another screen to lookup for that users full name on another table. This is paramount as I need the name to filter. Thanks in advance.

Categories:
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Is there anything holding you back from using a 365 Group, then searching using User().FullName to verify they are in the group? That way you're still using AAD authentication and administration instead of having a second system for your app.

  • CrimsonFox242 Profile Picture
    54 on at

    This is my fear because if I use the User method then I would have to make sure each user has a license. I mean I am already prepared to accept that if that is the only way but I am trying to feel out thinks. 

  • BCLS776 Profile Picture
    8,994 Moderator on at

    You'll run into licensing issues in plenty of other ways beyond the User function. If these are all employees, do they already have at least MS 365 Business Basic? If so, they'll be fine.

     

    The other way to handle users outside of the org without an assigned Power Apps licence is through a portal. However, you will need to pay based on capacity used by the portal.

  • CrimsonFox242 Profile Picture
    54 on at

    Ahh ok then, but I was just trying to see if this way was possible, because the employees would use the employee account which has the license and then they would be diversified in the app i.e. persona A would log in with their creds and their name would be associated with their work then person B and so on. Though it would be on a singular account but now that you mention it it probably wouldnt have consecutive user log in then?

  • CrimsonFox242 Profile Picture
    54 on at

    First I must apologize to you for wasting your time. It seems I had two reset function in before the Set function so it would erase the text before the variable would save. I sincerely apologize once again for this colossal blunder. I am not this usually dumb I even pass the PL-100 afew months ago. Ty you for taking you time out to respond to me

     

  • BCLS776 Profile Picture
    8,994 Moderator on at

    No worries - happy to help, and it makes me think about these things too for when I do my next solution.

    Check out this document for a bit more on how Microsoft licenses the software.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard