# Guide: Lane Assignments and Restrictions

{% hint style="warning" %}
The information in this section applies to CryoSPARC v4.1+.
{% endhint %}

## Lane Assignments and Restrictions

CryoSPARC users can be assigned access to specific lanes in the CryoSPARC scheduler. Having access to a lane means that the user can queue jobs to the lane and use its resources. Users not assigned to a lane do not have access to it and cannot queue jobs on that lane. By default, when a CryoSPARC user is created, they will be assigned all existing lanes. Similarly, when a new lane is added, all users will be assigned to that lane.

A user’s lane assignments can be viewed and modified using the “Lane Restrictions” tab of the admin panel in the UI.

<figure><img src="https://1916621962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7DGv3GkRvGGpbVPCgg%2Fuploads%2Fe848gguqLb4IvJxBp0Ji%2Fv4_1_lane_restrictions.png?alt=media&#x26;token=456c00c2-ecd0-4f6a-a5a4-545b0f6912eb" alt=""><figcaption></figcaption></figure>

Lanes can be assigned/unassigned for each user by checking the boxes next to the lane names and clicking the transfer arrow in the corresponding direction.

To get a user's lane assignments using the CLI:

{% tabs %}
{% tab title="v5" %}

```python
$ cryosparcm cli "api.users.get_lanes('user123@structura.bio')"
['cryoem1', 'cryoem2', 'cryoem3']
```

{% endtab %}

{% tab title="v4" %}

```javascript
$ cryosparcm cli "get_user_lanes('user123@structura.bio')"
['cryoem1', 'cryoem2', 'cryoem3']
```

{% endtab %}
{% endtabs %}

To modify a user’s lane assignments using the CLI:

{% tabs %}
{% tab title="V5" %}

```javascript
$ cryosparcm cli "api.users.set_lanes('user123@structura.bio', ['cryoem1'])"
```

{% endtab %}

{% tab title="V4" %}

```python
$ cryosparcm cli "set_user_lanes('user123@structura.bio', ['cryoem1'])"
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.cryosparc.com/setup-configuration-and-management/software-system-guides/guide-lane-assignments-and-restrictions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
