Skip to main content

Enterprise Management FAQ

These answers cover the questions administrators ask most often about Kiro Enterprise Management (preview). For service limits, see Limits. To write rules, see the KGL reference.

Rules

If one rule allows something and another denies it, which wins?

A deny always wins when rules overlap. Rule order has no effect. This holds wherever the rules come from: one control, the controls of the profile, a group, and a user together, or Enterprise Management together with a managed-settings.json file. See How rules combine.

I added one deny rule for shell, and now Kiro has no shell access. Why?

When no rule names a capability, Kiro keeps its own default for it. When you add any rule for fs_read, fs_write, shell, web_search, web_fetch, or mcp, default deny turns on for that capability, for everyone on the profile. A use that no applicable allow or ask rule covers is denied. A deny rule alone therefore denies everything.

Add an ask or allow rule that covers the other uses:

  • Use ask to keep approval prompts. Kiro asks the developer before each use that no deny rule blocks.
  • Use allow to let Kiro act without asking.

A deny wins over an allow or ask, so the deny rule still blocks what it matches.

How do I deny only specific commands, servers, or domains?

Pair one broad rule with one narrow deny rule. The broad rule covers everything else. The deny rule blocks only what it matches.

Deny two shell commands. Kiro asks before every other command:

yaml
rules: - id: shell-ask capability: shell effect: ask - id: shell-deny-destructive capability: shell effect: deny match: ["rm -rf *", "sudo *"]

Deny one MCP server. Kiro asks before tools from every other server:

yaml
rules: - id: mcp-ask capability: mcp effect: ask - id: mcp-deny-untrusted capability: mcp effect: deny match: ["untrusted-server/*"]

Deny two domains for web_fetch. Kiro fetches every other domain without asking:

yaml
rules: - id: web-fetch-allow capability: web_fetch effect: allow - id: web-fetch-deny-domains capability: web_fetch effect: deny match: ["*.example.com", "example.org"]

Deny one capability for one group only. Everyone else keeps approval prompts:

yaml
rules: - id: shell-ask capability: shell effect: ask - id: shell-deny-contractors capability: shell effect: deny when: 'groups in ["<group id>"]'

You cannot deny a use for one user or group and leave everyone else on Kiro's own default. The deny rule turns on default deny for the whole profile, also for users outside its when condition. Always add the broad ask or allow rule.

Do not use a broad fs_read allow to cover file reads. It also opens protected credential files, such as ~/.ssh/**, to sandboxed commands. Use ask, or give the allow a match on only the paths you need. See How rules combine.

Tool calls are denied, and the error says a rule may have too many patterns

The full message is similar to: "Permissions policy could not be evaluated (memory access out of bounds). It may contain a rule with too many patterns. Tool calls are blocked until it is fixed."

One rule has too many exclude patterns. Kiro adds each exclude pattern to every check for that rule, and the policy evaluator has a depth limit. When a rule goes past it, Kiro cannot evaluate the policy and denies every tool call until the policy is fixed.

  • The limit is per rule, not per policy.
  • A wildcard pattern counts as one pattern. Kiro does not expand it.
  • Current clients check each match pattern separately, so a long match list is safe. Older clients check all match patterns of a rule together, so they count toward the limit.
  • Keep match and exclude together to 100 or fewer patterns in one rule.

To fix it, replace the long exclude list with deny rules. See the next question.

How do I split a large exclude list?

Move the excluded patterns into deny rules with match, and split them across several rules.

Before: one rule with a long exclude list.

yaml
rules: - id: shell-allow capability: shell effect: allow exclude: ["cmd-001 *", "cmd-002 *", "...", "cmd-400 *"] # too many patterns

After: one broad allow and several deny rules of 100 patterns or fewer each.

yaml
rules: - id: shell-allow capability: shell effect: allow - id: shell-deny-part-1 capability: shell effect: deny match: ["cmd-001 *", "cmd-002 *", "...", "cmd-100 *"] - id: shell-deny-part-2 capability: shell effect: deny match: ["cmd-101 *", "...", "cmd-200 *"] - id: shell-deny-part-3 capability: shell effect: deny match: ["cmd-201 *", "...", "cmd-300 *"] - id: shell-deny-part-4 capability: shell effect: deny match: ["cmd-301 *", "...", "cmd-400 *"]

Before you change the rule, know these differences:

  • An exclude only removes uses from that one rule. Another allow or ask rule can still cover them. A deny blocks them, whatever other rules say. With only one allow rule and default deny, the result is the same.
  • Do not split an exclude list across several allow rules. Each allow covers what the others exclude, so every excluded pattern is allowed again by one of the other rules.

Is there a limit on the number of rules or matchers?

There is no fixed limit on the number of rules. The limits that apply are the per-rule pattern limit, the 512 KiB file size, and the 200 distinct users and groups in when conditions. See Limits. A 58 KB KGL file is well below the size limit.

Do wildcards resolve against my files when the policy loads?

No. Kiro compares each pattern with the requested path, command, server, or domain at the time of the call. A pattern such as /** does not read the file system and counts as one pattern.

A rule does nothing, or covers more than I expected

The service ignores unknown field names. If you write matches: in place of match:, Publish gives no error and the rule covers everything. Check the spelling of match, exclude, and when. Patterns are case-sensitive.

My rule for an Okta user or group matches no one

Kiro gives Okta users and groups its own IDs. The ID from Okta (00g...) does not work. Pick the user or group in the Form view, and the console writes the ID. See Find user and group IDs.

Messages to developers

Where does a developer see the message I wrote on a rule?

Nowhere. KGL accepts a rule message, but Enterprise Management does not support it. The developer sees Kiro's standard denial. To tell developers why something is denied, use a steering file or your own internal channels. See Not supported.

Assigning controls

Is there a limit on how many profiles, groups, or users I can assign one control to?

Yes. One control can be assigned to 100 scopes at most. A scope is a profile, and with the API, an IAM Identity Center group or user in a profile. Each scope can have only one control assigned. There is no limit on the number of controls in an account, and no limit on the total number of assignments.

Can I assign a control to each of my 1,000 users?

Yes, but not with one control. Each user can have one control assigned directly, and each control can be assigned to 100 users at most. For 1,000 user assignments, you need at least 10 controls.

  • If each user needs different controls, create one control for each user, or one for each set of up to 100 users who share the same controls.
  • If many users share the same controls, assign the control to a group instead. One group assignment covers every member of the group, and it counts as one of the 100.
  • Each user also gets the controls of the profile and of each assigned group they belong to. A deny in any of them wins. See What happens when a user is under more than one assigned control?

A third way is one control on the profile, with when conditions that scope rules to users or groups. One policy can name up to 200 distinct users and groups in its when conditions, so this way does not scale to 1,000 users unless you name groups.

Can I create 1,000 controls and assign each one to a different user?

Yes. There is no limit on the number of controls in an account, and each user can have one control assigned. Plan for these points:

  • Requests per second. The API limits each operation for each account. Create, Publish, and Associate each allow 2 requests per second. PutFiles allows 10. Setting up 1,000 controls takes at least about 9 minutes, even when you run the steps for different controls at the same time. Retry a ThrottlingException with backoff.
  • Changes to all users. A rule that every user needs must be in every control, or in the profile's control. To change it in 1,000 controls, you publish 1,000 times, which takes at least about 9 minutes. During that time, some users have the old rule and some have the new one. Put shared rules in the profile's control, and keep only the per-user differences in user controls.
  • Identity source. A user assignment takes an ID in the IAM Identity Center user ID format. The API refuses other formats.
  • Listing. ListEnterpriseManagementResources returns 20 controls per page by default. Use the next token to read all of them.
  • Rules combine. Each user also gets the profile's control and the controls of the groups they belong to. A deny in any of them wins.

What happens when a user is under more than one assigned control?

  • Rules: Kiro evaluates the rules of every control that applies to the user together. No control has priority over another. A deny in any of them wins.
  • Settings: a value that the profile's control locks with !locked applies to everyone. Otherwise the most specific scope sets the value: user, then group, then profile.
  • Files: the user gets the files of every control that applies.

I deleted a control while it was assigned, and now I cannot assign another one

The profile stays bound to the deleted control. Disassociate the deleted control by its ID, then assign the new one. Always disassociate before you delete.

The API accepted a profile ID, but nothing changed

The associate API accepts a profile ID that does not exist without an error. Copy the profile ID from the Kiro console, and check that the Controls page names the profile.

Cost controls

How do I limit how many pooled credits each user can use?

Set credit_pool.usage_limit, the most pooled credits a user may use in a billing cycle. Set it in the control on the profile as the default limit for each user, or in a control assigned to a group or a user. The user's own limit wins, then the highest limit among the user's groups, then the profile's, so a user's own limit can be higher than their group's. Leave it unset for no limit; 0 blocks all use. The limit applies only to users who hold a credit pool seat. A limit higher than the pool's credits does not add credits; usage stops when the pool runs out.

For example, in a pool with 500 credits, group A (users a and b) has a limit of 250, group B (users b and d) has a limit of 200, and user a has a limit of 400:

UserEffective limitWhy
a400The user's own limit wins.
b250User b has no limit of their own, so the higher of the two group limits applies.
d200The group B limit applies.

With only a profile limit of 300, each user can use up to 300 credits.

See Set usage limits in Controls.

Can I still set usage limits on the Pool and Access Management tabs?

Yes. The Pool and Access Management tabs and the credit_pool.usage_limit setting in Controls write the same value in AWS Billing, which enforces it. The last change wins. A change you make on those tabs shows in Controls the next time you open the control assigned to that profile, group, or user, and a change you publish in Controls shows on the tabs.

Does migration copy my existing usage limits into the control?

No. The control that migration creates does not set credit_pool.usage_limit. Your existing limits stay in AWS Billing and stay enforced.

  • When you open the control assigned to the profile, its YAML shows the profile's current limit with the comment # Current value enforced in AWS Billing above it. Controls reads that value from AWS Billing; it is not stored in the control.
  • Group and user limits work the same way. After you assign a control to a group or user, the control shows that group's or user's current limit.
  • To manage a limit in Controls, set credit_pool.usage_limit in the control and publish. From then on, each publish writes the control's value.

Can I turn on overages for one group or one user?

No. overages is on or off for the whole account, so set it in the control on the profile, not for a group or a user. See Setting keys.

Files: steering, Skills, and Powers

Which file types can I distribute?

Every distributed file must be UTF-8 text. The service refuses a file with content that is not valid UTF-8 (FILE_NOT_UTF8). Binary files, such as executables, images, .pptx, .xlsx, and .docx files, cannot be distributed.

  • Steering: always use the .md extension. A steering file without it is not loaded.
  • Skills and Powers: a Skill can include text support files, such as .sh, .py, .json, and text templates, next to its SKILL.md. Binary templates cannot be included.

Which file names can I use?

  • Each folder or file name starts with a letter or digit and holds only letters, digits, ., _, and -. Spaces are not allowed.
  • The path is relative and at most 200 bytes.
  • Windows device names, such as con, nul, com1, and lpt1, are refused with any extension.
  • Two paths of one type that differ only in case, such as Guide.md and guide.md, are the same file.

Why did a file change not reach developers?

Files arrive once, when a session starts. A running session keeps its copy until the next session. Start a new session, or restart the client. Rules and settings arrive within about five minutes.

Clients

Do these controls also apply to my managed-settings.json file?

No. Enterprise Management policies are delivered by the Kiro service. The client-side managed-settings.json file is a separate mechanism; see Permission policies. If a developer has both, Kiro applies both, and a deny in either one wins. When you debug a denial, check both sources.

Can a developer get around the controls?

Capabilities with the status "Enforced" are decided by the Kiro service on every client. Capabilities with the status "Client rollout", such as shell, fs_read, fs_write, and mcp, are enforced by the client. A user with administrative access to their machine can circumvent client-enforced controls. See Enforcement status.

The client says "Unable to load available models"

No model_use rule allows models for the profile, or model_governance.enabled is on and the rules allow nothing. Publish a model_use allow rule.

Page updated: November 26, 2026