cloudworkz / grafana-gsuite-sync Goto Github PK
View Code? Open in Web Editor NEWGoogle Group User --> Grafana
License: MIT License
Google Group User --> Grafana
License: MIT License
Before I dive in to this issue I would like to say: Thanks for building this really useful tool. It's small succinct and appears to be exactly what I'm looking for it I could just get beyond this hurdle.
Now my hurdle...
There is no documentation here (or anywhere else) about which permissions are required, or how to set up a service account that can be used when running this tool.
I have been trying to work out the correct workflow and permissions, but without success.
This is what I have got so far:
https://www.googleapis.com/auth/admin.directory.user, https://www.googleapis.com/auth/admin.directory.group
When running this tool after following this process I get this error:
[2019-01-23T17:16:52.621Z] ERROR (49472 on EmergencyBacon.local): Not Authorized to access this resource/api
Error: Not Authorized to access this resource/api
at createError (/Users/uatec/Development/google-cloud-tools/grafana-gsuite-sync/node_modules/axios/lib/core/createError.js:16:15)
at settle (/Users/uatec/Development/google-cloud-tools/grafana-gsuite-sync/node_modules/axios/lib/core/settle.js:18:12)
at Unzip.handleStreamEnd (/Users/uatec/Development/google-cloud-tools/grafana-gsuite-sync/node_modules/axios/lib/adapters/http.js:201:11)
at Unzip.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
If you can give me a few pointers I can raise a PR to document this process.
This script currently requires that Grafana have basic http authentication enabled, but some teams prefer to disable it in favor of oauth2 or other federated logins. Grafana does have a method for bearer token auth with API keys, and it would be nice if this script could use it: http://docs.grafana.org/http_api/auth/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.