List Token Permission Groups required scope
What scope does the api token need to read the
https://api.cloudflare.com/client/v4/user/tokens/permission_groups
endpoint, I am trying to use it to check for what permissions the token has access to. I have tried creating a key with the Read all resources template and that even doesn't allow me to use it.4 Replies
Did you ever get the answer to this @Elias ?
That one is a pain but you need
User:API Token:Read
. You can use https://dash.cloudflare.com/profile/api-tokens?permissionGroupKeys=%5B%7B%22key%22%3A%22api_tokens%22%2C%22type%22%3A%22read%22%7D%5D&name=&accountId=*&zoneId=all to generate oneOkay great thanks for the quick response, saved me a lot of time! I've been trying each permission individually until one worked (which it never would have 🙃)
Sorry about not getting back, yeah it sucks that the endpoints don't have a label for what permission is required. It also doesn't help that this one requires a pretty hidden permission.