This function returns the enterprise identifier of Marketing Cloud account (the MID of the Parent Business Unit), based on the context of the authenticated user. This is useful when creating customized pages for child Business Units (a feature available in earlier Enterprise 2.0 accounts).



This function does not accept any arguments.

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


The following example displays the enterprise identifier of the Marketing Cloud account on a customized page.


var @EnterpriseID

set @EnterpriseID = AuthenticatedEnterpriseID()

<p>The Parent MID is %%=v(@EnterpriseID)=%%.</p>


The function returns the Parent MID of the Marketing Cloud user account.

<p>The Parent MID is 10987654.</p>