I have a user that has an Alias Email address. I have a Powerapps linked to Sharepoint List.
When I save a record the Login username is saved. This user has an alias email address associated with it. Then for edit the record I check if logged in user = user().Email. It is a different email address that is the alias. So the user cannot edit.
is there a way to compare the user email as well as the alias so that the user can edit.
Could please share a bit more about the Alias Email Address that you mentioned?
Do you want to compare the Email address with the Alias Email Address within your app?
If you want to ompare the Email address with the Alias Email Address of a Office 365 User within your app, I afraid that there is no way to achieve your needs.
Currently, the returned properties from Office365Users functions do not contain the Alias Email Address property. And there is no way to retrieve the Alias Email Address of a Office 365 user within PowerApps currently.
More details about properties returned from Office 365 function, pleaserefer to the following article:
As an alterntive solution, please consider validate current login user using normal email address. Actually, on your side, you could consider use a SP List data source (contains a Person column) to store the authorized users of your canvas app, then compare current sign in user with the existed authorized users in your SP List, if current sign in user is existed in your SP List, he would be able to use your app, if not, navigate him to a unauthorization 404 error screen. Please take a try with the following workaround: