如何在Postman中正确调用AWS Identity Store ListUsers API?
正确调用AWS Identity Store ListUsers接口的方式
你遇到的ENOTFOUND错误是因为Identity Store API必须使用区域特定的端点,不能用通用的identitystore.amazonaws.com——这和IAM的全局端点逻辑不同。
正确的调用方式如下:
1. 确定区域端点格式
Identity Store的端点格式为:
https://identitystore.<区域代码>.amazonaws.com
示例(美国东部弗吉尼亚北部区域):
https://identitystore.us-east-1.amazonaws.com
请替换为你实际使用的AWS区域代码(比如us-west-2、eu-west-1等)。
2. 构造完整请求URL
结合ListUsers的Action、版本参数,以及必填的IdentityStoreId(需从IAM Identity Center控制台获取),完整URL示例(以us-east-1为例):
https://identitystore.us-east-1.amazonaws.com/?Action=ListUsers&Version=2012-10-17&IdentityStoreId=d-1234567890
3. 关键验证项
- 确保AWS签名认证使用的区域与端点区域完全一致,签名时的区域参数必须匹配端点的区域代码。
- 确认IAM权限策略包含
identitystore:ListUsers权限,且关联身份有访问对应IdentityStoreId的权限。
内容的提问来源于stack exchange,提问作者fei0x
相关产品推荐
相关产品推荐

