Running User Attributes - Include Custom User Fields

Pat VachonPat Vachon Member 💎💎💎
edited February 2019 in Ideas
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?

image
5
5 votes

Awaiting Review · Last Updated

Comments

  • John DahlbergJohn Dahlberg Member, Sonar
    edited December 2017
    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.
  • Adrian WattAdrian Watt Member
    edited February 2019
    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.
  • edited March 2018
    Adrian,

    You can build a model on the GroupMember object to support conditional rendering.  Another option is to use Permission Sets (use object PermissionSetAssignment).

    Thanks,

    Bill
  • Chandra VChandra V Member
    edited March 2018
    Bill - we haven't had luck with Permission set, because our non sys admins can't "see" the model.  Groups work well, except it is another place to keep track of things permission based.  Do you have a trick to get permission sets working?
  • Adrian WattAdrian Watt Member
    edited March 2018
    Thanks Bill, I will get my team to try that!
  • edited March 2018
    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
  • Rob HatchRob Hatch Skuad, Sonar ✭✭
    edited March 2018
    Allowing users to query permission set membership may require giving them the "view setup" system permission.  That's not always a good thing....
  • Chandra VChandra V Member
    edited March 2018
    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.
  • edited March 2018
    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
Sign In or Register to comment.