Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/auth/SearchTenantUsersResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SearchTenantUsersResult


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**users** | [**List<User>**](User.md) | | |
|**cursor** | **String** | Pagination cursor for the next page | [optional] |



84 changes: 84 additions & 0 deletions docs/auth/TenantUserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ All URIs are relative to *https://api.saasus.io/v1/auth*
| [**getAllTenantUsers**](TenantUserApi.md#getAllTenantUsers) | **GET** /tenants/all/users | Get Users |
| [**getTenantUser**](TenantUserApi.md#getTenantUser) | **GET** /tenants/{tenant_id}/users/{user_id} | Get Tenant User |
| [**getTenantUsers**](TenantUserApi.md#getTenantUsers) | **GET** /tenants/{tenant_id}/users | Get Tenant Users |
| [**searchTenantUsers**](TenantUserApi.md#searchTenantUsers) | **GET** /tenants/all/users/search | Search Tenant Users |
| [**updateTenantUser**](TenantUserApi.md#updateTenantUser) | **PATCH** /tenants/{tenant_id}/users/{user_id} | Update Tenant User Attribute |


Expand Down Expand Up @@ -574,6 +575,89 @@ public class Example {
| **200** | OK | - |
| **500** | Internal Server Error | - |

<a id="searchTenantUsers"></a>
# **searchTenantUsers**
> SearchTenantUsersResult searchTenantUsers(tenantId, id, email, signInId, envId, roleId, limit, cursor)

Search Tenant Users

Search tenant users by user id, tenant id, email, sign-in ID, env, or role.

### Example
```java
// Import classes:
import saasus.sdk.auth.ApiClient;
import saasus.sdk.auth.ApiException;
import saasus.sdk.auth.Configuration;
import saasus.sdk.auth.auth.*;
import saasus.sdk.auth.models.*;
import saasus.sdk.auth.api.TenantUserApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.saasus.io/v1/auth");

// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");

TenantUserApi apiInstance = new TenantUserApi(defaultClient);
String tenantId = "tenantId_example"; // String | Tenant ID
String id = "id_example"; // String | User ID
String email = "email_example"; // String | Email prefix
String signInId = "signInId_example"; // String | Sign-in ID prefix
Integer envId = 56; // Integer | Environment ID
String roleId = "roleId_example"; // String | Role ID
Long limit = 56L; // Long | Maximum number of users to retrieve
String cursor = "cursor_example"; // String | Cursor for cursor pagination
try {
SearchTenantUsersResult result = apiInstance.searchTenantUsers(tenantId, id, email, signInId, envId, roleId, limit, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantUserApi#searchTenantUsers");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **tenantId** | **String**| Tenant ID | [optional] |
| **id** | **String**| User ID | [optional] |
| **email** | **String**| Email prefix | [optional] |
| **signInId** | **String**| Sign-in ID prefix | [optional] |
| **envId** | **Integer**| Environment ID | [optional] |
| **roleId** | **String**| Role ID | [optional] |
| **limit** | **Long**| Maximum number of users to retrieve | [optional] |
| **cursor** | **String**| Cursor for cursor pagination | [optional] |

### Return type

[**SearchTenantUsersResult**](SearchTenantUsersResult.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
| **500** | Internal Server Error | - |

<a id="updateTenantUser"></a>
# **updateTenantUser**
> updateTenantUser(tenantId, userId, updateTenantUserParam)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.apilog;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class Configuration {
public static final String VERSION = "1.0.0";

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.apilog;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/auth/HttpBearerAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Optional;
import java.util.function.Supplier;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private Supplier<String> tokenSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public abstract class AbstractOpenApiSchema {

// store the actual instance of the schema/object
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/models/ApiLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
/**
* ApiLog
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class ApiLog {
public static final String SERIALIZED_NAME_TRACE_ID = "trace_id";
@SerializedName(SERIALIZED_NAME_TRACE_ID)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/models/ApiLogs.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
/**
* ApiLogs
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class ApiLogs {
public static final String SERIALIZED_NAME_API_LOGS = "api_logs";
@SerializedName(SERIALIZED_NAME_API_LOGS)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/models/Error.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
/**
* Error
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:57.693800799Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:50:11.846772549Z[Etc/UTC]")
public class Error {
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:42.076013416Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:49:57.058378794Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.auth;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:42.076013416Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:49:57.058378794Z[Etc/UTC]")
public class Configuration {
public static final String VERSION = "1.0.0";

Expand Down
1 change: 1 addition & 0 deletions src/main/java/saasus/sdk/auth/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SaasUser.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SaasUserResetPasswordResult.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SaasUsers.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SearchTenantUsersResult.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SelfRegist.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SignInParam.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SignInResult.CustomTypeAdapterFactory());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.auth;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:42.076013416Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:49:57.058378794Z[Etc/UTC]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-03T08:53:42.076013416Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-04-09T11:49:57.058378794Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
Loading