Adds a user as a member to an organization. A user can only be added to an organization if they are not already members of it and if they already exist in the same instance as the organization.
Please note that only administrators can add members to an organization.
AddMemberParams
Name
Type
Description
userId
string
The id of the user that will be added as a member to the organization.
role
'admin' | 'basic_member' | 'guest_member'
The role that the user will have in the organization.