Skip to main content
Known Participant
Sep 21, 2022 4:30 AM UTC
Question

Record security by field and user

I have a read-only grid with the following data (image below)
Currently all my users can see all the data
In my case, i want "User1" should be able to see just "Vendor1" in vendor_selected column, "User2" should be able to see just "Vendor2",....etc.
How can I do that?

12 replies

Inspiring
Sep 21, 2022 4:46 AM UTC

for this, you have to use filters while query the record.

danna3499Author
Known Participant
Sep 21, 2022 4:52 AM UTC

how?

can you help me with the basic steps or expression example ?

Inspiring
Sep 21, 2022 4:55 AM UTC

Configure a source filter and make the value as an expression and in that you can provide the value based on your logic and field will be vendorName. For vedorName based on user name you can create a decision table for the user and vendor mapping and use that decision table to get the vendor name which you have to show to them. Also, by using the Security you can achieve.

harshitb6843
Brainy
Sep 21, 2022 5:09 AM UTC

You should use the record level security here. 
docs.appian.com/.../record-level-security.html

danna3499Author
Known Participant
Sep 22, 2022 3:14 AM UTC

thanks it works now

mohank0008
Known Participant
Sep 21, 2022 6:14 AM UTC

A New security rule needs to be created In order to achieve your case,

Here, I am explaining you with the sample record Type ZMS_KMR_Request

In place of requestedBy, you should use the Vendedor_Selected field

Hope you got the answer

danna3499Author
Known Participant
Sep 21, 2022 4:49 PM UTC

Hi Mohan

For "User found in fields" I do not have a field where users are registered.

The column "Vendor Selected" field is text type and in come from a dropdown

mohank0008
Known Participant
Sep 21, 2022 6:19 PM UTC

Then you should create security expresion in record level security