By Han
My role is currently “modifier”. When using doctl serverless connect
, I receive the error:
Error: GET https://api.digitalocean.com/v2/functions/namespaces/{namespace-id}": You are not authorized to perform this operation
Even with a full access token (create, read and update), it seems that modifiers cannot access namespace functions. Is this a known limitation, or does it require specific admin or delete access to work with namespace functions via doctl
?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey Han 👋
It’s a bit confusing, but yes, it seems that being a “modifier” prevents you from accessing function namespaces via doctl
, even with a full-scope token. The community has seen this behavior too, doctl serverless connect
will throw a 403 if your team role lacks the proper privileges:
https://www.digitalocean.com/community/questions/doctl-serverless-connect-required-api-token-scopes
To use namespace commands successfully, you’ll likely need owner or admin role in your team. Modifier just doesn’t cut it for those function-level operations.
If you don’t have that level on your token, try the command with an owner/admin account. If that doesn’t work or it’s unclear, it might be worth raising to the DigitalOcean support: https://do.co/support
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.