public IntegratedUserInfoList listUsers(String accountId, String connectId, ConnectApi.ListUsersOptions options) throws ApiException {
    Object localVarPostBody = "{}";
    
      // verify the required parameter 'accountId' is set
      if (accountId == null) {
      throw new ApiException(400, "Missing the required parameter 'accountId' when calling listUsers");
      }
    
      // verify the required parameter 'connectId' is set
      if (connectId == null) {
      throw new ApiException(400, "Missing the required parameter 'connectId' when calling listUsers");
      }
    
    // create path and map variables
    String localVarPath = "/v2/accounts/{accountId}/connect/{connectId}/users".replaceAll("\\{format\\}","json")
      .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()))
      .replaceAll("\\{" + "connectId" + "\\}", apiClient.escapeString(connectId.toString()));

    // query params
    java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
    java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
    java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();

    if (options != null) {
       localVarQueryParams.addAll(apiClient.parameterToPairs("", "count", options.count));
       localVarQueryParams.addAll(apiClient.parameterToPairs("", "email_substring", options.emailSubstring));
       localVarQueryParams.addAll(apiClient.parameterToPairs("", "list_included_users", options.listIncludedUsers));
       localVarQueryParams.addAll(apiClient.parameterToPairs("", "start_position", options.startPosition));
       localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", options.status));
       localVarQueryParams.addAll(apiClient.parameterToPairs("", "user_name_substring", options.userNameSubstring));
    }
    
    
      final String[] localVarAccepts = {
    "application/json"
      };
      final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

      final String[] localVarContentTypes = {
    
      };
      final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

      String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{  };

        GenericType<IntegratedUserInfoList> localVarReturnType = new GenericType<IntegratedUserInfoList>() {};
        return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
          }
public IntegratedUserInfoList listUsers ( String accountId , String connectId , ConnectApi . ListUsersOptions options ) throws ApiException { Object localVarPostBody = "{}" ; if ( accountId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'accountId' when calling listUsers" ) ; } if ( connectId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'connectId' when calling listUsers" ) ; } String localVarPath = "/v2/accounts/{accountId}/connect/{connectId}/users" . replaceAll ( "\\{format\\}" , "json" ) . replaceAll ( "\\{" + "accountId" + "\\}" , apiClient . escapeString ( accountId . toString ( ) ) ) . replaceAll ( "\\{" + "connectId" + "\\}" , apiClient . escapeString ( connectId . toString ( ) ) ) ; java . util . List < Pair > localVarQueryParams = new java . util . ArrayList < Pair > ( ) ; java . util . Map < String , String > localVarHeaderParams = new java . util . HashMap < String , String > ( ) ; java . util . Map < String , Object > localVarFormParams = new java . util . HashMap < String , Object > ( ) ; if ( options != null ) { localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "count" , options . count ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "email_substring" , options . emailSubstring ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "list_included_users" , options . listIncludedUsers ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "start_position" , options . startPosition ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "status" , options . status ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "user_name_substring" , options . userNameSubstring ) ) ; } final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; final String [ ] localVarContentTypes = { } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; String [ ] localVarAuthNames = new String [ ] { "docusignAccessCode" } ; GenericType < IntegratedUserInfoList > localVarReturnType = new GenericType < IntegratedUserInfoList > ( ) { } ; return apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
Returns users from the configured Connect service.
Returns users from the configured Connect service.
@param accountId The external account number (int) or account ID Guid. (required)
@param connectId The ID of the custom Connect configuration being accessed. (required)
@param options for modifying the method behavior.
@return IntegratedUserInfoList
@throws ApiException if fails to make API call