IAM Client: User tags
See original GitHub issueI get an error when I try to do:
import boto3
client = boto3.client('iam')
print client.list_user_tags(UserName='username')
AttributeError: ‘IAM’ object has no attribute ‘list_user_tags’
Issue Analytics
- State:
- Created 5 years ago
- Comments:13
Top Results From Across the Web
Tagging IAM users - AWS Identity and Access Management
Managing tags on IAM users (console) · In the navigation pane of the console, choose Users and then choose the name of the...
Read more >IAM — Boto 3 Docs 1.9.96 documentation - Amazon AWS
A list of tags that you want to attach to the newly created role. Each tag consists of a key name and an...
Read more >IAM User Tag, Indexing Possible Using Boto3 - Stack Overflow
import boto3 client = boto3.client('iam') users = client.list_users() ... gets IAM tags def lambda_handler(event,context): for user in ...
Read more >Method: Aws::IAM::Client#tag_policy — Documentation for aws-sdk ...
Adds one or more tags to an IAM customer managed policy. If a tag with the same key name already exists, then that...
Read more >Tags and access control | IAM Documentation - Google Cloud
Overview of tags. A tag is a key-value pair that is attached to a Google Cloud resource. You can conditionally grant IAM roles...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the record, because I found this issue while searching for it, I can concur with @niugit. Locally it works, but aws lambda seem to behave differently:
localy:
Which is consistent with boto’s documentation. on AWS Lambda:
Which is not. Both sides use boto3-1.9.42.
I opened a ticket with AWS in order to know where it comes from and will update this post with the solution / workaround.
So
list_user_tags()
first appeared inv1.9.46
: https://boto3.amazonaws.com/v1/documentation/api/1.9.46/reference/services/iam.html?highlight=list_user_tags#IAM.Client.list_user_tags