如何在net6服务中列出amazon sso用户? 已安装软件包
<PackageReference Include="AWSSDK.CognitoIdentityProvider" Version="3.7.303.10" />
<PackageReference Include="AWSSDK.Core" Version="3.7.303.5" />
<PackageReference Include="AWSSDK.IdentityManagement" Version="3.7.300.54" />
<PackageReference Include="AWSSDK.Organizations" Version="3.7.302.1" />
<PackageReference Include="AWSSDK.SecurityToken" Version="3.7.300.65" />
<PackageReference Include="AWSSDK.SSOAdmin" Version="3.7.302.49" />
尝试在 AmazonSSOAdminClient 中搜索 ListUsers 方法,似乎那里不存在该方法(根本找不到 AmazonSSOClient); 已尝试使用 AmazonIdentityManagementServiceClient 获取用户,但得到的是 iam:ListUsers 而不是 aws Identitystore list-users --identity-store-id 所需的模拟
已使用 AWSSDK.IdentityStore 包中的 AmazonIdentityStoreClient 解决了问题