AuthenticatedMemberName

This function returns the name of the Marketing Cloud user’s account, based on the context of their authenticated session. This is useful when creating customized pages for child Business Units (a feature available in earlier Enterprise 2.0 accounts).

NOTE: This function will only return the correct value in CloudPages when it is first assigned to a variable.

Arguments

AuthenticatedMemberName()

This function does not accept any arguments.

Example

The following example displays the name of the Marketing Cloud user’s account on a customized page, based on the context of the authenticated user.

%%[

var @MemberName

set @MemberName = AuthenticatedMemberName()

]%%
<p>Hello %%=v(@MemberName)=%%,</p>

Output

The function returns the name associated with the Marketing Cloud user account.

<p>Hello Sam,</p>