Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon Connect: list_users() does not return LastModifiedTime #3927

Closed
electronicalias opened this issue Nov 10, 2023 · 4 comments
Closed

Amazon Connect: list_users() does not return LastModifiedTime #3927

electronicalias opened this issue Nov 10, 2023 · 4 comments
Assignees
Labels
bug This issue is a confirmed bug. closing-soon This issue will automatically close in 4 days unless further comments are made. connect p3 This is a minor priority issue response-requested Waiting on additional information or feedback.

Comments

@electronicalias
Copy link

Describe the bug

When trying to list the users in an instance, we do not get values back for LastModifiedTime.

Expected Behavior

As per the documentation the following should be returned:

{
    'UserSummaryList': [
        {
            'Id': 'string',
            'Arn': 'string',
            'Username': 'string',
            'LastModifiedTime': datetime(2015, 1, 1),
            'LastModifiedRegion': 'string'
        },
    ],
    'NextToken': 'string'
}

Current Behavior

The following is returned whether or not the user has been modified - we would expect LastModiedTime to contain the time created if the user has not been modified, like many other services:

{
    'UserSummaryList': [
        {
            "Id": "our id", 
            "Arn": "our data", 
            "Username": "our user"
         },
    ],
    'NextToken': 'string'
}

### Reproduction Steps

Run the following in any Lambda/Python function:

```python
connect_client = boto3.client('connect')
response = connect_client.list_users(
        InstanceId=instance_id
)

Possible Solution

Always return LastModifiedTime. Use the created value as LastModifiedTime if there is no modifications made.

Additional Information/Context

No response

SDK version used

1.28.83

Environment details (OS name and version, etc.)

Lambda Python 3.8 x86_64

@electronicalias electronicalias added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Nov 10, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK self-assigned this Nov 10, 2023
@RyanFitzSimmonsAK RyanFitzSimmonsAK added investigating This issue is being investigated and/or work is in progress to resolve the issue. connect p3 This is a minor priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Nov 10, 2023
@RyanFitzSimmonsAK
Copy link
Contributor

Hi @electronicalias, thanks for reaching out. I was not able to reproduce this behavior on the most recent version of Boto3. LastModifiedTime and LastModifiedRegion were only added recently, so I suspect this is an issue of versions. Can you confirm that the Boto3 and Botocore versions that your Lambda function are using is 1.28.76 or higher? By default, Lambda environments are packaged with a much older version of the SDK that won't have the recent model updates.

@RyanFitzSimmonsAK RyanFitzSimmonsAK added response-requested Waiting on additional information or feedback. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Nov 10, 2023
Copy link

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Dec 21, 2023
@electronicalias
Copy link
Author

Confirm it's good, thank you.

Copy link

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a confirmed bug. closing-soon This issue will automatically close in 4 days unless further comments are made. connect p3 This is a minor priority issue response-requested Waiting on additional information or feedback.
Projects
None yet
Development

No branches or pull requests

2 participants