diff --git a/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py b/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py index 1b60b2122..478a2c8c4 100644 --- a/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py +++ b/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py @@ -71,6 +71,7 @@ def get_quicksight_designer_url(cls, uri: str): @staticmethod def get_monitoring_dashboard_id(): + DashboardQuicksightService._check_user_must_be_admin() current_account = SessionHelper.get_account() dashboard_id = ParameterStoreManager.get_parameter_value( AwsAccountId=current_account, @@ -87,6 +88,7 @@ def get_monitoring_dashboard_id(): @staticmethod def get_monitoring_vpc_connection_id(): + DashboardQuicksightService._check_user_must_be_admin() current_account = SessionHelper.get_account() vpc_connection_id = ParameterStoreManager.get_parameter_value( AwsAccountId=current_account, @@ -103,6 +105,7 @@ def get_monitoring_vpc_connection_id(): @classmethod def create_quicksight_data_source_set(cls, vpc_connection_id): + cls._check_user_must_be_admin() client = cls._client() client.register_user_in_group(group_name='dataall', user_role='AUTHOR')