Amazon web services 设置AWSSamRoleProfile失败,返回“0”;无法设置凭据:";“选择”;应至少有一个元素。”;错误
我正在尝试使用PowerShell让联邦用户访问AWS API。(链接如下) AWS已正确配置为与AD一起工作(它适用于我的同事) 我正在使用访问AWS API 当我尝试运行命令Amazon web services 设置AWSSamRoleProfile失败,返回“0”;无法设置凭据:";“选择”;应至少有一个元素。”;错误,amazon-web-services,powershell,saml,federated-identity,aws-toolkit,Amazon Web Services,Powershell,Saml,Federated Identity,Aws Toolkit,我正在尝试使用PowerShell让联邦用户访问AWS API。(链接如下) AWS已正确配置为与AD一起工作(它适用于我的同事) 我正在使用访问AWS API 当我尝试运行命令Set AWSSamlRoleProfile时,就会出现问题 错误: C:\Windows\system32> Set-AWSSamlRoleProfile -EndpointName $EndpointName -PrincipalARN $PrincipalARN -RoleARN $RoleARN -Stor
Set AWSSamlRoleProfile
时,就会出现问题
错误:
C:\Windows\system32> Set-AWSSamlRoleProfile -EndpointName $EndpointName -PrincipalARN $PrincipalARN -RoleARN $RoleARN -StoreAs 'SAMLUser' > $null
Set-AWSSamlRoleProfile : Unable to set credentials: "choices" should have at least one element.
At line:1 char:1
+ Set-AWSSamlRoleProfile -EndpointName $EndpointName -PrincipalARN $Pri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Amazon.PowerShe...leProfileCmdlet:SetSamlRoleProfileCmdlet) [Set-AWSSamlRoleProfile], ArgumentException
+ FullyQualifiedErrorId : ArgumentException,Amazon.PowerShell.Common.SetSamlRoleProfileCmdlet
感谢任何帮助或指导。在我的情况下,问题是用户(我)不是AD小组的成员
希望它能帮助其他人。在我的例子中,问题是用户(我)不是广告组的一员 希望它能帮助别人