Hi, I am trying to work out a formula so that certain users have specific read/write access to a certain table e.g. โREAD_ONLYโ, โUPDATES_ONLYโ etc.
Basically the users are kept in two tables (separate to the table I am setting this rule up for), I tried different variations of the SWITCH formula to get it to work as well as IF and CONTAINS but couldnโt get it to work.
Basically any user contained in Table 1 should be able to โUPDATES_ONLYโ, while users contained in Table 2 will be able to โALL_CHANGESโ, all other users are โREAD_ONLYโ.
SWITCH(USEREMAIL(),
โUsers From Table 1โ, โUPDATES_ONLYโ,
โUsers From Table 2โ, โALL_CHANGESโ,
โREAD_ONLYโ)
Any help would be much appreciated, thanks!
Try:
IFS(
IN(USEREMAIL(), Table 1[Email]),
"UPDATES_ONLY",
IN(USEREMAIL(), Table 2[Email]),
"ALL_CHANGES",
TRUE,
"READ_ONLY"
)
With appropriate substitutions for Table 1[Email]
and Table 2[Email]
.
See also:
What if you want a user to have updates and Adds, but not deletes,
and another to have just read only?
Edit
Answer: โADDS_AND_UPDATESโ
For future readers, the available options are displayed within Expression Assistant when you go to edit the Are updates allowed? expression for the table:
Is ADDS_AND_UPDATES one of the options?
Thanks Steve, that seems to have done the trick!
Much appreciated
James
User | Count |
---|---|
18 | |
10 | |
8 | |
6 | |
5 |