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

# Register a User using Invite Codes

> How to configure basic authentication in Tyk?

## Invite Codes

Here you’ll learn about how to create invite codes to add a new external user to the developer portal. Invite codes can be used to simplify user onboarding. Using invite codes, users will be directly assigned to a team and organization, giving them the same access rights as this team. For example you can use invite codes to:

* Run a promotional campaign like a Hackathon and give access to specific plans to the users.
* Onboard a partner company into the portal by giving them this code for anyone registering.

## Prerequisites

* A Tyk Enterprise portal installation
* A portal admin app login

## Instructions

1. From the **API Consumers > Invite Codes** menu, click **Add**.

   <img src="https://mintcdn.com/tyk/p6VDuboOnNxaT_QZ/img/dashboard/portal-management/enterprise-portal/invite-codes.png?fit=max&auto=format&n=p6VDuboOnNxaT_QZ&q=85&s=ca1eaac18d7694bd335b086d386a0c2c" alt="Invite Codes menu" width="200" height="168" data-path="img/dashboard/portal-management/enterprise-portal/invite-codes.png" />

   <img src="https://mintcdn.com/tyk/wHLHFqRiMZq91WJo/img/dashboard/portal-management/enterprise-portal/add-invite-code.png?fit=max&auto=format&n=wHLHFqRiMZq91WJo&q=85&s=ce6bac56966c5bc21e5243228a5a9355" alt="Invite Codes dialog" width="1858" height="704" data-path="img/dashboard/portal-management/enterprise-portal/add-invite-code.png" />

2. Add the form details:

   * Set your desired **Quota**. Quota is the max number of slots available for your invite code. E.g. if set 100, this code can be used by the top 100 users.
   * Set an expiry date, this is the date on which the code will expire and no more users can sign up to it.
   * Set state to **Active** - this means the code is activated and developers can start using it.
   * Specify the team that any new users that register with this invite code will be added to.

   <img src="https://mintcdn.com/tyk/p6VDuboOnNxaT_QZ/img/dashboard/portal-management/enterprise-portal/invite-code-dialog.png?fit=max&auto=format&n=p6VDuboOnNxaT_QZ&q=85&s=bb4ce38ae30ce2a439c48b9a4145c592" alt="Invite Codes dialog" width="653" height="614" data-path="img/dashboard/portal-management/enterprise-portal/invite-code-dialog.png" />

3. **Save** the invite code.

4. Share the invite codes. When the saving changes a new Invite code was created and can be viewed in the overview table. To share the invite code, copy it and send to your developer teams/users.

   <img src="https://mintcdn.com/tyk/B97_xetnHOB2KQMe/img/dashboard/portal-management/enterprise-portal/share-invite-codes.png?fit=max&auto=format&n=B97_xetnHOB2KQMe&q=85&s=81500736de6baea2a8e967aa0015b557" alt="Share Invite Codes dialog" width="1864" height="696" data-path="img/dashboard/portal-management/enterprise-portal/share-invite-codes.png" />
