Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dexterlabora/googleform-registerMerakiAdmin
A Google Script to create a Meraki Dashboard admin account based on their Google Form entry.
https://github.com/dexterlabora/googleform-registerMerakiAdmin
cisco meraki
Last synced: 3 months ago
JSON representation
A Google Script to create a Meraki Dashboard admin account based on their Google Form entry.
- Host: GitHub
- URL: https://github.com/dexterlabora/googleform-registerMerakiAdmin
- Owner: dexterlabora
- License: mit
- Created: 2017-02-09T18:39:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T16:13:56.000Z (over 7 years ago)
- Last Synced: 2024-05-20T22:11:38.110Z (6 months ago)
- Topics: cisco, meraki
- Language: JavaScript
- Size: 1.18 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-merakiapis - googleform-registerMerakiAdmin - A Google Script to create a Meraki Dashboard admin account based on their Google Form entry. (Administration / Contents)
README
# Meraki Dashboard with Google Scripts & Forms
## Overview
This learning lab demonstrates the power of Meraki APIs with Google Scripts and Forms.
By building a simple Google Form and attaching a script written in JavaScript, a Meraki Dashboard administrator can easily be created. This is incredibly helpful when running workshops that require several administrators to have access to a lab network.
# Instructions
## Create a Google Form
https://forms.google.com### The first two questions should be as follows:
- Name[SAMPLE]
## Link the form to a Google Script
## Paste the contents of this repository's `code.gs` file into the Google Scripts IDE.
- [code.gs](code.gs)
- update the **API_KEY**, **ORG_ID** and **SHARD** to match your settings.
- save your changes## Add a Trigger to launch the script when the Form is submitted.
### Configure the trigger
- Run: **onFormSubmit**
- Events: **From form**
- --> On form submit## Test the API calls
Several additional functions are included in this code to allow you to test with sample data and collect information.
- Run --> *Select a **test** function*Feel free to modify the sample JSON data defined in the `testAddMerakiAdmin` function.
```
function testAddMerakiAdmin(){
var data = {
"name":"Google Scripts Demo",
"email":"[email protected]", // change this to an email you have access to!
"orgAccess":"full"
};
addMerakiAdmin(API_KEY,ORG_ID,SHARD,data);
}
```## View the results
- View --> Logs## Google Form
Now that the API calls are working, test the Google Form by hitting the preview button.Complete the form with a valid email address.
If everything worked, you should get an email from Meraki asking to complete the admin account verification.
## Verify Meraki account is created
- Meraki Dashboard --> Organization --> Administrators## SUCCESS!
You have now used the Meraki APIs to dynamically create Meraki administrator accounts. With Google Apps, you do not even need to host a server to run the application. Cool!
### Meraki API Resources
http://developers.meraki.com/