removeUserFromOrganization
@svenvw/fdm-source / fdm-core/src / removeUserFromOrganization
Function: removeUserFromOrganization()
removeUserFromOrganization(
fdm,admin_id,organization_id,username):Promise<void>
Defined in: fdm-core/src/organization.ts:743
Removes a user from an organization.
Parameters
fdm
any
The FDM instance providing the connection to the database.
admin_id
string
The ID of the user initiating the removal (must be owner or admin).
organization_id
string
The ID of the organization from which the user is being removed.
username
string
The username of the user being removed.
Returns
Promise<void>
Throws
Throws an error if any database operation fails, if the user initiating the removal does not have permissions, or if the user to be removed is not found.