# Rule

> Rule API in Private Test Cloud for creating, reading, updating, and deleting SAML provisioning rules that assign users to groups based on SAML claims.

The Rule API manages SAML provisioning rules within organizations. Each rule maps SAML claim conditions to UiPath groups: when a user signs in through SAML and matches all of a rule's conditions, the user is assigned to the rule's groups. The API supports retrieving, creating, updating, and deleting these rules.

## Base URL

```
/api/Rule
```

The operation pages document the supported Rule endpoints:

- [Get all rules in bulk](get-all-rules-in-bulk.md)
- [Get single rule](get-single-rule.md)
- [Create rule](create-rule.md)
- [Update rule](update-rule.md)
- [Delete single rule](delete-single-rule.md)
- [Delete multiple rules](delete-multiple-rules.md)

## Authentication

* Schema: JWT Bearer Token
* Required Scopes: `PM.AuthSetting`
* Required Group: **Administrators**
* Additional: Host Organization Admin authorization may be required
