Hi Yusif,
Try revoking the user's roles and create a new role with limited abilities:
For example, create a role with specific privileges:
CREATE ROLE limited_role;
GRANT SELECT, INSERT, UPDATE ON ALL TABLES IN SCHEMA public TO limited_role;
Then, assign this role to the user:
GRANT limited_role TO my_user;
If this is helpful please accept as answer or upvote.
Best regards,
Dillon Silzer | Cloudaen.com | Cloudaen Computing Solutions