Running User Attributes - Include Custom User Fields

  • 5
  • Idea
  • Updated 8 months ago
I've had to add a User model all too often in order to get just one custom fields value.

Can you add custom fields on the User to the list of Running User Attributes?

Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 12 months ago

  • 5
Photo of John Dahlberg

John Dahlberg, Champion

  • 2,442 Points 2k badge 2x thumb
Second this.  Also handy would be to reference lookup relationships.  For example, community users have a lookup reference to their corresponding contact, which can be tied to a variety of things.
Photo of Adrian Watt

Adrian Watt

  • 92 Points 75 badge 2x thumb
This would be fantastic. We want to be able to render parts of our pages based on a large number of different fields on the user record. Also would be great if you could render based on a public group membership.
Photo of Adrian Watt

Adrian Watt

  • 92 Points 75 badge 2x thumb
Thanks Bill, I will get my team to try that!
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Chandra,

What version of Salesforce (Enterprise/Unlimited?) are you using and what user license types (Salesforce, Platform, Community?) do you experience this problem?  I have not seen any problems getting the query to Permission Set Assignment working, but I also haven't tried this with all combination of Salesforce version and license types.

Thanks,

Bill
(Edited)
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Allowing users to query permission set membership may require giving them the "view setup" system permission.  That's not always a good thing....
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
We have Enterprise, a mix of Standard and Platform licenses.  I think the View Setup is the missing link.  Works fine for system admins, but our regular users can't "see" the logic, so it doesn't apply it.
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Chandra,

We definitely have View Setup enabled...that is the difference from your users to ours.  Groups should work for you and you can always create some custom objects to mimic Permission Sets and Assignments.

Thanks,

Bill