Per database user/team permissions
Connections can be added by individual user either at team or user level and used by all below that. Errors show for any inappropriately permissioned user.
Dashboard can belong to 1 user or team. ServerConfig can belong to 1 user or team.
Only users in same team can see dashboard or server config unless it's marked public. The most specific server configs are fetched for a given name. Allows teams to have same named conn but if user is viewing team specific dash, they get a team specific conn access. User specific permissions for conns should work via preWrap. Set something once and it's unsettable again. Old versions of dashboards are only accessible if current dashboard is, they don't use old permissions.
e.g. Polygon.
PULSE_SET('API_KEY',PULSE_GETENV('POLYGON_API_KEY'))
User Flow: User creates dashboard on SAAS, free user so marked as public. Can access all public data sources. Can add their own data source. LIMIT = One private dashboard.
Paid user creates dashboard. Default marked as private. Can access all public. Can create team and add team data connection. LIMIT = Simultaneously open dashboards?
Dashboard can be marked public but only use private connections which would make it unusable to many?
Anyone can fork a dashboard that they can see. Only owner whether that is user or team can update dashboard.
Enterprise = Own hosted dedicated instance.