-
I'm using the following Python code to retrieve the users in a user pool (where MAX_NUMBER_RECORDS = 10, LIMIT = 5, REGION, PROFILE, and USER_POOL_ID are the corresponding AWS values from the account): import boto3 def convert_date_to_string(o): def get_cognito_user_pool_list(cognito_idp_client, next_pagination_token ='', Limit = LIMIT): session = boto3.Session(profile_name=PROFILE) user_records = get_cognito_user_pool_list( json_formatted_str = json.dumps(user_records, indent=4, default=convert_date_to_string) returns the following: { Does anyone have insight as to why the remaining attributes (name, preferred_username, etc.) do not appear? Thanks. Joe |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is resolved. The code actually works. The issue is that there are many empty fields in the user pool entries themselves. That's why nothing was showing up in the user_records. Thanks. |
Beta Was this translation helpful? Give feedback.
This is resolved. The code actually works. The issue is that there are many empty fields in the user pool entries themselves. That's why nothing was showing up in the user_records. Thanks.