06-23-2025 07:33 AM
Hi there!
This is my first post. I've searched though the forum but haven't found an answer. I was wondering if it is possible to generate an API key in the dashboard that is not linked to a user, so that if the user leaves, it can remain functional.
Is this possible or would it be better to make a service account?
Thanks in advance!
Solved! Go to Solution.
06-23-2025 07:37 AM
No, it is not possible.
06-23-2025 07:37 AM
No, it is not possible.
06-23-2025 07:38 AM
What you can do is create a dedicated service account and then generate the APIs through that account. Remember to enable MFA for that account.
06-23-2025 07:46 AM
Thanks for the fast answer! So that's how I imagined it. I'll just have to do it then.
Have a nice day!
06-24-2025 10:53 PM
This is exactly the way I work: Create a service account, activate 2FA and generate API.
06-23-2025 08:35 AM
You can't do it with a key but the newer OAuth would possibly help in your use case:https://developer.cisco.com/meraki/api-v1/oauth-overview/
06-23-2025 01:05 PM
You can use OAUTH.
This works best for applications that run on servers (like a web app), and although it does work in scripts, it doesn't suit scripts as well.
07-14-2025 04:53 AM
Will OAuth also be the way to go for automating the creation of organizations and networks, that is hosted on as a web app, or will the service account with api key be the way to go?
07-14-2025 06:29 AM
Creation of networks - yes.
Creation of new organizations - no. OAuth follows the principles of zero trust, and if it could create a new organization where it will have full admin rights - it would be considered privilege escalation.
What are you trying to achieve?
07-14-2025 11:39 PM
i have a website, that automates the creation of new customers(new organizations), including default config for networks, ssids, fw rules and so on.
Another thing i am not totally sure about with OAuth, will the authentication to an org for a specific organization be there for ever, or would the user need to authenticate to an org every time they log in on my website?
Would the approach be to use the service account to create the default config, and with all other operations use OAuth?
07-15-2025 07:41 AM
Currently, for a use-case of creating new organizations - API keys would make more sense.
Configuration changes, compliance, monitoring - these can be achieved with OAuth.
As long as the OAuth refresh token is used at least once every 90 days - the integration will last indefinitely (unless an admin revokes it).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide