Category: Forms and APIs

HTTP 403 Forbidden: logged user does not have permission

Read this guide in Polish

Token is important, but the API refuses to act as administrator.

How to identify the source of the problem

Check the server side role, assignment to tenant and RLS rules for a given resource.

Save method, status, headers and anonymized body requests and answers.

Repair steps

Set the right policy and return the refusal to users without the required permission.

How to Test Solution

The administrator can perform the action and the normal user still receives 403.

Security and restrictions

Do not disable authorization or validation of webhook signature for status 200. Wash the tokens in the logs.