def METHOD_NAME(email: str, secrets: Dict[str, Any]) -> str:
    personas_domain = secrets["personas_domain"]
    namespace_id = secrets["namespace_id"]
    access_secret = secrets["access_secret"]
    response = requests.get(
        f"https://{personas_domain}/v1/spaces/{namespace_id}/collections/users/profiles/user_id:{email}/metadata",
        auth=(access_secret, None),
    )
    if not response.ok:
        return None
    return response.json()["segment_id"]