> For the complete documentation index, see [llms.txt](https://kb.mago.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.mago.io/mago-stage/admin-portal/manage-tags/tag-based-assignments.md).

# Tag-based assignments

Tag-based assignments use tags to determine which displays belong to an assignment.

Membership changes automatically when tags are added to or removed from displays and Mago Remote Agents. This makes tag-based assignments useful for applying supported policies to resources organized by location, purpose, department, or another shared characteristic.

#### Before you begin

Create the required tags and assign them to the appropriate displays or Agents before creating the assignment.

For instructions, see:

* **Manage tags**
* **View and edit display information**
* **View, edit, and share an Agent**

#### Create a tag-based assignment

1. In the Administration Portal, go to **Assignments > Group Assignment**.
2. Select **Add assignment**.
3. Enter a descriptive name for the assignment.
4. Select **Next**.
5. Select the tags that should determine membership.
6. Complete the creation process.
7. Open the new assignment to review its members and configure its policies.

Supported resources with the selected tags are included in the assignment.

{% hint style="info" %}
Displays and Mago Remote Agents can share the same tags. Only policy settings supported by each resource type take effect on that resource.
{% endhint %}

#### Assign policies

1. Open the tag-based assignment.
2. Select the required **Appearance** policy.
3. Select the required **Digital Signage** policy, when applicable.
4. Select **Save**.

Select **Reset** to discard policy changes that have not been saved.

For instructions on creating and configuring reusable policies, see **Manage policies**.

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2Fevd4YeWPu0DyL7ktqkfG%2Fimage.png?alt=media&amp;token=0156bda9-58d9-4708-8b7c-81c3f7345686" alt=""><figcaption></figcaption></figure>

### Change the assignment tags

1. Open the tag-based assignment.

   <figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FHXOQh6h1dPqv2d35P2Ai%2Fimage.png?alt=media&amp;token=eebf7541-863a-48c0-bb98-d3b40794b505" alt=""><figcaption></figcaption></figure>
2. Open the assignment actions menu.
3. Select **Manage Group**.
4. Add or remove tags.

   <figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FP57yjIMambadb0BQifJd%2Fimage.png?alt=media&amp;token=6c8a4561-df66-4107-a64b-016fccbcb5f2" alt=""><figcaption></figcaption></figure>
5. Save the changes.

Changing the selected tags can change which displays belong to the assignment.

{% hint style="warning" %}
Adding or removing tags from a display can change its assignment membership and the policies applied to it.
{% endhint %}

#### Rename an assignment

1. Open the tag-based assignment.
2. Open the assignment actions menu.
3. Select **Rename**.
4. Enter the new name.
5. Save the change.

#### Delete an assignment

1. Open the tag-based assignment.
2. Open the assignment actions menu.
3. Select **Delete**.
4. Confirm the deletion.

Deleting an assignment does not delete its displays, Agents, tags, or reusable policies. Only the assignment and its policy associations are removed.

#### Display-based and tag-based assignments

| Assignment type              | Membership                                                                                            |
| ---------------------------- | ----------------------------------------------------------------------------------------------------- |
| **Display-based assignment** | Displays are selected manually and remain assigned until an administrator removes them.               |
| **Tag-based assignment**     | Membership changes when the selected tags are added to or removed from supported displays and Agents. |
