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

# Managing Your User Profile

> This help topic describes how to manage your user profile details and to set your Multi-factor authentication (MFA) security preference.

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;
};

export const Link = ({href, children}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Link -';
  if (typeof href !== 'string') {
    href = String(href);
  }
  if (!href || href === 'undefined') {
    console.error(`${errorPrefix} the \`href\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (href.includes('{') || href.toUpperCase().includes('%7B')) {
    console.error(`${errorPrefix} could not resolve a variable in href "${href}" — rendering an empty string instead`);
    return <></>;
  }
  const isExternal = (/^https?:\/\//).test(href);
  return <a href={href} className="link" target={isExternal ? '_blank' : undefined} rel={isExternal ? 'noreferrer' : undefined}>
      {children ?? href}
      {isExternal && <span className="sr-only"> (opens in a new tab)</span>}
    </a>;
};

From the User Profile page, you can update user profile details, email preferences, change your password, view account activity, and reset Multi-Factor Authentication (MFA) for your account.

## Updating your user profile details

This section includes these tasks:

* To manage your user profile details
* To change your email address
* To change your password

<Note>
  You cannot change your email address or password in this page if you have logged in to the Megaport Portal using Single Sign-On (SSO) or Google credentials. The **Change Email** and **Change Password** buttons are not available.
</Note>

**To manage your user profile details**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link> and log in.

2. Choose User Menu > User Settings > Profile.\
   The User Profile page appears.
   <Image src="/images/setting-up/user-profile-page.png" alt="User profile" shadow={true} width={650} />

3. To update your name and phone number, make the changes and click **Save**.

4. To update your email preferences, click **Email Preferences**, specify whether or not you want to receive Megaport newsletters and promotional material, then click **Save**.

   The role associated with the logged-in user is also displayed in the User Profile page, where the user is assigned one of the standard roles. For more information, see [Managing User Roles](/portal-admin/user-management/roles).

**To change your email address**

1. Choose User Menu > User Settings > Profile.
2. Click **Change Email**.\
   The Change Email screen appears.
   <Image src="/images/setting-up/change-email-screen.png" alt="Change email address" shadow={true} width={600} />
3. In the **New Email** field, enter your new email address.
4. Click **Get Verification Code**.\
   An email will be sent to your new email address with the verification code. The verification code is valid for 24 hours. An email will also be sent to the old email address advising of the email change request.\
   Keep this screen open until you have entered the verification code.
5. In the **Verification Code** field, enter the verification code that you received in the email to your new email address.
6. Click **Save**.\
   Your email address is now updated. You need to log in again after changing your email address to continue working in the Megaport Portal.

<Note>
  * The original email address will not change until a valid New Email and Verification Code combination has been entered.
  * If the new email address that is entered is already registered with Megaport against another account, it will not be accepted.
  * The new email address cannot be from a free email domain (such as Gmail, Yahoo, or Outlook). If a free email domain is used, the change will not be accepted.
</Note>

**To change your password**

1. Choose User Menu > User Settings > Profile.

2. Click **Change Password**.\
   The Change Password screen appears.
   <Image src="/images/setting-up/change-password-page.png" alt="Change password" shadow={true} width={500} />

3. Specify the password details:

   * **Old Password** -- Enter your current password.
   * **New Password** -- Enter your new password.
   * **Retype New Password** -- Enter your new password again to confirm.

     <Note>
       The Megaport Portal password policy includes minimum password complexity rules. Your new password must contain:

       * At least 8 characters
       * Uppercase characters (A-Z)
       * Lowercase characters (a-z)
       * Numbers (0-9)
       * At least one special character: ^ \$ \* . \[ ] {} ( ) ? " ! @ # % & / \ , > \< ' : ; | \_ \~ \` = + -

       The password policy uses a password strength estimator to prevent common, easily guessed passwords, such as Passw0rd. If you have met all complexity requirements and your password is still being rejected, the likely cause is that the password is too common or easy to guess.
     </Note>

4. Click **Save**.\
   For more information, see [Resetting Your Password](/setting-up/change-password).

<Anchor name="securing-your-account-with-mfa" />

## Securing your account with MFA

MFA is an authentication method and security system that ensures all of your business accounts require more than one verification factor before they can be accessed. For example, a username and password, and a code from an authentication app. MFA is a core component of a strong identity and access management (IAM) policy, and provides an extra level of security for your Megaport Portal account. We recommend that you use the Google Authenticator app when securing your accounts with MFA.

Each user should install a login verification app (such as Google Authenticator) on their digital device (phone, tablet, computer, and so on). When users log in, they check the login verification app for the token or code that they need to enter as the additional factor.

MFA is enforced globally. It is enabled by default and you cannot disable it.

You can reset MFA to enroll a new device, if required.

For more information about logging in with MFA, see [Logging in to the Megaport Portal](/setting-up/logging-in).

### Resetting MFA

You can reset MFA to enroll a new mobile device. This is required if you have lost access to your previous device, or if you want to change the device that you use for MFA.

<Note>
  * You will remain logged in to the Megaport Portal when resetting MFA.
  * Resetting MFA does not disable MFA for your account.
  * A Company Admin can also reset MFA for your account.
  * Megaport Support is unable to reset or regenerate QR codes for customers. A Company Admin must perform this task in the Megaport Portal.
</Note>

**To reset MFA**

1. Choose User Menu > User Settings > Profile.

2. Click **Reset MFA**.

   <Note>
     If MFA is not set up for your account, the **Reset MFA** button is grayed out and unavailable.
   </Note>

   <Image src="/images/setting-up/mfa-reset.png" alt="Multi-factor authentication reset" shadow={true} width={550} />

3. Scan the QR code with the authenticator app.

4. Enter the one time token generated by the authenticator app.\
   Using Google Authenticator, this is a series of six numbers.

5. Click **Reset Multi-factor Authentication**.\
   A message appears stating that MFA has been reset successfully. After MFA has been reset, you need to supply a valid token from the authenticator app on the new device every time you log in to the Megaport Portal, in addition to your email and password. Tokens from the authenticator app on the previous device will no longer work.
