Account API Tokens Write is not in the interface

Hey everyone, I'm trying to add the Account API Tokens Write permission group to a User Api Token. When I open the dev tools in the dashboard in can clearly see that the permission is returned from the async call. But when I search the list of permissions, this is nowhere to be found... Is it hidden under another name? Do you have any idea on what I can do? Thanks!
No description
No description
6 Replies
Hard@Work
Hard@Work2mo ago
Have you tried the "Create Additional Tokens" preset?
CallMeSH
CallMeSHOP2mo ago
Hacked my way through with a custom curl and I don't think the dashboard likes it haha
No description
Hard@Work
Hard@Work2mo ago
The permission should be called API Tokens That looks right? Not sure why it is grayed out, but it is for me too
CallMeSH
CallMeSHOP2mo ago
Hum yup this is what i tried My 2cents is that it is grayed out because the picker doesn't contain the value :DogKek: Oh well, it works, just not very user friendly lol
Hard@Work
Hard@Work2mo ago
Yeah, looking in to it
CallMeSH
CallMeSHOP2mo ago
If I can give a small feedback as to how I came to need this: I'm automating the creation of an R2 Bucket with its associated Api Token through Pulumi. It was quite... challenging. The whole process of finding the right permission group to feed to the constructor of the AccountToken requires to jump out of the "declarative land" and query the api to get the right value to put back in a "Pulumi compatible input". Maybe this should be easier if it was hidden inside the AccountToken using constants instead of the ids of the permission groups. I know it's not how it is modeled in the API but it feels a bit alien in IaC.

Did you find this page helpful?