Hi,
So just for future purposes, please clearly lay out the issue and ask first, versus all the other stuff as its confusing to be told lots of stuff and then kinda the problem as you don't have a sense that clearly defines it.
Example you wrote all this and never said what the problem is
There are a couple of examples within my app where the coding is fine and works as intended, except for a particular user. I have tried alternate coding which has the same result. I am thinking it is a problem not related to the coding, but not sure what. When I log in as the user on my desktop, the code works as it should, it just doesn't work on his phone.
The user where the code doesn't work as intended has a Google Pixel 6a, but another user where the coding works fine has the same phone. Both users have a Microsoft Business Standard license. I have checked the email associated with the problematic user, and it is the same used in the coding.
Here is my assumption on this user.
The Email for a user and their UPN, while they SEEM to be the same thing they are not. So what can happen is, a person has multiple looking "emails", when in fact their UPN isn't what you expect it to be.
This means either
1) You need to have a hardcoded check for that user to correctly "compare" their email, versus the UPN
2) or you need to create a mapping table/list somewhere to do it.
3) they have different language settings on their phone so it messes up the values (email and currency etc)
Many times you can tell if this is the issue by simply adding a label or 2 to the screen
Validate from there that they in fact match and that both are all lower case etc and that in no way is the UPN versus email being used.
Many times if you look at their contact in Outlook, it will show email and primary email and they will be different.
But since its on his phone, I suspect its the language or other setting on the phone itself. So putting the labels will show you the values and make sure in fact that its wrong.
Make sure to check the Time Zone etc on his phone too