code: public OneLoginResponse<Long> getUsersAssignedToPrivilegesBatch(String id, int batchSize, String afterCursor)
  			throws OAuthSystemException, OAuthProblemException, URISyntaxException {
  		ExtractionContext context = extractResourceBatch((Object)id, batchSize, afterCursor, Constants.GET_USERS_ASSIGNED_TO_PRIVILEGE_URL);
  		List<Long> userIds = new ArrayList<Long>(batchSize);
  		afterCursor = getUsersAssignedToPrivilegesBatch(userIds, context.url, context.bearerRequest, context.oAuth2Response);
  		return new OneLoginResponse<Long>(userIds, afterCursor);
  	}
docs: Get a batch of users assigned to privilege.
  
  @param id Id of the privilege
  @param batchSize Size of the Batch
  @param afterCursor Reference to continue collecting items of next page
  
  @return OneLoginResponse of User (Batch)
  
  @throws OAuthSystemException - if there is a IOException reading parameters of the httpURLConnection
  @throws OAuthProblemException - if there are errors validating the OneloginOAuthJSONResourceResponse and throwOAuthProblemException is enabled
  @throws URISyntaxException - if there is an error when generating the target URL at the getResource call
  
  @see <a target="_blank" href="https://developers.onelogin.com/api-docs/1/privileges/get-users">Get Assigned Users documentation</a>