1 Answer
- Newest
- Most votes
- Most comments
0
Hello,
ChatSync has different permissions compared to GetChatControlsConfiguration, GetPlugins... you need to make use of an identity-aware session while calling the API. You can find guidance in a previous re:Post that was answered here: https://repost.aws/questions/QUqqemQYRpRUqxqxEBzR-jVQ/amazon-q-business-chat-sync-cli-command-always-failing
TL;DR (extracted from the re:Post above):
- You would need an idToken provided by your SSO Identity Provider (IdP).
- Using that token, you exchange for an identity-aware token from IAM Identity Center (IdC) whom you need to configure to treat your IdP as a trusted token issuer (TTI).
- And using this IdC token, you assume an IAM role, hence obtaining temporary identity-aware session credentials.
- Finally, with these temporary credentials, you call the chat-sync API (without specifying UserId because it is implicit in the session credentials).
answered 19 days ago
Relevant content
- asked 10 months ago