USER_INFO

Syntax

USER_INFO( user_id, user_info_type )

Description

Returns the marked up text by user_id to display username or email depending on the user_info_type value:

  • email: Returns email.
  • name: Returns name.

If the user has not been found, the function will return the original string from the source.

Argument types:

  • user_idString
  • user_info_typeString

Return type: Markup

Examples

USER_INFO('b1ggmp8es27t********', 'name') = 'test_user'
USER_INFO([UserId], 'email') = 'test_user@example.com'

Data source support

DataLens Usage Analytics.

Previous