I'm trying to restrict a certain tables to on...

Iโ€™m trying to restrict a certain tables to only two users. Is this expression correct : USEREMAIL()= abc@email.com, def@email.com correct?

Please advice.

0 5 389
5 REPLIES 5

IN(USEREMAIL(), LIST(โ€œabc@email.comโ€, โ€œdef@email.comโ€))

@Bellave_Jayaram can you use this expression with just the domain part of the email?

@Simon_Adcock you can use CONTAINS instead of IN.

CONTAINS (LIST(โ€œdomain1โ€, โ€œdomain2โ€), USEREMAIL ())

Thanks guys. I tried using the IN (USEREMAIL(), LIST and it works.

How about CONTAINS(USEREMAIL(),โ€œappsheet.comโ€) or IN(RIGHT(USEREMAIL(),(LEN(USEREMAIL())-FIND("@",USEREMAIL()))),{appsheet.com,gmail.com})

Top Labels in this Space