def create_user_pool()

in server/TenantManagementService/user-management.py [0:0]


    def create_user_pool(self, tenant_id):
        application_site_url = os.environ['TENANT_USER_POOL_CALLBACK_URL']
        email_message = ''.join(["Login into tenant UI application at ", 
                        application_site_url,
                        " with username {username} and temporary password {####}"])
        email_subject = "Your temporary password for tenant UI application"  
        response = client.create_user_pool(
            PoolName= tenant_id + '-ServerlessSaaSUserPool',
            AutoVerifiedAttributes=['email'],
            AccountRecoverySetting={
                'RecoveryMechanisms': [
                    {
                        'Priority': 1,
                        'Name': 'verified_email'
                    },
                ]
            },
            Schema=[
                {
                    'Name': 'email',
                    'AttributeDataType': 'String',
                    'Required': True,                    
                },
                {
                    'Name': 'tenantId',
                    'AttributeDataType': 'String',
                    'Required': False,                    
                },            
                {
                    'Name': 'userRole',
                    'AttributeDataType': 'String',
                    'Required': False,                    
                }
            ],
            AdminCreateUserConfig={
                'InviteMessageTemplate': {
                    'EmailMessage': email_message,
                    'EmailSubject': email_subject
                }
            }
        )    
        return response