← All types

PortalAudience

Routes one audience of a Portal to one of its sites.

Fields

Which visitors the binding applies to.

Possible values (3)
GUEST

Anonymous visitors without a Portal session.

AUTHENTICATED

Signed-in PortalUsers, with or without a selected customer membership.

CUSTOMER_ROLE

Signed-in members whose current customer membership carries the binding's role.

role

StringNullable

Membership role a CUSTOMER_ROLE binding requires; null for other audiences.

Site served to visitors matching the binding.

Referenced by (1)
Exact type SDL
"""Routes one audience of a Portal to one of its sites."""
type PortalAudience {
  """Which visitors the binding applies to."""
  audience: PortalAudienceKind!
  """
  Membership role a CUSTOMER_ROLE binding requires; null for other audiences.
  """
  role: String
  """Site served to visitors matching the binding."""
  siteId: PortalSiteID! @iac_ref(resource: "portal_site")
}