I would like a single Lightning Record Page to have 2 components, each visible only to a specific set of users. There are a few users identified as 'beta testers' and one version of the component should be made visible to these users, which others will view the other users will see a different version.

From what I have tried so far, component filters have CONTAINS, EQUAL and NOT EQUAL condition. Can someone suggest a way to do this?

-- Update (30/04/2019) -- I have used filter logic to handle this. Didn't realise there is an option to use NOT operator in the filter logic!

  • Do they all have the same profile? What attributes differentiate them from one another other than their username or userId? Can you make them members of a Group or create a permission set? – crmprogdev Apr 28 '19 at 14:36
  • Yes, they all have the same profile and there's no other differentiator field on their record. However, I can make them members of a group/assign a permission set manually. – yeselkay Apr 28 '19 at 15:08
  • 3
    The permission set/group would seem to me to be the most obvious and simplest solution to your issue. – crmprogdev Apr 28 '19 at 23:46
  • I suggest you to change the title of your question. Is a bit misleading. – gvgramazio Apr 29 '19 at 8:00
  • @gvgramazio - Thank you for your suggestion. Mind telling me what's misleading? Will change the title accordingly. – yeselkay Apr 29 '19 at 16:04

If you don't mind add to the User object, just create a custom checkbox field on the User called Beta Tester and then you could conditionally show components on the page based on this true/false checkbox.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.