def main():
    """Create an identical user account on a pair of satellites."""
    server_configs = (
        {'url': url, 'auth': ('admin', 'changeme'), 'verify': False}
        for url
        in ('https://sat1.example.com', 'https://sat2.example.com')
    )
    for server_config in server_configs:
        response = requests.post(
            server_config['url'] + '/api/v2/users',
            json.dumps({
                'user': {
                    'auth_source_id': 1,
                    'login': 'Alice',
                    'mail': 'alice@example.com',
                    'organization_ids': [get_organization_id(
                        server_config,
                        'Default_Organization'
                    )],
                    'password': 'hackme',
                }
            }),
            auth=server_config['auth'],
            headers={'content-type': 'application/json'},
            verify=server_config['verify'],
        )
        response.raise_for_status()
        pprint(response.json())
Create an identical user account on a pair of satellites.