Policy Assignments
A policy assignment grants a spending policy to callers in a cost object. The policy defines the budget amount, covered models, and priority; the assignment connects it to a cost object and, when needed, identifies the callers. Use Governance → Policy Assignments to create and manage these grants.
A cost object is the name used to group spending, such as a project name or the default ORG. A subject is the caller matched by a rule, such as a user with the finance role. These budgets apply to model calls made with a user's identity token (JWT); API-key calls use role cost limits instead. Each matching user has a separate counter.
Policy Assignments is a preview feature. The platform team must enable POLICIES_ENABLED in DIAL Admin and use a DIAL Core version that supports policies. The screen is hidden by default. The global spending mode controls whether budgets are inactive, evaluated in Shadow, or enforced.
How assignments apply
Create a policy first. The policy and assignment together must specify the subject and cost object exactly once. In DIAL Admin, an assignment gets its cost object from its folder. Add subject rules to the assignment only if the policy does not already provide them. A policy that already specifies both subject and cost object applies on its own and does not need an assignment.
For example, a global policy can define a $25 monthly budget, priority 10, and no subject or cost object. Create an assignment with cost object ORG and the subject rule roles EQUAL finance. When ORG is the configured default, each user with the finance role has their own $25 budget for covered model calls without a project. A call for a different cost object cannot use this assignment.
The assignment has no priority field: it uses the priority of its policy. When multiple budgets match a call, Core tries lower priority numbers first. Changing the policy's priority affects its assignments. See Policy priority.
Where to find Shadow mode
Shadow is a deployment-wide spending mode, not a control on the Policy Assignments screen. In Shadow mode, Core evaluates budgets and records their usage without rejecting calls on budget grounds. Role cost limits still apply, and Core logs when a budget would have rejected a call. This lets the platform team check the assignments before switching to Enforce. See Spending mode.
If you cannot access System Properties, ask a full administrator.
Before saving, read the System Properties warning: an API-managed setting can override file-defined global settings.
To select Shadow mode in DIAL Admin:
- Open System Properties from Quick Actions on the DIAL Admin home page or the globe icon in the footer.
- Select Spending Limits, then choose Shadow in the Mode selector.
Main screen
Open Policy Assignments in Governance to browse grants grouped by cost object. Open an assignment from the list to inspect its policy, subject rules, and metadata.

Folders
Assignments are stored in DIAL Core's platform storage. The platform tree groups assignments by cost object. Select a folder to view its assignments. The folder name is the spending identifier, not a folder of user files: for example, an assignment named finance-grant for cost object ORG is stored under platform/ORG/.
A cost-object folder is derived from its records; specify the cost object when creating an assignment rather than creating a folder separately. Use the folder tree or breadcrumb path to navigate between platform/ and its cost-object folders. Assignments have one cost-object folder level, not an arbitrary folder hierarchy.
Grid columns
The Policy Assignments grid shows the following columns for the folder being viewed:
| Column | Description |
|---|---|
| Name | Assignment identifier or cost-object folder name. Open an assignment to review its configuration or a folder to browse its assignments. |
| Author | User recorded as the assignment's author. |
| Created time | When the assignment was created. |
| Updated time | When the assignment was last changed. |
Controls
Use Create above the grid to add a grant. Filter the list beneath the column headings, or select rows to use the bulk action:
| Control | Description |
|---|---|
| Create | Opens the assignment creation form. Available with write access. See Create. |
| Column filters | Use the search inputs and filter menus beneath the column headings to narrow the visible rows. |
| Reset filters | Clears the grid filters. Appears when a filter is active. |
| Row selection | Select assignment rows or cost-object folders to use bulk Delete. Deleting a selected folder removes all assignments in it. Available with write access. See Delete. |
Row actions
With write access, open the actions menu (⋮) at the end of an assignment row:
| Action | Description |
|---|---|
| Open in a new tab | Opens the assignment configuration in a new browser tab. |
| Duplicate | Creates an assignment using the existing assignment's settings. See Duplicate. |
| Delete | Opens a deletion confirmation. Deleting the assignment removes its budget from consideration. See Delete. |
Create
Create an assignment to grant an existing policy to callers in a cost object. Unlike creating a policy, this does not define a new budget amount or priority; those come from the selected policy.
Select the policy and cost object
The first step of the Create Policy Assignment form identifies the grant and its policy. Required indicates whether a value is needed to continue. Policy path replaces Policy only when the policy list cannot be loaded:
| Field | Required | Description |
|---|---|---|
| ID | Yes | Unique identifier within the cost object. |
| Cost object | Yes | Project or personal cost-object name. It determines the assignment's folder; if you started in a cost-object folder, the value is fixed to that folder. |
| Policy | Yes | Select a global policy or a project policy in the same cost object. The selector is disabled while its options load. If the list cannot be loaded, use Policy path instead. |
| Policy path | Conditional | Enter the policy path when the policy list cannot be loaded. This is the alternative input for the same required policy reference, not an additional policy. |
Creation requires write access and an existing policy. Choose a global policy or a project policy in the assignment's cost object, and specify the cost object before continuing.
To enter a new assignment's details:
- Open Policy Assignments and click Create.
- Enter the details described above.
- Click Next to open Subjects.

Set the subjects
The Subjects step identifies the callers for the grant when its policy does not already identify them. It uses the same rule editor as assignment configuration.
Define subject rules on the policy or on the assignment, not both. If the policy does not define the subject, add rules to the assignment. If the policy already defines it, leave the assignment's rules empty. Core rejects the assignment if neither supplies a subject.
To complete assignment creation:
- Add subject rules if needed. Use Back to return to the details if necessary.
- Click Create. The assignment opens in its configuration screen. Complete any optional properties and save them.
Duplicate
Use Duplicate to reuse an existing grant's policy, subject rules, and optional metadata under a new identifier. Unlike starting a new assignment, the copy retains any expiry from the original.
Duplication requires write access. The new ID must be unique in the original assignment's cost-object folder.
A duplicate is a separate budget with its own counter. If both assignments match the same user and model in the same cost object, the user can use both budgets in turn. Check the intended spending allowance before duplicating an assignment. An expiry copied from an already expired assignment can also prevent the new assignment from being created.
To duplicate an assignment:
- Open the assignment's actions menu (⋮) and click Duplicate.
- Check the proposed ID and change it if necessary. DIAL Admin normally adds
-copy; if the original ID already containscopy, change the proposed ID yourself. - Click Duplicate. On success, the copy opens in the same cost-object folder. It keeps the selected policy, subject rules, and optional metadata, including any expiry. Review and update them as needed.
Configuration
Open an assignment to inspect or change its policy, subject rules, and metadata. Changes in Properties, Subjects, or the JSON editor are staged until you click Save; click Discard to abandon them.
Editing requires write access. For a read-only administrator, the form fields and JSON editor are read-only, and mutation controls are unavailable.
The assignment configuration header contains the controls for saving changes, deleting the record, and switching its editing view:
| Control | Description |
|---|---|
| Save | Saves staged changes. Appears after a change. With JSON Editor switched off, a missing policy, an invalid expiry format, or incomplete subject rules prevent saving. |
| Discard | Restores the saved assignment, abandoning staged changes in either configuration section or the JSON editor. Appears after a change. |
| Delete | Opens a deletion confirmation. Available with write access when there are no staged changes and JSON Editor is switched off. See Delete. |
| JSON Editor | Switches from Properties and Subjects to the record's JSON representation. Available when there are no staged changes. See JSON editor. |
Properties
Properties contains the assignment's policy reference and optional metadata. The cost object is read-only because it is determined by the assignment's folder.
In the Properties form below, Required means a value is needed for a valid assignment, including its derived cost object; it does not apply to displayed metadata. Editable describes platform-stored assignments with write access and JSON Editor switched off. Policy path replaces Policy only when the policy list cannot be loaded:
| Field | Required | Editable | Description |
|---|---|---|---|
| Maintainer | Not applicable | No | Author recorded in the assignment's metadata, when available. |
| Updated Time | Not applicable | No | When the assignment was last updated, when available. |
| Creation Time | Not applicable | No | When the assignment was created, when available. |
| Cost object | Yes | No | The cost object the assignment belongs to, derived from its folder. For example, an assignment in platform/ORG/ uses ORG. |
| Policy | Yes | Conditional | The policy used by this assignment. Changing it changes the budget definition for this grant. The selector offers global policies and policies in this cost object and is disabled while its options load. If the list cannot be loaded, use Policy path instead. |
| Policy path | Conditional | Conditional | Required and editable when the policy list cannot be loaded. Enter the policy path as the alternative input for the same policy reference. |
| Source | No | Yes | Optional text identifying where the grant came from, such as ticket or admin. Core stores this as metadata; it does not use it to match callers. This is different from Source in a subject rule. |
| Ticket | No | Yes | Optional reference to the request or ticket for the grant. |
| Expires at | No | Yes | Optional expiration date and time, in ISO 8601 with an offset, such as 2027-01-01T00:00:00Z. A newly set or changed expiry must be in the future. An expired assignment no longer supplies a budget. |
| Description | No | Yes | Optional explanation of the grant. |
An expired assignment no longer supplies a budget. In Enforce mode, affected model calls can be rejected if no other budget can pay. Check the intended grant duration before setting Expires at.
To update an assignment's properties:
- Change the policy or optional metadata as needed. The cost object cannot be changed in this form.
- If setting or changing Expires at, enter a future date and time with an offset.
- Click Save to apply changes or Discard to abandon them.

Subjects
Subject rules identify the callers covered by the assignment. Multiple rules are combined with OR: a caller needs to match one rule.
In the Subjects rule editor below, Required applies to each rule you add, not to the whole subject list. Editable describes platform-stored assignments with write access and JSON Editor switched off:
| Field | Required | Editable | Description |
|---|---|---|---|
| Source | Yes | Yes | What to check: roles for DIAL roles, email for the resolved email, or a token claim path such as sub. The source must be available for the rule to match. |
| Function | Yes | Yes | How to match the source: EQUAL, CONTAIN, REGEX, TRUE, or FALSE. See Policy subjects for the matching functions. |
| Targets | Conditional | Conditional | Values or patterns to match. Required and editable for EQUAL, CONTAIN, and REGEX; not used for TRUE or FALSE. Selecting TRUE or FALSE clears and disables targets; enter targets again if you switch back to a function that uses them. |
With write access, use Add rule below the rules or the remove control at the end of an individual rule:
| Control | Description |
|---|---|
| Add rule | Adds a rule to the subject list. Complete its Source, Function, and any required Targets, then click Save. |
| Remove rule | Removes an individual rule from the staged subject list. Click Save to apply the removal. |
Define subject rules on the policy or on the assignment, not both. If the policy already identifies the subjects, leave the assignment's subject rules empty. If neither supplies a subject, Core rejects the assignment.
To grant a budget to users with the DIAL role finance:
- In Subjects, click Add rule.
- Set Source to
roles, select EQUAL for Function, and addfinanceto Targets. - Add further rules if needed, then click Save.
The screenshot shows another example: sub with TRUE. It matches callers whose token contains a text value for that source; Targets is disabled because TRUE needs no value. See Policy subjects for the matching functions.

JSON editor
Switch JSON Editor on in the configuration header to review or edit the assignment record as JSON instead of using Properties and Subjects. This view has no format selector. Its changes are staged until you click Save; Discard restores the saved record. For a read-only administrator, the JSON editor is read-only.
Delete
Delete an assignment when its grant is no longer needed. Removing the assignment removes its budget from consideration, not the policy it references. Use the assignment's actions menu or configuration screen for one grant, or select rows to delete several grants together.
Deletion requires write access. Bulk deletion requires at least one selected assignment row or cost-object folder.
Removing or expiring an assignment removes its budget from consideration. In Enforce mode, affected model calls can be rejected if no other budget can pay. Check that the affected callers still have a matching budget that can pay before deleting a grant.
To delete an assignment:
- Open Delete in the assignment's actions menu or configuration screen.
- Review the assignment in the confirmation, then click Delete to confirm or Cancel to keep it.
Bulk deletion can remove selected assignments or all assignments in selected cost-object folders. Deleting a folder removes every assignment record in it; the folder disappears when it no longer contains records.
Select a cost-object folder only if you intend to delete all of its assignments. Review the folder's contents in the confirmation before deleting them.
To delete selected assignments or cost-object folders:
- Select the assignment rows or cost-object folders in the grid.
- Click Delete in the selection toolbar.
- Review the selected records and any folder contents, then click Delete to confirm or Cancel to keep them.
When the selection includes a folder, the confirmation provides a folder tree for reviewing its contents before deletion.
Further reading
- Policies — define the budget, subject rules, and priority
- Usage limits and cost control — configure and monitor role limits and budgets
- Global settings — spending modes and the default cost object