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

Report
All responses (
Answers (