How to Set Custom Function Permissions

I am getting a not-authorized error when trying to update a table using a custom function:

[{"message":"You don't have permission to perform this operation","locations":[],"path":["rfpCreate"],"code":"NotAuthorizedError","details":{"permissions":"You don't have permission to perform this operation"}}]

The same mutation works fine when using the api explorer.

The docs say I can set CF permissions through the role manager, but I can’t figure out how to do it. In Settings>Roles>Administrator>Apps>Logic every box is checked.

What am I missing? Appreciate any help. I feel like I must be missing something obvious and have spent too much time trying to figure it out.

Figured it out. Answer for anyone else:

Permissions for ctx need to be set in the cf. https://docs.8base.com/8base-console/custom-functions#ctx

1 Like

Glad to hear you figured it out @spyqsklar !

Quick question for you. Are you passing an API TOKEN or ID TOKEN as an auth header to the request?

I am using the API Token

1 Like