{"id":31606,"date":"2018-04-21T15:47:49","date_gmt":"2018-04-21T15:47:49","guid":{"rendered":"https:\/\/ampscript.guide\/authenticatedmembername\/"},"modified":"2021-04-06T00:58:51","modified_gmt":"2021-04-06T00:58:51","slug":"authenticatedmembername","status":"publish","type":"post","link":"https:\/\/ampscript.guide\/authenticatedmembername\/","title":{"rendered":"AuthenticatedMemberName"},"content":{"rendered":"<h2>AuthenticatedMemberName<\/h2>\n<p>This function returns the name of the Marketing Cloud user&#8217;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).<\/p>\n<h3>Arguments<\/h3>\n<p><code>AuthenticatedMemberName()<\/code><\/p>\n<p>This function does not accept any arguments.<\/p>\n<blockquote>\n<p>NOTE: This function will only return the correct value when used in classic landing pages or microsites (a feature available in earlier Enterprise 2.0 accounts). When used in CloudPages, it will only return the value related to the user who created the CloudPage, not a value related to the user who is accessing the page from the public URL.<\/p>\n<\/blockquote>\n<h3>Example<\/h3>\n<p>The following example displays the name of the Marketing Cloud user&#8217;s account on a customized page, based on the context of the authenticated user.<\/p>\n<pre><code>%%[\n\nvar @MemberName\n\nset @MemberName = AuthenticatedMemberName()\n\n]%%\n&lt;p&gt;Hello %%=v(@MemberName)=%%,&lt;\/p&gt;<\/code><\/pre>\n<h4>Output<\/h4>\n<p>The function returns the name associated with the Marketing Cloud user account (see note).<\/p>\n<pre><code>&lt;p&gt;Hello Sam,&lt;\/p&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>AuthenticatedMemberName This function returns the name of the Marketing Cloud user&#8217;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). Arguments AuthenticatedMemberName() This function does not accept any arguments. NOTE: This function will only return the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v14.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The AMPscript Guide - AuthenticatedMemberName<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ampscript.guide\/authenticatedmembername\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The AMPscript Guide - AuthenticatedMemberName\" \/>\n<meta property=\"og:description\" content=\"AuthenticatedMemberName This function returns the name of the Marketing Cloud user&#8217;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). Arguments AuthenticatedMemberName() This function does not accept any arguments. NOTE: This function will only return the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ampscript.guide\/authenticatedmembername\/\" \/>\n<meta property=\"og:site_name\" content=\"The AMPscript Guide\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-21T15:47:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-06T00:58:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ampscript.guide\/#website\",\"url\":\"https:\/\/ampscript.guide\/\",\"name\":\"The AMPscript Guide\",\"description\":\"The Definitive Scripting Manual for Salesforce Marketing Cloud\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ampscript.guide\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ampscript.guide\/authenticatedmembername\/#webpage\",\"url\":\"https:\/\/ampscript.guide\/authenticatedmembername\/\",\"name\":\"The AMPscript Guide - AuthenticatedMemberName\",\"isPartOf\":{\"@id\":\"https:\/\/ampscript.guide\/#website\"},\"datePublished\":\"2018-04-21T15:47:49+00:00\",\"dateModified\":\"2021-04-06T00:58:51+00:00\",\"author\":{\"@id\":\"https:\/\/ampscript.guide\/#\/schema\/person\/5335042f77731e84f9808aecef25daec\"},\"breadcrumb\":{\"@id\":\"https:\/\/ampscript.guide\/authenticatedmembername\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ampscript.guide\/authenticatedmembername\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ampscript.guide\/authenticatedmembername\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ampscript.guide\/\",\"url\":\"https:\/\/ampscript.guide\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ampscript.guide\/authenticatedmembername\/\",\"url\":\"https:\/\/ampscript.guide\/authenticatedmembername\/\",\"name\":\"AuthenticatedMemberName\"}}]},{\"@type\":[\"Person\"],\"@id\":\"https:\/\/ampscript.guide\/#\/schema\/person\/5335042f77731e84f9808aecef25daec\",\"name\":\"dev\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/posts\/31606"}],"collection":[{"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/comments?post=31606"}],"version-history":[{"count":0,"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/posts\/31606\/revisions"}],"wp:attachment":[{"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/media?parent=31606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/categories?post=31606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ampscript.guide\/wp-json\/wp\/v2\/tags?post=31606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}