Security view expression

Hey guys!

Ok so I am trying to put together an expression that says these employees on this crew can view a view on the app. I want people both on the admin crew and the maintenance crew to be able to view it.

I have a spreadsheet called Employees. The key is the employee name, but then the other columns are [Useremail], [Crew], etc.

I have other functions on the app that utilize the Employee Name as a ref so I need to keep that as the key. Canโ€™t change the key to Useremail.

So what expression do I use? FILTER? SELECT? Nothing seems to be working. Is it a row ref? Idk. Iโ€™m thinking something like this, but I know itโ€™s not quite thereโ€ฆ

OR((Useremail() = [Useremail].([Crew]= โ€œMaintenanceโ€), (Useremail() = [Useremail].([Crew]= โ€œAdminโ€)

What are your thoughts? Remember, Useremail is not the key in the spreadsheet. I feel like I should use a de-ref somewhere but maybe thatโ€™s not quite right.

Solved Solved
0 8 277
1 ACCEPTED SOLUTION

Try this as the viewโ€™s Show if expression:

ISNOTBLANK(
  FILTER(
    "Employees",
    AND(
      (USEREMAIL() = [Useremail]),
      IN([Crew], {"Admin", "Maintenance"})
    )
  )
)

View solution in original post

8 REPLIES 8
Top Labels in this Space