in scripts/identity/identity_helper.py [0:0]
def list_identity_users(self, identity_store: str, user_name: str, next_token : str or None) -> dict:
# List cannot be called without a filter: https://github.com/boto/boto3/issues/2681
filters = [
{
'AttributePath': 'UserName',
'AttributeValue': user_name
},
]
if next_token == None:
return self.identity_client.list_users(
IdentityStoreId=identity_store,
Filters=filters
)
return self.identity_client.list_users(
IdentityStoreId=identity_store,
Filters=filters,
NextToken=next_token
)