Add Users to black list
@param username The owner of the black list
@param users The users that will add to black list
@return add users to black list
@throws APIConnectionException connect exception
@throws APIRequestException request exception
359278
public ResponseWrapper addBlackList(String username, String...users)
            throws APIConnectionException, APIRequestException {
        return _userClient.addBlackList(username, users);
    }
333984
public void setUsername(String username) {
        for (Authentication auth : authentications.values()) {
            if (auth instanceof HttpBasicAuth) {
                ((HttpBasicAuth) auth).setUsername(username);
                return;
            }
        }
        throw new RuntimeException("No HTTP basic authentication configured!");
    }
420146
def addBlacklist(self, userId, blackUserId):
        

        desc = {
            "name": "CodeSuccessReslut",
            "desc": " http 成功返回结果",
            "fields": [{
                "name": "code",
                "type": "Integer",
                "desc": "返回码，200 为正常。"
            }, {
                "name": "errorMessage",
                "type": "String",
                "desc": "错误信息。"
            }]
        }
        r = self.call_api(
            method=('API', 'POST', 'application/x-www-form-urlencoded'),
            action='/user/blacklist/add.json',
            params={"userId": userId,
                    "blackUserId": blackUserId})
        return Response(r, desc)
848667
def add_users_to_organization(self, organization_id, users_list):
        
        log.warning('Adding users...')
        url = 'rest/servicedeskapi/organization/{}/user'.format(organization_id)
        data = {'usernames': users_list}

        return self.post(url, headers=self.experimental_headers, data=data)
290016
def add_user(config, group, username):
        """"""
        client = Client()
        client.prepare_connection()
        group_api = API(client)
        try:
            group_api.add_user(group, username)
        except ldap_tools.exceptions.NoGroupsFound:  # pragma: no cover
            print("Group ({}) not found".format(group))
        except ldap_tools.exceptions.TooManyResults:  # pragma: no cover
            print("Query for group ({}) returned multiple results.".format(
                group))
        except ldap3.TYPE_OR_VALUE_EXISTS:  # pragma: no cover
            print("{} already exists in {}".format(username, group))
1089127
@Override
    public <U extends ApiBaseUser> ResponseToRoom exclude(Collection<U> users) {
    	for(U user : users)
    		this.excludedUsers.add(user.getName());
    	return this;
    }
169899
public UserListResult getUserList(int start, int count)
            throws APIConnectionException, APIRequestException {

        if (start < 0 || count <= 0 || count > 500) {
            throw new IllegalArgumentException("negative index or count must more than 0 and less than 501");
        }
        ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "?start=" + start + "&count=" + count);
        return UserListResult.fromResponse(response, UserListResult.class);

    }
1215119
public static BaasUser withUserName(String username) {
        BaasUser current = current();
        if (current != null && current.username.equals(username)) {
            return current;
        }
        return new BaasUser(username);
    }
1151425
public ResponseWrapper addCrossFriends(String username, CrossFriendPayload payload)
            throws APIConnectionException, APIRequestException {
        return _crossAppClient.addCrossFriends(username, payload);
    }
750926
public ResponseWrapper addCrossFriends(String username, CrossFriendPayload payload)
            throws APIConnectionException, APIRequestException {
        StringUtils.checkUsername(username);
        Preconditions.checkArgument(null != payload, "CrossFriendPayload should not be null");
        return _httpClient.sendPost(_baseUrl + crossUserPath + "/" + username + "/friends", payload.toString());
    }
1327236
public void addUser(PrincipalUser user) {
        SystemAssert.requireArgument(user != null, "Null user can not be added.");
        users.add(user);
    }
912765
def add_user_to_group(self, group_name, user_name):
        
        params = {'GroupName' : group_name,
                  'UserName' : user_name}
        return self.get_response('AddUserToGroup', params)
581387
public static base_responses add(nitro_service client, snmpuser resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpuser addresources[] = new snmpuser[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new snmpuser();
				addresources[i].name = resources[i].name;
				addresources[i].group = resources[i].group;
				addresources[i].authtype = resources[i].authtype;
				addresources[i].authpasswd = resources[i].authpasswd;
				addresources[i].privtype = resources[i].privtype;
				addresources[i].privpasswd = resources[i].privpasswd;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
418034
public static mpsuser add(nitro_service client, mpsuser resource) throws Exception
	{
		resource.validate("add");
		return ((mpsuser[]) resource.perform_operation(client, "add"))[0];
	}
1232246
public UsersResponse listGroupUsers(String accountId, String groupId) throws ApiException {
    return listGroupUsers(accountId, groupId, null);
  }
993483
public void addUser(UserDefinition userDef) {
        String userID = userDef.getID();
        Utils.require(!Utils.isEmpty(userID), "User ID must be set");
        Utils.require(!m_users.containsKey(userID), "Duplicate user ID: " + userID);
        m_users.put(userID, userDef);
    }
1031374
public void setUserList(java.util.Collection<User> userList) {
        if (userList == null) {
            this.userList = null;
            return;
        }

        this.userList = new java.util.ArrayList<User>(userList);
    }