AuthenticatedEnterpriseID

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).

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

Arguments

AuthenticatedEnterpriseID()

This function does not accept any arguments.

Example

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>

Output

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

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