I have the follows:
The "Owner" table has a field to accommodate the owner's users emails injected through bot and automation as shown below:
When i use the below security filter on "Users" table the app works fine if i logged in with "someone@gmail"
But if i used any of the user's emails the app gave me the below message:
I am also adding a phot to my "Users" Table for reference:
Kindly, assist on that matter.
Thank you
Hi Hani,
Would you please copy/paste the complete IFS() statement you are using? The screenshot is truncated. Thank you!
ุชุญูุง ู ุตุฑ ๐
Good morning,
This is the entire โIFSโ statement. I just moved the last arrow to match with the ifs.
ุชุญูุง ู ุตุฑ ๐
IFS(
USEREMAIL()="arch.hany@gmail.com",
TRUE,
IN(USEREMAIL(), OWNER[Owner Authorized Email List]),
[Owner id]=ANY(SELECT(
OWNER[Owner_id],
IN(USEREMAIL(), OWNER[Owner Authorized Email List]))
),
)
Thank you!
I see two things:
Your security filter condition should either return TRUE or FALSE. The problem with your IFS expression is that it can return TRUE, but otherwise it will never return FALSE. You have to add another line at the end of your IFS statement:
Your expression can be simplified:
OR(
USEREMAIL()="arch.hany@gmail.com",
IN(
[Owner id],
SELECT(
OWNER[Owner_id],
IN(USEREMAIL(), OWNER[Owner Authorized Email List])
)
)
)
It looks tidy with your suggestion ๐,
i will try it.
Dear @Steve, sorry if I'm missing something very obvious, but I can't see how the SELECT expression would work; the outcome of its condition is independent of the row column values.
I see this expression equivalent to:
OR(
USEREMAIL()="arch.hany@gmail.com",
AND(
IN([Owner id], [OWNER[Owner_id]),
IN(USEREMAIL(), OWNER[Owner Authorized Email List])
)
)
Good point! I just restructured the original expression; I didn't consider whether it would do anything meaningful. ๐
Really, appreciate your feedback and respected advice, i will do think in it again with different approach.
thank you for your valuable time.
I see, thank you ๐
User | Count |
---|---|
37 | |
30 | |
29 | |
20 | |
18 |