IdentityStore list_users not working inside the lambda function
See original GitHub issueDescribe the bug
I am trying to list all the Identitystores(AWS SSO) users , When I run code in ipython or python file in laptop it’s showing all the user info like UserName,UserId, Name, Emails and UserType. But When I run same code in Lambda function its showing only UserName and UserId. Here is my code
`response = client.list_users( IdentityStoreId=‘d-9xxxxxxxxx’
) print(response) `
###Response
{ 'Users': [ { 'UserName': 'user', 'UserId': '3xxxxx-7011-70be-89a3-xxxxxxx', 'Name': { 'FamilyName': 'User', 'GivenName': 'A' }, 'DisplayName': 'User A', 'Emails': [ { 'Value': 'user@gmail.com', 'Type': 'work', 'Primary': True } ], 'UserType': 'Developer', 'Title': 'Senior Developer', 'IdentityStoreId': 'd-9xxxxxxxxx' } ]
Same code run in lambda and response is like this
{ 'Users': [ { 'UserName': 'user', 'UserId': '3xxxxx-7011-70be-89a3-xxxxxxxx' } ], }
Python lambda runtime : 3.8 Boto3 Version inside python lambda runtime : boto3==1.24.59 Local boto3 runtime : boto3==1.24.59
Expected Behavior
Expecting output
{ 'Users': [ { 'UserName': 'user', 'UserId': '3xxxxx-7011-70be-89a3-xxxxxxx', 'Name': { 'FamilyName': 'User', 'GivenName': 'A' }, 'DisplayName': 'User A', 'Emails': [ { 'Value': 'user@gmail.com', 'Type': 'work', 'Primary': True } ], 'UserType': 'Developer', 'Title': 'Senior Developer', 'IdentityStoreId': 'd-9xxxxxxxxx' } ]
Current Behavior
{ 'Users': [ { 'UserName': 'user', 'UserId': '3xxxxx-7011-70be-89a3-xxxxxxxx' } ], }
Reproduction Steps
response = client.list_users( IdentityStoreId=‘d-9xxxxxxxxx’
) print(response)
Deployed in lambda
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.24.59
Environment details (OS name and version, etc.)
python3.8 lambda runtime,
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Glad to hear that, thanks for letting us know! I’ll go ahead and close this issue.
Thank you so much now it’s working with boto3=>1.24.72