> For the complete documentation index, see [llms.txt](https://docs.opensports.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opensports.net/admin-help/groups-and-members/member-forms-and-rules/how-to-restrict-event-access-using-an-external-member-database.md). Agents can also search and read this documentation through its [MCP server](https://docs.opensports.net/~gitbook/mcp).

# How to restrict event access using an external member database

Organizations affiliated with national membership bodies—such as national sports federations—often need to restrict event access to verified, dues-paying members. For example, a Pickleball Australia group may only want players with a valid national membership to register for certain events.

To avoid relying on the honor system, OpenSports provides a workflow that allows admins to verify membership information through custom fields and rules. This guide shows you how to use Member Forms and Member Rules to:

* Ask players for contact information and collect membership data
* Restrict registration to players with valid memberships
* Customize admin permissions for reviewing or editing member data
* (Optional) Bulk update member data using a CSV

{% embed url="<https://www.loom.com/embed/aefab5cebe9e41ad8d7bbb775cbe220e>" %}

### Step 1: Create a Member Form <a href="#step-1-create-a-member-form" id="step-1-create-a-member-form"></a>

{% hint style="info" %}
**Note:** Creating or editing a Member Form or Admin Member Form is only available on the web.

If a form already exists, select Update on the far right, then scroll to the bottom of the form and select Add New Question.
{% endhint %}

Use a Member Form to collect phone numbers and store verified membership information.

Note: Players can enter their phone number anytime, but only admins can edit the National Membership ID and National Membership Expiry fields after verifying membership against the national database.

### To create a Member Form:

1. Navigate to your **Group Dashboard > Settings > Member Forms**
2. Click Set Up **Member Form**
3. Use the following configuration:

* **Internal Identifier 1: Phone Number**
  * **Input Type**: Phone Number
  * Select **“Show User Permissions”** and select **Always**

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-4731c686145d07ae2e099dbff613b15131455d7c%2Fmember-form-version-and-identifier-help.webp?alt=media" alt="" width="563">

* **Internal Identifier 2: National Membership ID**
  * **Input Type**: Number
  * Select **“Show User Permissions”** and select **None**

{% hint style="info" %}
**Note:** This information will be updated solely by admins and will only be visible to the user.
{% endhint %}

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-c994b4a869553b7b529a1aa640b5a31977d4c487%2Fmember-form-national-membership-id-question.webp?alt=media" alt="" width="563">

* **Internal Identifier 3: National Membership Expiry**
  * **Input Type**: Date
  * Select **“Show User Permissions”** and select **None**

{% hint style="info" %}
**Note:** This information will be updated solely by admins and will only be visible to the user.
{% endhint %}

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-2e45760a72ec70d0b644aef04ef7446077aa6cb8%2Fmember-form-national-membership-expiry-question.webp?alt=media" alt="" width="563">

### Step 2: Create a Member Rule

Create a Member Rule to restrict registration based on the membership expiry date.

To create the rule:

1. Navigate to **Settings > Member Rules** in your Dashboard
2. Click **Create New Rule**
3. Configure the rule as follows:

* **Title:** Valid National Membership
* **Condition:** Member Form response where National Membership Expiry **is in the future**
* **Error Message:** *You must have a valid Pickleball Australia membership to sign up for this event. Please contact your group admin if you need help verifying your membership status*.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-53dba1fa99e292528b1f38a07a92151caf672e71%2Fexternal-membership-validation-rule.webp?alt=media" alt=""><figcaption></figcaption></figure>

### Step 3: Apply the Rule to Registration Options <a href="#step-3-apply-the-rule-to-registration-options" id="step-3-apply-the-rule-to-registration-options"></a>

Apply the rule to specific registration options within an event.

Example Configuration:

Option 1: **Member-Only Registration**

* Price: $5
* Add Member Rule Checkbox: Checked off and select Members Only Rule

Option 2: **Public Registration**

* Price: $10
* Rule Applied: None

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-72af25f6c23b049acc25b009883ed375661f3255%2Fmember-and-nonmember-registration-options.webp?alt=media" alt="" width="563">

To apply the rule:

1. Open an existing event
2. Navigate to **Players Needed**, then click **Edit** next to the applicable registration option. In this case it would be the **Members Only** spot.
3. Click **Add Member Rule** and select your **Valid National Membership rule**

Only players with a valid, non-expired membership will be able to register for restricted options.

**Number of Available Spots for Registration:**

* The ability to cap the number of registration spots is available for each registration option, such as members and non-members.
* Control how many individuals are able to register at the lower price before it switches to the regular rate.

#### Optional: Let Admins Edit Member Form Responses! <a href="#optional-let-admins-edit-member-form-responses" id="optional-let-admins-edit-member-form-responses"></a>

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-f0661ba606730b6ee4881ee4ab7e3db742c90a0d%2Fmember-registration-rule-position-settings.webp?alt=media" alt="" width="563"><figcaption></figcaption></figure>

You can allow specific admin roles to manage membership data. In the Member Form settings, select which roles can:

* View responses to confirm membership status
* Edit responses to input or update membership ID and expiry date

<img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-c35a2e838c702c3d3b7d4e78e7288617c963bae8%2Fadmin-edit-national-membership-form-response.webp?alt=media" alt="" width="563">

#### Optional: Bulk Update Member Data <a href="#optional-bulk-update-member-data" id="optional-bulk-update-member-data"></a>

You can [upload a CSV](https://docs.opensports.net/admin-help/groups-and-members/member-management/member-data-and-filters/how-to-bulk-update-member-details.md) file from your national membership organization to bulk update player records, including membership expiry dates.

To do this:

1. Navigate to **Settings > Member Forms**
2. Click **Upload CSV**
3. Match the columns in your file to these fields:
   * Phone Number
   * National Membership ID
   * National Membership Expiry

{% hint style="info" %}
**Note:** This feature works best when the player's email matches the records in the national database. In the near future, you’ll be able to directly import based on the National Membership ID.
{% endhint %}

### Advanced Use Cases <a href="#advanced-use-cases" id="advanced-use-cases"></a>

1. Early Access for Members

Let verified members register before the general public by assigning staggered start times:

* Member registration opens 14 days before the event
* General registration opens 7 days before the event

2. Members-Only Events

Create exclusive events by applying Member Rules to all registration options. Only verified members will be able to register.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opensports.net/admin-help/groups-and-members/member-forms-and-rules/how-to-restrict-event-access-using-an-external-member-database.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
