AWS Builder Center

SharePoint Admin-Managed KB Setup for Amazon Quick

Configure SharePoint Online as an Amazon Quick Suite knowledge base using Sites.Selected, KMS certificate auth, and ACLs for document-level access control.

Introduction

This guide walks through the complete setup of a SharePoint Online knowledge base integration with Amazon Quick Suite using the  admin-managed approach . This method uses service credentials (an Entra ID app registration) rather than individual user OAuth, enabling centralized control and document-level access control (ACLs).
The key security principle of this setup is least-privilege access. Rather than granting tenant-wide SharePoint access to the connector, we use the Sites.Selected Microsoft Graph permission. This permission starts with zero access by default, and you explicitly grant access only to the specific SharePoint sites that should be indexed by Amazon Quick Suite.
Additionally, this guide covers the configuration of Access Control Lists (ACLs), which ensure that when users query the knowledge base, they only see results from documents they are authorized to access in SharePoint. The connector respects the native SharePoint permission model, including site permissions, library permissions, and item-level permissions.

Architecture Overview

The admin-managed SharePoint integration involves several components working together:
Component
Role
Primary App (Sites.Selected)
The Entra ID app registration used by Amazon Quick Suite to authenticate and crawl SharePoint content. Has Sites.Selected permission, meaning it can only access explicitly granted sites.
Temporary Admin App (Sites.FullControl.All)
A short-lived app registration used solely to grant site-level permissions to the Primary App via the Microsoft Graph API. Deleted after setup is complete.
Microsoft Graph API
The API endpoint used to POST site permissions to the Primary App. The /sites/{siteId}/permissions endpoint controls which apps can access which sites.
Amazon Quick Suite Connector
The knowledge base data source configured in Amazon Quick Suite that uses the Primary App credentials to crawl and index SharePoint content.
ACL Engine
The access control layer within Amazon Quick Suite that maps SharePoint permissions to user identities, ensuring query results respect document-level permissions.
Flow summary: The Temporary Admin App grants the Primary App permission to specific sites via Graph API. Once permissions are set, the Temporary Admin App is deleted. Amazon Quick Suite then uses the Primary App to crawl content and build a knowledge index, while the ACL engine ensures users only see documents they have permission to view in SharePoint.

Prerequisites

Before starting the setup, ensure you have the following:
  1. Access to the Microsoft Entra ID (Azure AD) portal with permissions to register applications and grant admin consent (Global Administrator or Application Administrator role)
  1. SharePoint Administrator access to identify site URLs and site IDs
  1. An Amazon Quick Suite environment with admin access to configure knowledge base data sources
  1. The URLs of the specific SharePoint sites you want to index (e.g.,  https://contoso.sharepoint.com/sites/Engineering )
  1. Access to Microsoft Graph Explorer ( https://developer.microsoft.com/en-us/graph/graph-explorer ) or the ability to make authenticated API calls via PowerShell/curl
  1. Identity provider integration between your Microsoft 365 tenant and Amazon Quick Suite (e.g., via IAM Identity Center with Entra ID as the identity source)

Step 1 - Register the Primary Application (Sites.Selected)

This is the application that Amazon Quick Suite will use permanently to access SharePoint content. It is configured with the Sites.Selected permission, which provides zero access by default until you explicitly grant it access to specific sites.

Create the App Registration

  1. Navigate to the Microsoft Entra admin center ( https://entra.microsoft.com )
  1. Go to Entra ID > App registrations and click New registration
Page for registering applications withing Microsoft Entra admin center

  1. Set the Name to something descriptive, e.g.,  Amazon Quick Suite - SharePoint Connector 
  1. Under Supported account types, select Accounts in this organizational directory only (Single tenant)
  1. Leave Redirect URI blank (not needed for client credentials flow) and click Register
Registering new application  in Microsoft Entra Admin Center


Note Key Identifiers

On the app Overview page, record the following values (you will need them later for Amazon Quick Suite configuration):
  • Application (client) ID - the unique identifier for this app registration
  • Directory (tenant) ID - your Microsoft 365 tenant identifier
Page with the details of an app registration so you can note down app id, object id and Directory (tenant) ID


Configure API Permissions

  1. In the app registration, navigate to API permissions in the left menu
  1. Click Add a permission and select Microsoft Graph
  1. Select Application permissions (not Delegated)
  1. Search for Sites and check Sites.Selected
  1. Click Add permissions
  1. Click Grant admin consent for [Your Organization] and confirm
Note: After granting admin consent, the Status column should show a green checkmark indicating "Granted for [Your Organization]".
Granting Microsoft Graph Application Permissions for Sites.Selected scope


Generate a Client Secret

  1. Navigate to Certificates & secrets in the left menu
  1. Under Client secrets, click New client secret
  1. Provide a description (e.g., "Quick Suite connector secret") and set an appropriate expiration period
  1. Click Add and immediately copy the Value field (this is shown only once)
Important: Store the client secret securely. You will not be able to view it again after navigating away from this page. If lost, you must create a new one.
Creating application secret to store the Value and Secret ID for later use



Step 2 - Register the Temporary Admin Application (Sites.FullControl.All)

Why Is This Temporary App Needed?

The Sites.Selected permission is designed as a zero-access-by-default model. When you grant an app this permission, it does not automatically gain access to any SharePoint site. Site-level access must be explicitly granted to the app through the Microsoft Graph API endpoint  /sites/{siteId}/permissions .
Here is the challenge: to call this endpoint and grant permissions, the caller itself needs sufficient privileges to manage site permissions. The Primary App (with only Sites.Selected) cannot grant itself access, because it has no access yet. This creates a bootstrapping problem.
The solution is to create a temporary helper app with  Sites.FullControl.All  permission. This app has tenant-wide SharePoint access and can therefore call the Graph API to grant site-specific permissions to the Primary App. Once the permissions are configured, the Temporary Admin App is deleted, removing the broadly-privileged credential from your environment.
Alternative: If you are a Global Administrator, you can also use Microsoft Graph Explorer (logged in with your admin account) to POST the permissions directly, without creating a separate app. In this case, skip creating the Temporary Admin App and proceed directly to Step 3 using Graph Explorer. See  Appendix A .

Create the App Registration

  1. In the Entra admin center, go to App registrations > New registration
  1. Name it clearly as temporary, e.g.,  TEMP - SP Permission Granter (DELETE AFTER SETUP) 
  1. Set Supported account types to Accounts in this organizational directory only (Single tenant)
  1. Click Register and note the Application (client) ID and Directory (tenant) ID

Grant Sites.FullControl.All and Admin Consent

  1. Navigate to API permissions > Add a permission > Microsoft Graph > Application permissions
  1. Search for Sites and check Sites.FullControl.All
  1. Click Add permissions
  1. Click Grant admin consent for [Your Organization] and confirm

Generate a Client Secret

  1. Navigate to Certificates & secrets > Client secrets > New client secret
  1. Set a short expiration (e.g., 1 day or 7 days) since this app will be deleted shortly
  1. Copy the secret Value immediately

Step 3 - Grant Site-Level Permissions to the Primary App

Now you will use the Temporary Admin App (or Graph Explorer as a Global Admin) to grant the Primary App read/write access to specific SharePoint sites.

Retrieve the SharePoint Site ID

For each SharePoint site you want to index, you need to obtain its Site ID:
  1. Open the SharePoint site in your browser (e.g.,  https://contoso.sharepoint.com/sites/Engineering )
  1. Append  /_api/site/id  to the site URL and navigate to it
  1. Copy the GUID value returned (e.g.,  e3b1c5a2-4d6f-4a8b-9c7e-1234567890ab )
Repeat this for each site you plan to index.

Authenticate with the Temporary Admin App

Obtain an access token using the Temporary Admin App credentials. You can use curl, PowerShell, or any HTTP client:
POST https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token

grant_type=client_credentials
client_id={TempApp_ClientID}
client_secret={TempApp_ClientSecret}
scope=https://graph.microsoft.com/.default


POST Site Permissions via Graph API

Using the access token from the previous step, make a POST request to grant the Primary App access to each site:
POST https://graph.microsoft.com/v1.0/sites/{siteId}/permissions

Request body (JSON):
{
"roles": ["read"],
"grantedToIdentities": [{
"application": {
"id": "{PrimaryApp_ClientID}",
"displayName": "Amazon Quick Suite - SharePoint Connector"
}
}]
}

Roles: Use  "read"  if the connector only needs to read documents for indexing (recommended), or  "write"  if the connector also needs to write back metadata or annotations. For a knowledge base connector,  "read"  is typically sufficient.
Repeat this POST for each SharePoint site you want to grant access to.

Verify the Permissions

Confirm the permissions were applied correctly by running a GET request:
GET https://graph.microsoft.com/v1.0/sites/{siteId}/permissions

The response should include an entry showing your Primary App with the role you assigned. If the response is empty or does not include your app, check that you used the correct Site ID and Primary App Client ID.

Step 4 - Remove the Temporary Admin Application

This step is critical for security. The Temporary Admin App has  Sites.FullControl.All  permission, which grants unrestricted access to all SharePoint sites in your tenant. Now that the Primary App has been granted its site-specific permissions, the Temporary Admin App is no longer needed and must be removed.
  1. In the Entra admin center, navigate to App registrations > All applications
  1. Find the temporary app (e.g., "TEMP - SP Permission Granter (DELETE AFTER SETUP)")
  1. Click into the app registration and select Delete
  1. Confirm the deletion when prompted
  1. Optionally, check Deleted applications (soft-delete) and permanently delete it from there as well
Why delete it? Leaving a broadly-privileged app registration in your tenant creates an unnecessary attack surface. If the client secret were compromised, an attacker could access all SharePoint content. By deleting it immediately, you ensure the only app with SharePoint access is the properly-scoped Primary App with Sites.Selected.

Step 5 - Create a KMS Signing Key and Certificate for Service Authentication

Amazon Quick Suite uses an AWS KMS asymmetric key to sign OAuth assertions when authenticating with Microsoft Entra ID. This approach is more secure than client secrets because the private key never leaves AWS KMS, eliminating the risk of secret leakage. You create the key, generate a self-signed certificate containing the KMS public key, upload it to your Entra app registration, and then grant Amazon Quick permission to use the key.

Step 5.1 - Create an AWS KMS Asymmetric Signing Key

  1. Open the AWS KMS console and navigate to Customer managed keys
  1. Click Create key and configure it with the following settings:
Setting
Value
Key type
Asymmetric
Key usage
Sign and verify
Key spec
RSA_2048
Key material origin
KMS (recommended)
Regionality
Single-Region key (default). Multi-Region keys are not supported.
  1. On the Add labels page, enter an alias for the key, for example:  quick-sharepoint-service-auth 
  1. Skip to review and click Finish to create the key
  1. Open the key detail page and record the Key ARN (format:  arn:aws:kms:us-west-2:123456789012:key/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx )

Step 5.2 - Generate a Self-Signed Certificate

Microsoft Entra ID requires an X.509 certificate to validate signed assertions. Because the KMS private key never leaves AWS KMS, you cannot use it directly with OpenSSL. Instead, you generate a temporary local key pair and use the OpenSSL  -force_pubkey  option to inject the KMS public key into the final certificate.
Prerequisites: AWS CLI installed and configured, OpenSSL 3.0 or later.
Run the following commands in a terminal, replacing placeholder values with your own:
# Verify OpenSSL version (must be 3.0+)
openssl version

# Export the KMS public key
aws kms get-public-key \
--key-id KMS_KEY_ARN \
--region REGION \
--output text \
--query PublicKey | base64 --decode > public_key.der

# Convert the public key to PEM format
openssl rsa -pubin -inform DER -in public_key.der -outform PEM -out kms_public_key.pem

# Generate a temporary local key pair
openssl genrsa -out temp_private_key.pem 2048

# Create a certificate signing request
openssl req -new \
-key temp_private_key.pem \
-out cert.csr \
-subj "/CN=QuickSharePointServiceAuth/O=YourOrganization/C=US"

# Generate the certificate with the KMS public key
openssl x509 -req \
-in cert.csr \
-signkey temp_private_key.pem \
-out certificate.pem \
-days 730 \
-force_pubkey kms_public_key.pem

# Convert to DER format for Entra upload
openssl x509 -in certificate.pem -outform DER -out certificate.cer

# Clean up temporary files
rm -f temp_private_key.pem cert.csr public_key.der kms_public_key.pem certificate.pem


Step 5.3 - Upload the Certificate to Your Entra App Registration

  1. In the Entra admin center, open the Primary App registration created in Step 1
  1. Navigate to Certificates & secrets and select the Certificates tab
  1. Click Upload certificate and select the  certificate.cer  file generated above
  1. Click Add
Note: If you previously created a client secret in Step 1, the certificate-based approach replaces it. You may remove the client secret once the KMS-based authentication is verified to be working.

Step 5.4 - Grant Amazon Quick Permission to the KMS Key

Amazon Quick needs  kms:Sign  permission on the KMS key to sign OAuth assertions. You grant this from the Amazon Quick admin console.
  1. In Amazon Quick, choose Manage account from the left navigation pane
  1. Under Permissions, choose AWS resources
  1. In the Select KMS keys dialog, enter the KMS key ARN you recorded in Step 5.1 and choose Add
  1. The key ARN appears in the list. Choose Finish
  1. Choose Save at the bottom of the AWS resources page
This step requires Amazon Quick administrator access (Admin Pro role). If you are not an administrator, ask your Amazon Quick admin to complete this step using the KMS key ARN.
If your organization manages its own Amazon Quick IAM service role, ensure the role has  kms:Sign  permission on the KMS key ARN instead of using the console steps above.

Values Collected During Step 5

Value
Where created
Where used
KMS Key ARN
Step 5.1
Step 5.2, Step 5.4, Quick KB setup
certificate.cer
Step 5.2
Step 5.3 (Entra upload)
Certificate thumbprint (base64url)
Step 5.2
Quick KB setup

Step 6 - Configure the Amazon Quick Suite SharePoint Connector

With the Primary App now holding site-specific permissions, you can configure the knowledge base data source in Amazon Quick Suite.

Add the SharePoint Data Source

  1. Open the Amazon Quick Suite admin console and navigate to your application
  1. Go to Data sources and click Add data source
  1. Select Microsoft SharePoint as the connector type
  1. Choose Admin-managed setup (service credentials)

Provide Authentication Details

Enter the following credentials from the Primary App registration:
Create an administrator managed KB Sharepoint integration in Quick

Field
Value
Connection name
A descriptive name for this connection (e.g., "SharePoint Production", "Finance Team SharePoint")
SharePoint domain
Your tenant's SharePoint URL (e.g.,  https://contoso.sharepoint.com )
Tenant ID
The Directory (tenant) ID from the Primary App Overview page
Client ID
The Application (client) ID from the Primary App Overview page
KMS key ARN
The KMS key ARN recorded in Step 5.1 (e.g.,  arn:aws:kms:<region>:123456789012:key/my-key-id )
Certificate Thumbprint
The base64url-encoded SHA-1 thumbprint calculated in Step 5.2

Select SharePoint Sites to Index

Specify the SharePoint site URLs you want to crawl. These must be the same sites for which you granted permissions in Step 3. You can typically enter them as:
  •  https://contoso.sharepoint.com/sites/Engineering 
  •  https://contoso.sharepoint.com/sites/ProductDocs 
If you attempt to index a site that was not granted permission in Step 3, the connector will fail with an access denied error.

Configure Sync Settings

Configure the crawl scope and sync frequency:
  • Content types: Select which content to index, such as document libraries, site pages, and/or lists
  • Include/Exclude patterns: Optionally filter by file extension, folder path, or metadata
  • Sync frequency: Set how often the connector should re-crawl for new or updated content (e.g., every hour, daily)

Step 6 - Configure ACLs for Document-Level Access Control

Access Control Lists (ACLs) are the mechanism by which Amazon Quick Suite enforces document-level permissions. When ACLs are enabled, the connector reads the SharePoint permission metadata for each document and stores it alongside the indexed content. At query time, results are filtered so that each user only sees documents they are authorized to access based on their SharePoint permissions.

How ACLs Work in the SharePoint Connector

When the connector crawls a SharePoint site, it reads the permissions assigned to each document, folder, and library. These permissions are expressed in terms of SharePoint groups, Microsoft 365 groups, and individual users. The connector maps these identities to the corresponding users in Amazon Quick Suite (via your identity provider integration). When a user submits a query, the knowledge base engine cross-references the user identity with the ACL metadata and returns only those documents the user would be able to access in SharePoint.
The ACL model respects the full SharePoint permission hierarchy: site-level permissions, library-level permissions, folder-level permissions, and item-level (unique) permissions. If a document has broken inheritance with custom permissions, those custom permissions are what the connector stores.

Enable ACL Crawling in the Data Source Configuration

  1. In the data source configuration, locate the Access control or Security section
  1. Enable Document-level access control (or "Crawl ACL information")
  1. Ensure the connector has sufficient permissions to read site members and groups (the Sites.Selected permission with "read" or "write" role covers this)
  1. Save the configuration and trigger an initial sync

Map SharePoint Groups and Users to Quick Suite Identities

For ACLs to function correctly, the identities in SharePoint must map to the identities in Amazon Quick Suite. This mapping is typically handled through your identity provider (IdP) integration. Ensure the following:
  • Users in your Microsoft 365 tenant are synchronized to your Amazon Quick Suite identity source (e.g., via IAM Identity Center with Entra ID as the external IdP)
  • The email address or User Principal Name (UPN) used in SharePoint matches the user identifier in Amazon Quick Suite
  • Microsoft 365 groups used for SharePoint permissions are also synchronized if group-based access is used
If there is a mismatch between the user identifiers in SharePoint and Amazon Quick Suite, ACL filtering will either be too restrictive (users cannot see content they should) or will fail to filter properly.

Test and Validate ACL Enforcement

After the initial sync completes with ACL crawling enabled, validate that permissions are enforced correctly:
  1. Log in to Amazon Quick Suite as a user who has access to a specific SharePoint site and query for content from that site. Verify that results appear.
  1. Log in as a different user who does NOT have access to the same site and run the same query. Verify that no results from that site appear.
  1. Test with a document that has unique (item-level) permissions. Ensure only the users with explicit access see it in results.
  1. Modify permissions on a document in SharePoint (e.g., remove a user). After the next sync, verify the user no longer sees that document in query results.

Troubleshooting and Best Practices

Common Issues

Issue
Resolution
Access Denied when crawling
Verify the Primary App was granted the correct role ("read" or "write") on the specific site in Step 3. Run the GET /sites/{siteId}/permissions call to confirm.
ACL not filtering results
Check that user identities (email/UPN) match between Entra ID and the Amazon Quick Suite identity source. Ensure ACL crawling is enabled and a full sync has completed.
Client secret expired
Generate a new client secret in the Primary App registration (Certificates & secrets) and update it in the Amazon Quick Suite data source configuration.
Site not found (404)
Ensure the Site ID used in the permissions POST matches the actual site. Re-run the /_api/site/id call to verify.
Permissions POST returns 403
The app or account calling the permissions endpoint does not have Sites.FullControl.All. Verify admin consent was granted on the Temporary Admin App.
Users see too much content
Check for SharePoint sites with "Everyone" or "Everyone except external users" permissions. These broad permissions are respected by the ACL engine.

Appendix A - Granting Site Permissions Using Graph Explorer

This appendix provides an alternative to Steps 2-4 for administrators who are Global Administrators and prefer to use Microsoft Graph Explorer interactively rather than creating a Temporary Admin App. With this approach, your own admin account acts as the privileged caller, eliminating the need to register and later delete a temporary app registration.

When to Use This Approach

Use Graph Explorer when you are a Global Administrator (or SharePoint Administrator with sufficient Graph API consent), you only need to grant permissions to a small number of sites, and you prefer an interactive point-and-click experience. If you need to script the process for many sites, or if the person performing the setup is not a Global Admin, use the Temporary Admin App approach described in Steps 2-4 of the main guide.

Step A1 - Sign In to Graph Explorer

  1. Click Sign in and authenticate with your Global Administrator account
  1. After signing in, verify your identity is shown in the top-right corner of Graph Explorer

Step A2 - Consent to Required Permissions

Graph Explorer needs your consent to call the sites permissions endpoint on your behalf. You must grant the  Sites.FullControl.All  permission to Graph Explorer:
  1. Click on your profile avatar in Graph Explorer and select Consent to permissions
  1. In the permissions list, search for Sites and locate Sites.FullControl.All
  1. Click Consent and approve the admin consent prompt that appears
  1. Once granted, a green checkmark will appear next to the permission
Note: This consent grants Graph Explorer (the Microsoft first-party app) the ability to act on your behalf with full SharePoint access. This consent persists until explicitly revoked, so consider revoking it after completing the setup (see Step A5).

Step A3 - Retrieve the SharePoint Site ID

You can retrieve the Site ID directly from Graph Explorer rather than navigating to the SharePoint URL:
  1. In Graph Explorer, set the HTTP method to GET
  1. Enter the URL:  https://graph.microsoft.com/v1.0/sites/{hostname}:/sites/{siteName} 
  1. For example:  https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com:/sites/Engineering 
  1. Click Run query and copy the  id  field from the response (this is the full site ID in the format  contoso.sharepoint.com,guid1,guid2 )

Step A4 - POST Site Permissions to the Primary App

Now grant the Primary App access to the site:
  1. Set the HTTP method to POST
  1. Enter the URL:  https://graph.microsoft.com/v1.0/sites/{siteId}/permissions 
  1. Select the Request body tab and paste the following JSON (replacing the id with your Primary App Client ID):
{
"roles": ["read"],
"grantedToIdentities": [{
"application": {
"id": "{PrimaryApp_ClientID}",
"displayName": "Amazon Quick Suite - SharePoint Connector"
}
}]
}

  1. Click Run query. A successful response (HTTP 201 Created) confirms the permission has been granted.
  1. Verify by switching to GET on the same URL ( /sites/{siteId}/permissions ) and confirming your app appears in the response
Repeat Steps A3-A4 for each additional SharePoint site you want to grant access to.

Step A5 - Revoke Graph Explorer Consent (Recommended)

After granting all necessary site permissions, it is good practice to revoke the  Sites.FullControl.All  consent you gave to Graph Explorer. This prevents the Graph Explorer app from retaining broad SharePoint access under your identity:
  1. Go to the Entra admin center > Enterprise applications
  1. Search for Graph Explorer in the applications list
  1. Open it, navigate to Permissions, and click Revoke admin consent
  1. Alternatively, remove only your own consent from Users and groups if you prefer to leave the app available for others
This step is optional but recommended for the same security principle as deleting the Temporary Admin App: reduce your attack surface by removing broad privileges once they are no longer needed.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article