User Attribute in Manifest

  • 21 September 2021
  • 1 reply

Does anybody know if it is possible to use an user attribute in the manifest of a project? I need to use the user attribute to concatenate the name of the view (in my database) that the user will have access to.

I have a constant in my manifest for the view name:

constant: warehouse_view_name

and the value I need to assigned would depend on the user attribute: user_attribute + “_warehouse”


Best answer by sarah.tayeri 21 September 2021, 19:36

View original

This topic has been closed for comments

1 reply

Userlevel 1

Hi Maria, this is possible! You can use the _user_attributes liquid variable to accomplish this.

For example: 

constant: first_name {
  value: "{{ _user_attributes['first_name'] }}"