# ST-USG-026 - Activity Restrictions

> **Rule ID**: `ST-USG-026`

**Rule ID**: `ST-USG-026`

**Scope**: Workflow

## Description

The rule checks whether any restricted activities are used in the project. Restricted activities are defined by one of the following lists:

* **Prohibited Activities** - Activities that are not allowed in the project. All activities that are not on this list can be used in the project.
* **Allowed Activities** - Activities that are allowed in the project. Only the activities that are on this list can be used in the project.

## Recommendation

Only use activities that are allowed by your organization.

  ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/2024-10-docs-image-167305-713ee518.webp)

## Modifying the Rule

In the **Project Settings** window, select the **Workflow Analyzer** tab. Find and select the rule, and then define the restricted activities using either the prohibited activities list or the allowed activities list. When modifying the rule:

* Add the namespaces of the activities (for example `UiPath.Core.Activities.Delete`) separated by comma (,).
* You can use the asterisk (\*\) wildcard character at the beginning or at the end of each entry. For example, adding `UiPath.Core.Activities*` to the list of prohibited activities means that no activity with a namespace that starts with UiPath.Core.Activities is allowed.
* Do not use the lists concurrently. If both lists are populated, the list of prohibited activities takes precedence.

## Reset to Default

By default, the rule does not restrict the use of any activity. To reset the rule to default, right-click it in the **Project Settings** window, and then click **Reset to default**.

  ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/2024-10-docs-image-168249-3deea8a4.webp)

The **Default action** is also reset to its default value **Warning**.
