def METHOD_NAME(self, user_id: str) -> None:
    """
    Get Mode user ID via metadata service. Note that metadata service needs to be at least v2.5.2 and
    Databuilder should also have ingested Mode user.
    https://github.com/lyft/amundsendatabuilder#modedashboarduserextractor
    :param user_id:
    :return:
    :raise: PermissionError when user is not allowed to access the dashboard
    """
    metadata_svc_url = '{0}{1}/{2}'.format(app.config['METADATASERVICE_BASE'], USER_ENDPOINT, user_id)
    response = request_metadata(url=metadata_svc_url)
    response.raise_for_status()
    user = load_user(response.json())
    if user.is_active and user.other_key_values and user.other_key_values.get('mode_user_id'):
        return
    raise PermissionError('User {} is not authorized to preview Mode Dashboard'.format(user_id))