Comments (3)
@tim-finnigan I think those commands are used in a different context: once authenticated to an AWS account, to list users.
I'm talking about the aws configure sso
command, which is a wizard for selecting an AWS account to authenticate to. It is a command that is intended to ease configuration, and the feature request is intended to make it more usable when a user has access to a large number of AWS accounts (e.g., I have access to 336 accounts, and it is very difficult to find the account I want to auth to).
from aws-cli.
Thanks for the feature request. You should be able to filter on users with the aws identitystore list-users
command (documented here) for example:
aws identitystore list-users --identity-store-id d-12345abc --filters AttributePath=UserName,AttributeValue=test-user
Or alternatively using --query
:
aws identitystore list-users --identity-store-id d-12345abc --query "Users[?UserName=='test-user']"
However the docs do note that "Filtering for a User
by the UserName
attribute is deprecated. Instead, use the GetUserId
API action.". So you could try something like this:
aws identitystore get-user-id --cli-input-json '{ "IdentityStoreId": "d-12345abc", "AlternateIdentifier": { "UniqueAttribute": { "AttributePath": "UserName", "AttributeValue": "test-user" } } }'
And to describe a user:
aws identitystore describe-user --identity-store-id d-12345abc --user-id <user-id>
Does that help what you're trying to do, or could you elaborate on your use case in more detail?
from aws-cli.
Thanks for clarifying โ you could try using sso list-accounts or organizations list-accounts to search/filter on available accounts. I'll label this as a feature request for improving the configure
wizard. Others can +1 this feature request by adding a ๐ to your original issue post.
from aws-cli.
Related Issues (20)
- Need productID, Product-code or other identifier indexed for use with ALL AMI's HOT 2
- Support --sse-c for `s3 presign` command HOT 1
- AWS CLI v2.15.30 needs --policy-name as required argument instead of optional when performing `kms get-key-policy` HOT 2
- aws sso list-accounts --access-token "${access_token}" doesn't show accounts that are assigned via a Group HOT 8
- S3 path should be virtual-hostedโstyle HOT 1
- Step Functions `Label` property not supported HOT 4
- Support S3 transferring use "ProcessPoolExecutor" with s3tranfer HOT 2
- --add-resources does not exist in aws cloudformation create-generated-template command HOT 2
- Misleading instcutions in Documention for Create a template from scanned resources - Create a template from scanned resources (AWS CLI) HOT 2
- Segmentation fault on GitHub's `macos-14` runner HOT 3
- `aws dynamodb query` and `aws dynamodb scan` commands are missing docs for the `--limit` parameter HOT 2
- Cannot use credential_process on the default configuration HOT 3
- --endpoint-url does not accept IPv6 addresses HOT 8
- See the structure of a returned item HOT 2
- aws_completer fails to complete sso profiles HOT 2
- Error installing from source when using python 3.12 HOT 2
- ec2 instance connect fails sporadically on WebSocket (NO_PROXY=1 does not help) HOT 1
- AWS_PROFILE is ignored when AWS_ROLE_ARN is set HOT 1
- unclear / misleading FAQ for s3 re: checksum
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cli.