@api_endpoint
@ajax_request
@login_required
@has_perm('requires_owner')
def add_user_to_organization(request):
    body = json.loads(request.body)
    org = Organization.objects.get(pk=body['organization_id'])
    user = User.objects.get(pk=body['user_id'])

    org.add_member(user)

    return {'status': 'success'}
Replica set name or None.
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/views/accounts.py/add_user_to_organization--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/ismaster.py/IsMaster.replica_set_name