workos / workos-node

Official Node SDK for interacting with the WorkOS API
https://workos.com/docs/sdk/node
MIT License
120 stars 30 forks source link

How to create roles and permission via the WorkOS SDK? #1159

Closed sagar7993 closed 1 week ago

sagar7993 commented 1 week ago

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.

PaulAsjes commented 1 week ago

Hi there @sagar7993, creating and updating roles and permissions isn't currently supported by the WorkOS API, but it's something that we're actively discussing. I don't have a timeline to share at the moment, but I've shared this with the team to help us as we plan future roles and permissions features.