--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/W2AjuHItP1o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/a15b55c4-5ee4-43c1-95b9-af7c188a888a%40googlegroups.com.
ISSUE 1:
I have a community connector for BigQuery for my reports. I am sharing the reports to several clients who have to authorize the connector. How can I ensure my clients are not able to view the apps script for the connector since it contains confidential information of my sql instance.
ISSUE 2:
I have one column/dimension that is being used for calculated fields in the data studio. Admin can see this column but I do not want non-admin users to see the column at all. But since schema for dimensions and metrics is defined before the data is loaded using getSchema() I am not sure how to 'hide' it. Even if the dimension is not showing up in the report I share. There is a chance that user (non-admin) creates a new report using the community connector and uses this dimension and see the data.
Not exactly clear on what you mean by "row-level sharing", but it sounds a lot like Role-Based Access Control where depending on role (admin, non-admin, etc) a user is granted varying levels of access to content. So with that as my frame of reference lets proceed to your issues.
ISSUE 1:
I have a community connector for BigQuery for my reports. I am sharing the reports to several clients who have to authorize the connector. How can I ensure my clients are not able to view the apps script for the connector since it contains confidential information of my sql instance.
You can store your database credentials using PropertiesService (script level, not user). You should only grant your clients read access to the shared script (ie. select "can view" when you share the script) so they won't be able to see what's stored. This is considered best practice.
ISSUE 2:
I have one column/dimension that is being used for calculated fields in the data studio. Admin can see this column but I do not want non-admin users to see the column at all. But since schema for dimensions and metrics is defined before the data is loaded using getSchema() I am not sure how to 'hide' it. Even if the dimension is not showing up in the report I share. There is a chance that user (non-admin) creates a new report using the community connector and uses this dimension and see the data.
Now this is a bit tricky, even at the database level (assuming Cloud SQL) the most fine-grained privileges you can set are at the table level (I don't think you can gate access to a specific column). There are a few things that can probably be done to filter data based on user role (admin, non-admin). I could augment you connector with the necessary functionality....for a price. Do you have an account with Guru.com?
--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/W2AjuHItP1o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/31b6ae7a-d241-4203-b620-d271ea31bb67%40googlegroups.com.