Organization inviteMember - Not Allowed to Invite
I keep getting a 403 - "YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION"
This is a client component. User fills in the form to invite
My permissions file:
Not sure whats up. Checked user role and permissions and its good. activeMember reads out:
Solution:Jump to solution
Ok the solution is that you have to very carefully read the docs and not vibe code, lol. You have to use the default statements or the invitations feature will not work. So for example:
```
const statement = {
...defaultStatements,...
1 Reply
Solution
Ok the solution is that you have to very carefully read the docs and not vibe code, lol. You have to use the default statements or the invitations feature will not work. So for example:
I didn't read the "invitation" create/cancel and because I didn't inherit the defaults my owner of the organization didn't have those abilities. What was throwing me off is that I was able to update my organizations name even though I did this silly override so that means that even if you screw up you can still as owner update the org. Lesson learned is to actually use the docs examples. 😄