Adds the user with email to the organization given by orgId or orgName with role invitedUserRole (member by default), first creating the account with name and password (random when omitted) when no user has that email, and recalculates the seats. Sends a password-reset email unless sendResetPasswordEmail is false, and succeeds without changes when the user is already a member; returns 404 for an unknown organization. Super admin only.
POST
/admin/organization/add-user-to-org
curl \
--request POST 'http://api.example.com/admin/organization/add-user-to-org' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"email": "string",
"name": "string",
"invitedUserRole": "member",
"orgId": "string",
"orgName": "string",
"password": "string",
"sendResetPasswordEmail": true
}'
Request examples
{
"email": "string",
"name": "string",
"invitedUserRole": "member",
"orgId": "string",
"orgName": "string",
"password": "string",
"sendResetPasswordEmail": true
}
Response examples (200)
{
"data": {
"message": "Done",
"isSuccess": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}