AWS Security ChangesHomeSearch

AWS connect: Connect adds IAM policy examples for cases batch operations

Service: connect · 2026-11-08 · Documentation medium

File: connect/latest/adminguide/security_iam_id-based-policy-examples.md · Type: iam

Summary

Adds three new identity-based policy examples for Amazon Connect Cases showing how to allow batch and single-case operations, only batch operations, or only single-case operations using the `cases:IsBatchAction` condition key and an explicit Deny statement.

Security assessment

The new content documents authorization scoping for `cases:UpdateCase` and `cases:CreateRelatedItem`, including a BoolIfExists condition key and an explicit Deny to block batch operations, which is least-privilege IAM guidance rather than a fix for a specific reported vulnerability.

Evidence

+                        "cases:IsBatchAction": "true"

Diff

diff --git a/connect/latest/adminguide/security_iam_id-based-policy-examples.md b/connect/latest/adminguide/security_iam_id-based-policy-examples.md
index 2bb3c1c..018f2de 100644
--- a//connect/latest/adminguide/security_iam_id-based-policy-examples.md
+++ b//connect/latest/adminguide/security_iam_id-based-policy-examples.md
@@ -7 +7 @@
-Policy best practicesAllow IAM users to view their own permissionsGrant "View User" permissionsAllow users to integrate with external applicationsDescribe and update Connect Customer users based on tagsCreate Connect Customer users based on tagsCreate and view Amazon AppIntegrations resourcesCreate and view Connect Customer agent assist AssistantsManage outbound campaigns resources
+Policy best practicesAllow IAM users to view their own permissionsGrant "View User" permissionsAllow users to integrate with external applicationsDescribe and update Connect Customer users based on tagsAllow batch and single-case operations for casesAllow only batch operations for casesAllow only single-case operations for casesCreate Connect Customer users based on tagsCreate and view Amazon AppIntegrations resourcesCreate and view Connect Customer agent assist AssistantsManage outbound campaigns resources
@@ -26,0 +27,6 @@ To learn how to create an IAM identity-based policy using these example JSON pol
+  * Allow batch and single-case operations for cases
+
+  * Allow only batch operations for cases
+
+  * Allow only single-case operations for cases
+
@@ -200,0 +207,81 @@ This policy allows "describe user" and "update user" but only for those Connect
+## Allow batch and single-case operations for cases
+
+The [BatchUpdateCase](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_BatchUpdateCase.html) and [BatchCreateRelatedItem](https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-cases_BatchCreateRelatedItem.html) operations use the same IAM actions as their single-case counterparts, `cases:UpdateCase` and `cases:CreateRelatedItem`. A policy that doesn't include the `cases:IsBatchAction` condition key allows both batch and single-case operations by default. Set the key to `true` to allow only batch operations, or set it to `false` to deny batch operations. Use this key to control which type of operation a policy allows.
+
+A policy that grants these actions without a `cases:IsBatchAction` condition allows both batch and single-case operations. With the following sample policy, you can update cases and create related items in both batch and single-case operations.
+    
+    
+    {
+        "Version": "2012-10-17", 
+        "Statement": [
+            {
+                "Sid": "AllowBatchAndSingleCaseActions",
+                "Effect": "Allow",
+                "Action": [
+                    "cases:UpdateCase",
+                    "cases:CreateRelatedItem"
+                ],
+                "Resource": "arn:aws:cases:region:account-id:domain/domain-id/case/*"
+            }
+        ]
+    }
+
+## Allow only batch operations for cases
+
+With the following sample policy, you can update cases and create related items in batch operations only.
+    
+    
+    {
+        "Version": "2012-10-17", 
+        "Statement": [
+            {
+                "Sid": "AllowOnlyBatchCaseActions",
+                "Effect": "Allow",
+                "Action": [
+                    "cases:UpdateCase",
+                    "cases:CreateRelatedItem"
+                ],
+                "Resource": "arn:aws:cases:region:account-id:domain/domain-id/case/*",
+                "Condition": {
+                    "BoolIfExists": {
+                        "cases:IsBatchAction": "true"
+                    }
+                }
+            }
+        ]
+    }
+
+## Allow only single-case operations for cases
+
+An `Allow` statement without a `cases:IsBatchAction` condition permits both batch and single-case operations. To allow only single-case operations, add an explicit `Deny` statement for requests where `cases:IsBatchAction` is `true` or the condition key is missing. An explicit `Deny` overrides any `Allow`, so batch operations stay blocked even if another policy allows them. With the following sample policy, you can only update cases and create related items in single-case operations. The policy denies these actions for batch operations.
+    
+    
+    {
+        "Version": "2012-10-17", 
+        "Statement": [
+            {
+                "Sid": "AllowCaseActions",
+                "Effect": "Allow",
+                "Action": [
+                    "cases:UpdateCase",
+                    "cases:CreateRelatedItem"
+                ],
+                "Resource": "arn:aws:cases:region:account-id:domain/domain-id/case/*"
+            },
+            {
+                "Sid": "DenyBatchCaseActions",
+                "Effect": "Deny",
+                "Action": [
+                    "cases:UpdateCase",
+                    "cases:CreateRelatedItem"
+                ],
+                "Resource": "arn:aws:cases:region:account-id:domain/domain-id/case/*",
+                "Condition": {
+                    "BoolIfExists": {
+                        "cases:IsBatchAction": "true"
+                    }
+                }
+            }
+        ]
+    }
+