+ Start a Discussion
Yogesh LolgeYogesh Lolge 

2 user should see different data of same object

Hi Team,
I got one question from the interviewer that:
I have two users I want to show A user half of the fields of XYZ object and B wants to show remaining fields in the aura component, how we can achieve this.
 
VRKVRK
make object As private 
by using sharing Rules ( either critiria based  OR owner based) grant records to Users ..
So other user can't access other Records Even both are in same profile 
Suraj Tripathi 47Suraj Tripathi 47

Hi Yogesh,

For this purpose you can create new permission set and then select fields which You want to show to specific user and then You need to select manage assignment and  select that user to whom you want to show fields.You can do so by:
--->> setup->enter permission set->create new view->give the label name->object setting->select object->select fields->then mange assignment to specific user

 

Please mark it as best answer if it helps!

Thanks