aws / aws-tools-for-powershell

The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
Apache License 2.0
235 stars 77 forks source link

Implement Cmdlet for GetUserId #348

Closed dbaileyut closed 2 months ago

dbaileyut commented 2 months ago

Describe the feature

Find-IDSUserList's -Filter parameter is deprecated. There needs to be a non-deprecated way to search for a user efficiently.

Use Case

I need to find users by display name or email address efficiently.

Proposed Solution

No response

Other Information

No response

Acknowledgements

AWS Tools for PowerShell version used

AWS.Tools.IdentityStore 4.1.539

PowerShell version used


Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Operating System and version

Windows 11

ashishdhingra commented 2 months ago

@dbaileyut Per IdentityStore: ListUsers, Filtering for a User by the UserName attribute is deprecated. Instead, use the GetUserId API action. Most of the CmdLets for AWS Tools for PowerShell are auto-generated. For GetUserId API action, the corresponding CmdLet is Get-IDSUserId. Please advise if you have considered using it for your use case.

Thanks, Ashish

dbaileyut commented 2 months ago

Ah, my mistake! I wasn't seeing that cmdlet

github-actions[bot] commented 2 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.