cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anupama_live
Frequent Visitor

Login AD Authentication

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

 

0 REPLIES 0

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,644)