# Limiting Active Vehicles

<p class="callout info"><span data-colorid="dg9sgk26yn">OPSCOM allows administrators to control the number of active vehicles a user can have associated with their profile. This feature, configured through **User Types**, helps manage parking inventory, prevent abuse, and ensures that users maintain a reasonable number of active vehicles in the system. This article explains how to set these limits and how they impact the user experience.</span></p>

### Setup &amp; Configuration

Limiting active vehicles is controlled through the settings of individual **User Types**. For detailed information on working with user types, [refer to this wiki article](https://opscom.wiki/books/setup-configuration-for-admins/page/user-types).

1. Hover over **System Configuration,** then **Users,** and click **Types**. You'll be redirected to the **User Type Administration** page.

##### <span style="text-decoration: underline;">Editing Active Vehicle Limits for a User Type</span>

1. Locate the **user type** you wish to edit from the list (e.g., **Full Time Student**) and click **Edit**.
2. Locate the **Extra Active Vehicles** field. This number represents how many ***additional*** active vehicles a user of this type may have on their profile, beyond the first required active vehicle. 
    - For example, if you set this number to `1`, the user may have a maximum of `2` active vehicles (their one required active vehicle + one additional).
3. Enter the desired number to reflect the maximum additional active vehicles allowed.
4. Click **Update User Type** to apply your new limit.

---

### Using this Feature

Once the active vehicle limit is set for a user type, it directly affects how users interact with their vehicle information on the user portal.

##### <span style="text-decoration: underline;">What Users See on the User Portal</span>

1. A user logs into their portal and clicks the **Vehicle** tab to access their vehicle information section.
2. This tab displays any vehicles currently associated with their profile (e.g., a "beige Acura" with plate "ABC316").
3. The user attempts to add a new vehicle by clicking **Add New Vehicle**, fills out the information, and clicks **Save Changes**. A pop-up message will confirm the vehicle was successfully added, and it will appear on their **Vehicles** tab.

##### <span style="text-decoration: underline;">Exceeding the Active Vehicle Limit</span>

If a user tries to add a vehicle that would exceed the configured limit (e.g., attempting to add a third vehicle when the limit is set to a maximum of 2 active vehicles):

1. The user enters the vehicle information and clicks **Save Changes**.
2. They will still receive a pop-up message indicating the vehicle was successfully added.
3. However, the newly added vehicle will appear on the **Vehicles** page in an **Inactive** state.
4. If the user attempts to make this third vehicle active by toggling its state, they will receive a pop-up message indicating that the vehicle cannot be made active due to the limit set for their user type.

##### <span style="text-decoration: underline;">Minimum Active Vehicle Requirement</span>

Conversely, if a user attempts to make *all* vehicles on their profile inactive, a pop-up will appear indicating that the user must always have at least **one active vehicle** associated with their profile.

---

### <span style="color: rgb(22, 145, 121);">Best Practices &amp; Considerations</span>

- <span style="color: rgb(22, 145, 121);">**Understanding the "Additional" Limit**: Remember that the `Active Vehicles` number you set represents *additional* vehicles beyond the *one required active vehicle*. A setting of `0` means a user can have a maximum of one active vehicle. A setting of `1` means a user can have a maximum of two active vehicles, and so on.</span>
- <span style="color: rgb(22, 145, 121);">**Existing Vehicles are Grandfathered**:</span>
    - <span style="color: rgb(22, 145, 121);">**Important Note**: If you reduce the number of allowed active vehicles for a user type, users who *currently* have more active vehicles than the newly reduced setting will **not** be immediately affected. They are "grandfathered in" with their current active vehicles.</span>
    - <span style="color: rgb(22, 145, 121);">The new, stricter rule will only come into effect when the user attempts to **add new vehicles** or reactivate previously inactive vehicles in the future.</span>
- <span style="color: rgb(22, 145, 121);">**Existing Vehicles Already in System**: If the vehicle being added is already present in the system but not currently associated with the user's profile, the user will be prompted to add this existing vehicle. The same active vehicle rules described here will still apply to this process.</span>
- <span style="color: rgb(22, 145, 121);">**Clarity for Users**: While the system provides pop-up messages, it can be helpful to inform users about active vehicle limits in your FAQs or permit purchasing guidelines to manage expectations.</span>

<div class="confluence-information-macro confluence-information-macro-tip conf-macro output-block" data-hasbody="true" data-macro-id="29dc3477-1688-4dc1-acd3-2e4297411a5c" data-macro-name="tip" id="bkmrk-if-the-vehicle-being"><div class="confluence-information-macro-body">  
</div></div>