https://supertokens.com/ logo
about roles and dashboard
k

Khanh Luu

04/10/2023, 10:18 PM
Hello everyone, I have few questions regarding user dashboard and user role: 1. I can't see the user's role in user details page, did I miss something? 2. Is there any option to view list of user that have a specific role? 3. I have a list of users with their roles in format of excel or txt file. What is the recommended way to insert those data to supertokens? I'm thinking about writing a custom script to do that but I'm not sure if supertokens has the data import feature.
r

rp

04/11/2023, 5:12 AM
hey @Khanh Luu 1. We don't have user roles on the dashboard at the moment. It's something we will be working on soon. 2. Not on the dashboard. But we do have an API on the core which allows you to do that: https://app.swaggerhub.com/apis/supertokens/CDI/2.20.0#/User%20Roles%20Recipe/getRoleUsers 3. Not at the moment. We will be adding this feature. 4. A custom script would be good. You can loop through all the rows and call the API to create the role if it doesn't exist, and then associate the role with a user.
k

Khanh Luu

04/11/2023, 7:15 AM
hey @rp thanks for your response. Very happy to see that you'll be working on all the features I mentioned. In our project, admin users must have a way to see and edit other members's role. Can you estimate how long 1. and 3. feature can be added? If it's longer than 2 3 months, we should think about making our own dashboard
r

rp

04/11/2023, 7:17 AM
it will be longer that 2-3 months i'm afraid.
k

Khanh Luu

04/11/2023, 7:50 AM
Thanks for letting me know 🤘