AWS Security ChangesHomeSearch

AWS amazonq medium security documentation change

Service: amazonq · 2025-10-19 · Security-related medium

File: amazonq/latest/qbusiness-ug/isv-creating-index.md

Summary

Added detailed documentation about identity management methods (IAM Identity Center and IAM Federation) and API access configuration for SearchRelevantContent operations

Security assessment

The changes explicitly document how to configure IAM permissions and access scopes for secure API operations. This includes modifying policies to include 'qbusiness:SearchRelevantContent' action and configuring identity federation - critical security controls for API access management.

Diff

diff --git a/amazonq/latest/qbusiness-ug/isv-creating-index.md b/amazonq/latest/qbusiness-ug/isv-creating-index.md
index 16f8af0e9..6fd69175b 100644
--- a//amazonq/latest/qbusiness-ug/isv-creating-index.md
+++ b//amazonq/latest/qbusiness-ug/isv-creating-index.md
@@ -4,0 +5,2 @@
+Identity managementSearchRelevantContent - IDCSearchRelevantContent - IAM Federation
+
@@ -11 +13,5 @@ We recommend creating one Amazon Q Business application environment per customer
-  * [Determine the identity management for your customer's Amazon Q Business application](./isv-creating-index-identity-management.html)
+  * Determine the identity management for your customer's Amazon Q Business application
+
+  * Calling the SearchRelevantContent API to an Amazon Q index with an IAM Identity Center application environment
+
+  * Calling the SearchRelevantContent API on an Amazon Q application environment with IAM Federation
@@ -13 +18,0 @@ We recommend creating one Amazon Q Business application environment per customer
-  * [Calling the SearchRelevantContent API to an Amazon Q index with an IAM Identity Center application environment](./isv-calling-api-idc.html)
@@ -15 +19,0 @@ We recommend creating one Amazon Q Business application environment per customer
-  * [Calling the SearchRelevantContent API on an Amazon Q application environment with IAM Federation](./isv-calling-api-iam.html)
@@ -17,0 +22 @@ We recommend creating one Amazon Q Business application environment per customer
+## Determine the identity management for your customer's Amazon Q Business application
@@ -18,0 +24,3 @@ We recommend creating one Amazon Q Business application environment per customer
+All Amazon Q Business application environments require user access through AWS Identity and Access Management (IAM) identity management. You can choose one of two types of user IAM identity management methods supported by Amazon Q Business. These are IAM Identity Center and IAM Federation. Both IAM Identity Center and IAM Federation require an external identity provider setup to allow end users to log in through their identity provider.
+
+IAM Identity Center provides advanced user group management, while Identity and Access Management (IAM) Federation provides more service quotas for the external identity providers. You can choose the identity management that's best suited for you and your end customer when creating their Amazon Q Business application environment. For more information, see [Configuring an Amazon Q Business application environment using AWS IAM Identity Center](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/create-application.html) and [Creating an Amazon Q Business application environment using Identity Federation through IAM](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/create-application-iam.html)
@@ -21,0 +30,96 @@ After the Amazon Q Business application environment is created, set up the retri
+## Calling the SearchRelevantContent API to an Amazon Q index with an IAM Identity Center application environment
+
+Before end users can retrieve content from the Amazon Q index that you have been granted access to, you need to be able to make authenticated Amazon Q Business API calls, like the `SearchRelevantContent` API operation.
+
+To do this you, must complete the steps in [Make authenticated Amazon Q Business API calls using IAM Identity Center](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/making-sigv4-authenticated-api-calls.html).
+
+###### Note
+
+Use the instructions from the previous topic, but modify the `QBusinessConversationPermission` permission by adding the additional action `, "qbusiness:SearchRelevantContent"` to the list of allowed actions, as shown in the following sample snippet of the full permission.
+
+JSON
+    
+
+****
+    
+    
+    
+    {
+        "Version":"2012-10-17",		 	 	 
+        "Statement": [
+            {
+                "Sid": "QBusinessConversationPermission",
+                "Effect": "Allow",
+                "Action": [
+                    "qbusiness:Chat",
+                    "... ",
+                    "qbusiness:SearchRelevantContent"
+                ]
+            }
+        ]
+    }
+    
+
+When configuring access scopes for your Amazon Q Businessapplication environment, add the following using the AWS CLI to enable calling the `SearchRelevantContent` API:
+    
+    
+        aws sso-admin put-application-access-scope \
+        --application-arn identity-center-custom-application-arn \
+        --scope "qbusiness:conversations:access"
+        
+        aws sso-admin put-application-access-scope \
+        --application-arn identity-center-custom-application-arn \
+        --scope "qbusiness:content:access"
+            
+
+The following AWS CLI example shows how to call this `SearchRelevantContent` API operation after you have these credentials.
+    
+    
+        aws qbusiness search-relevant-content \
+          --application-id ${qbusiness_application_id} \
+          --query-text "What is Amazon Q?" \
+          --content-source '{"retriever": {"retrieverId": "${retriever_id"}}'
+          
+
+## Calling the SearchRelevantContent API on an Amazon Q application environment with IAM Federation
+
+Before end users can retrieve content from the Amazon Q index that you have been granted access to, you need to be able to make authenticated Amazon Q Business API calls, like the `SearchRelevantContent` API operation.
+
+To do this, complete the steps in [Make authenticated Amazon Q Business API calls using IAM federation](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/making-sigv4-authenticated-api-calls-iam.html).
+
+###### Note
+
+Use the instructions in the previous topic, but modify the `trustpolicyforfederation` policy by adding the additional action, `"qbusiness:SearchRelevantContent"` to the list of allowed actions, as shown in the following sample snippet of the full permission.
+
+JSON
+    
+
+****
+    
+    
+    
+    {
+        "Version":"2012-10-17",		 	 	 
+        "Statement": [
+            {
+                "Sid": "QBusinessConversationPermissions",
+                "Effect": "Allow",
+                "Action": [
+                    "qbusiness:Chat",
+                    "qbusiness:SearchRelevantContent"
+                ],
+                "Resource": "arn:aws:qbusiness:us-east-1:111122223333:application/application-id"
+            }
+        ]
+    }
+    
+
+The following AWS CLI; example shows how to call this `SearchRelevantContent` API operation after you have these credentials.
+    
+    
+        aws qbusiness search-relevant-content \
+          --application-id ${qbusiness_application_id} \
+          --query-text "What is Amazon Q?" \
+          --content-source '{"retriever": {"retrieverId": "${retriever_id"}}'
+          
+
@@ -28 +132 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please
-Data retrieval
+Getting access
@@ -30 +134 @@ Data retrieval
-Identity management
+Troubleshooting