> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Partner Program Account Hierarchy

> This help topic describes the Partner Program account hierarchy.

export const Anchor = ({name}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Anchor -';
  if (name === undefined || name === null || name === 'undefined') {
    console.error(`${errorPrefix} \`name\` must have a value — rendering an empty string instead`);
    return <></>;
  }
  const raw = typeof name === 'string' ? name : JSON.stringify(name);
  const id = raw.replace(/\s+/g, '-').replace(/[^A-Za-z0-9_-]/g, '').replace(/-+/g, '-').replace(/^-+|-+$/g, '');
  if (!id) {
    console.error(`${errorPrefix} \`name\` "${name}" sanitizes to an empty id — rendering an empty string instead`);
    return <></>;
  }
  return <a style={{
    scrollMarginTop: 'var(--scroll-mt)'
  }} id={id}></a>;
};

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

This topic describes the relationships between partner and managed accounts in the Partner Portal.

<Anchor name="hierarchy" />

## Account levels

The Partner Program offers two account types that enable partners to create an account hierarchy for the Partner Program services: partner and managed.
This image shows the account hierarchy, billing flow, and user role permissions for partner and managed accounts. For more information about the user roles, see [Managing User Roles](/partners/account/profiles).

<br />

<Image src="/images/partners/partner-hierarchy.png" alt="The Partner Program account hierarchy - the Partner Program offers two account types that enable partners to create an account hierarchy for the Partner Program services: partner and managed. This image shows the account hierarchy, billing flow, and user role permissions for partner and managed accounts." width={900} />
