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 / Login AD Authentication
Power Apps
Unanswered

Login AD Authentication

(0) ShareShare
ReportReport
Posted on by 70

Hi All,

 

I have this login screen which need to authenticate the user with Office365User data source. On Screen start, I am populating some variables with Current logged in User's Name, Email address. The below function was used to retrieve the value:

Set(varCurrentUserEmail, User().Email);
Set(varCurrentUserName, User().FullName);

 

Now that onSelect function of my login button, how can we validate the user login credentials. 

 

Office365Users is my datasource name and using lookup function, I am able to authenticate the Username(organization email address) using the UserPrincipleName but how can we validate the Password as it is not available under the UserProfile Output parameters. 

 

If(LookUp(Office365Users.SearchUserV2(
{
searchTerm:Username.Text, 
top:1
}).value,
UserPrincipalName = Username.Text
).DisplayName = varCurrentUserName,
Navigate(Employee),
Notify("Please enter valid credentials")
)

 

I see that there is PasswordProfile which stores the password but how can we connect it with my current form.

 

Appreciate your suggestions.

 

 

Reference links: 

https://docs.microsoft.com/en-us/connectors/office365users/#search-for-users-(v2) 

https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0#properties

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard