Embedding with the Amazon Quick Sight APIs
Applies to: Enterprise Edition |
Intended audience: Amazon Quick Suite developers |
There are only a few steps involved in the actual process of embedding analytics using the Amazon Quick Sight APIs.
Before you begin, make sure to have the following items in place:
-
Set up the required IAM permissions for the caller identity used by your application that will use the Amazon SDK to make API calls. For example, grant permission to allow the
quicksight:GenerateEmbedUrlForAnonymousUser
orquicksight:GenerateEmbedUrlForRegisteredUser
action. -
To embed for registered users, share Amazon Quick Sight assets with them beforehand. For new authenticating users, know how to grant access to the assets. One way to do this is by adding all the assets to a Amazon Quick Sight folder. If you prefer to use the Amazon Quick Sight API, use the
DescribeDashboardPermissions
andUpdateDashboardPermissions
API operations. For more information, see DescribeDashboardPermissions or UpdateDashboardPermissions in the Amazon Quick Suite API Reference. If you want to share the dashboard with all users in a namespace or group, you can share the dashboard withnamespace
orgroup
. -
If you're embedding dashboards, make sure to have the ID of the dashboards you want to embed. The dashboard ID is the code in the URL of the dashboard. You can also get it from the dashboard URL.
-
A Amazon Quick Sight administrator must explicitly enable domains where you plan to embed your Amazon Quick Sight analytics. You can do this by using the Manage Amazon Quick Sight, Domains and Embedding from the profile menu, or you can use the
AllowedDomains
parameter of aGenerateEmbedUrlForAnonymousUser
orGenerateEmbedUrlForRegisteredUser
API call.This option is only visible to Amazon Quick Sight administrators. You can also add subdomains as part of a domain. For more information, see Allow listing domains at runtime with the Amazon Quick Suite API.
All domains in your static allow list (such as development, staging, and production) must be explicitly allowed, and they must use HTTPS. You can add up to 100 domains to the allow list. You can add domains at runtime with Amazon Quick Sight API operations.
After all the prerequisites are complete, embedding Amazon Quick Sight involves the following steps, which are explained in greater detail later:
-
For authentication, use your application server to authenticate the user. After authentication in your server, generate the embedded dashboard URL using the Amazon SDK that you need.
-
In your web portal or application, embed Amazon Quick Sight using the generated URL. To simplify this process, you can use the Amazon Quick Sight Embedding SDK, available on NPMJS
and GitHub . This customized JavaScript SDK is designed to help you efficiently integrate Amazon Quick Sight into your application pages, set defaults, connect controls, get callbacks, and handle errors.
You can use Amazon CloudTrail auditing logs to get information about the number of embedded dashboards, users of an embedded experience, and access rates.
Topics
Embedding Amazon Quick Sight dashboards with the Amazon Quick Sight API
Embedding Amazon Quick Sight visuals with the Amazon Quick Sight APIs
Embedding the full functionality of the Amazon Quick Sight console for registered users
Embedding the Amazon Q in Amazon Quick Sight Generative Q&A experience
Embedding analytics using the GetDashboardEmbedURL and GetSessionEmbedURL API operations