I can see in the WorkOS dashboard that I can create/update roles and permissions, and attach a permission to a role via the dashboard UI. I do not see any way to achieve this via code. Could you help by providing code samples on how to do this.
I need to be able to update roles for a user by email, and I also need to be able to update permissions for specific users/roles.