USERNAME() not working for me

Hello there,
The user expression USEREMAIL() works fine for me, but when type USERNAME() is does not. Anyone knows why? Does anyone has username() working?

Solved Solved
0 2 1,061
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @casitasrd

Here is the documentation relating to this expression:

First sentence:

Deprecated: many authentication providers no longer pass along the users name so this function will often return blank. We recommend using the USEREMAIL() function to identify a user.

So, that may be the reason why this does not work correclty for you.

View solution in original post

2 REPLIES 2

Aurelien
Google Developer Expert
Google Developer Expert

Hi @casitasrd

Here is the documentation relating to this expression:

First sentence:

Deprecated: many authentication providers no longer pass along the users name so this function will often return blank. We recommend using the USEREMAIL() function to identify a user.

So, that may be the reason why this does not work correclty for you.

Thanks @Aurelien โ€ฆ I wanted to have the USERNAME() feature but it seems like itโ€™s no longer working.

Top Labels in this Space