KindeK
Kinde2y ago
8 replies
Yvens

Kinde Management api

Did I misunderstood something here ?
I'm trying to create a user with the role "user", but Kinde does not seem to pick it up. It does not reflect on the dashboard.
The key of the role I created is "user"
`
const apiClient = await createKindeManagementAPIClient();
    const addedToOrzanisation = await apiClient.organizationsApi.addOrganizationUsers({
      orgCode: organization.orgCode,
      addOrganizationUsersRequest: { users: [{ id: createdUser.id, roles: ["user"] }] }
    });


Thank you
Was this page helpful?