code: private String getUsersAssignedToPrivilegesBatch(List<Long> userIds, URIBuilder url, OAuthClientRequest bearerRequest,
  			OneloginOAuth2JSONResourceResponse oAuth2Response) {
  		if (oAuth2Response.getResponseCode() == 200) {
  			JSONArray dataArray = (JSONArray)oAuth2Response.getFromContent("users");
  			for (int i = 0; i < dataArray.length(); i++) {
  				userIds.add(dataArray.optLong(i));
  			}
  			return collectAfterCursor(url, bearerRequest, oAuth2Response);
  		} else {
  			error = oAuth2Response.getError();
  			errorDescription = oAuth2Response.getErrorDescription();
  		}
  		return null;
  	}
docs: Get a batch of users assigned to privilege.
  
  @param userIds
  @param url
  @param bearerRequest
  @param oAuth2Response
  
  @return The Batch reference
  
  @see <a target="_blank" href="https://developers.onelogin.com/api-docs/1/users/get-users">Get Users documentation</a>