Solved

Distinguish user roles using addUserProperties

  • 10 January 2023
  • 1 reply
  • 35 views

Userlevel 3
Badge +5

Hi all,

I created a user property using the following code:

heap.addUserProperties({'user_role': ['admin', 'standard']});

In order to distinguish our platform user roles. Before I was using the following one:

heap.addUserProperties({'user_role': 'admin'});

and I was able to identify admin users. However, I also want to identify the standard ones. Can you confirm the first javascript code is correct? According to the documentation it should work.

After making the changes I'm not getting any data for the last 7 days. Hope you can help me here.

 

Best regards,

Bernardo Madeira

icon

Best answer by Holly Goodliffe 19 January 2023, 22:58

View original

1 reply

Userlevel 1
Badge +1

Thanks for the question Bernardo! I know the Support team is working directly with you on an answer, and they’ll circle back here to share learnings on the Community.

Reply