Update the user’s role without needing to enter the Kinde admin.

I would like to update the user’s role without needing to enter the Kinde admin. For example, on a screen, the logged-in user clicks on ‘I want to test a demo,’ and I trigger an action that updates the user’s role in the user table from DEFAULT to DEMO, for instance. How do I do that?
3 Replies
Daniel_Kinde
Daniel_Kinde5mo ago
This can be achieved using our management API, what SDK are you using?
pauloferraz5796
pauloferraz5796OP5mo ago
I using Nextjs. I tried using the API, but I couldn't. Is there any example?
onderay
onderay5mo ago
Could use our Management API SDK - https://github.com/kinde-oss/management-api-js Here is a doc on how to connect - https://docs.kinde.com/developer-tools/kinde-api/get-access-token-for-connecting-securely-to-kindes-api/ Is there any particular issue you are having with the API?
GitHub
GitHub - kinde-oss/management-api-js: javascript package for intera...
javascript package for interacting with the Kinde Management API - kinde-oss/management-api-js
Kinde docs
Connect securely to Kinde’s API
Our developer tools provide everything you need to get started with Kinde.
Want results from more Discord servers?
Add your server