Class ProfileMappingApi

java.lang.Object
com.okta.sdk.resource.api.ProfileMappingApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class ProfileMappingApi extends Object
  • Constructor Details

    • ProfileMappingApi

      public ProfileMappingApi()
    • ProfileMappingApi

      public ProfileMappingApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getProfileMapping

      public ProfileMapping getProfileMapping(String mappingId) throws ApiException
      Retrieve a profile mapping Retrieves a single profile mapping referenced by its ID
      Parameters:
      mappingId - `id` of the Mapping (required)
      Returns:
      ProfileMapping
      Throws:
      ApiException - if fails to make API call
    • getProfileMapping

      public ProfileMapping getProfileMapping(String mappingId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve a profile mapping Retrieves a single profile mapping referenced by its ID
      Parameters:
      mappingId - `id` of the Mapping (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ProfileMapping
      Throws:
      ApiException - if fails to make API call
    • listProfileMappings

      public List<ListProfileMappings> listProfileMappings(String after, Integer limit, String sourceId, String targetId) throws ApiException
      List all profile mappings Lists all profile mappings in your org with [pagination](https://developer.okta.com/docs/api/#pagination). You can return a subset of profile mappings that match a supported `sourceId` and/or `targetId`. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the Link header contains a `next` link that you should treat as an opaque value (follow it, don't parse it). See [Link Header](https://developer.okta.com/docs/api/#link-header). The response is a collection of profile mappings that include a subset of the profile mapping object's parameters. The profile mapping object describes the properties mapping between an Okta user and an app user profile using [JSON Schema Draft 4](https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-04).
      Parameters:
      after - Mapping `id` that specifies the pagination cursor for the next page of mappings (optional)
      limit - Specifies the number of results per page (optional, default to 20)
      sourceId - The user type or app instance ID that acts as the source of expressions in a mapping. If this parameter is included, all returned mappings have this as their `source.id`. (optional)
      targetId - The user type or app instance ID that acts as the target of expressions in a mapping. If this parameter is included, all returned mappings have this as their `target.id`. (optional)
      Returns:
      List<ListProfileMappings>
      Throws:
      ApiException - if fails to make API call
    • listProfileMappings

      public List<ListProfileMappings> listProfileMappings(String after, Integer limit, String sourceId, String targetId, Map<String,String> additionalHeaders) throws ApiException
      List all profile mappings Lists all profile mappings in your org with [pagination](https://developer.okta.com/docs/api/#pagination). You can return a subset of profile mappings that match a supported `sourceId` and/or `targetId`. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the Link header contains a `next` link that you should treat as an opaque value (follow it, don't parse it). See [Link Header](https://developer.okta.com/docs/api/#link-header). The response is a collection of profile mappings that include a subset of the profile mapping object's parameters. The profile mapping object describes the properties mapping between an Okta user and an app user profile using [JSON Schema Draft 4](https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-04).
      Parameters:
      after - Mapping `id` that specifies the pagination cursor for the next page of mappings (optional)
      limit - Specifies the number of results per page (optional, default to 20)
      sourceId - The user type or app instance ID that acts as the source of expressions in a mapping. If this parameter is included, all returned mappings have this as their `source.id`. (optional)
      targetId - The user type or app instance ID that acts as the target of expressions in a mapping. If this parameter is included, all returned mappings have this as their `target.id`. (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<ListProfileMappings>
      Throws:
      ApiException - if fails to make API call
    • listProfileMappingsPaged

      public Iterable<ListProfileMappings> listProfileMappingsPaged(String after, Integer limit, String sourceId, String targetId)
      List all profile mappings (Paginated) Lists all profile mappings in your org with [pagination](https://developer.okta.com/docs/api/#pagination). You can return a subset of profile mappings that match a supported `sourceId` and/or `targetId`. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the Link header contains a `next` link that you should treat as an opaque value (follow it, don't parse it). See [Link Header](https://developer.okta.com/docs/api/#link-header). The response is a collection of profile mappings that include a subset of the profile mapping object's parameters. The profile mapping object describes the properties mapping between an Okta user and an app user profile using [JSON Schema Draft 4](https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-04). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      after - Mapping `id` that specifies the pagination cursor for the next page of mappings (optional)
      limit - Specifies the number of results per page (optional, default to 20)
      sourceId - The user type or app instance ID that acts as the source of expressions in a mapping. If this parameter is included, all returned mappings have this as their `source.id`. (optional)
      targetId - The user type or app instance ID that acts as the target of expressions in a mapping. If this parameter is included, all returned mappings have this as their `target.id`. (optional)
      Returns:
      Iterable<ListProfileMappings> lazy iterable over all pages
    • listProfileMappingsPaged

      public Iterable<ListProfileMappings> listProfileMappingsPaged(String after, Integer limit, String sourceId, String targetId, Map<String,String> additionalHeaders)
      List all profile mappings (Paginated with additional headers) Lists all profile mappings in your org with [pagination](https://developer.okta.com/docs/api/#pagination). You can return a subset of profile mappings that match a supported `sourceId` and/or `targetId`. The results are [paginated](/#pagination) according to the `limit` parameter. If there are multiple pages of results, the Link header contains a `next` link that you should treat as an opaque value (follow it, don't parse it). See [Link Header](https://developer.okta.com/docs/api/#link-header). The response is a collection of profile mappings that include a subset of the profile mapping object's parameters. The profile mapping object describes the properties mapping between an Okta user and an app user profile using [JSON Schema Draft 4](https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-04). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      after - Mapping `id` that specifies the pagination cursor for the next page of mappings (optional)
      limit - Specifies the number of results per page (optional, default to 20)
      sourceId - The user type or app instance ID that acts as the source of expressions in a mapping. If this parameter is included, all returned mappings have this as their `source.id`. (optional)
      targetId - The user type or app instance ID that acts as the target of expressions in a mapping. If this parameter is included, all returned mappings have this as their `target.id`. (optional)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<ListProfileMappings> lazy iterable over all pages
    • updateProfileMapping

      public ProfileMapping updateProfileMapping(String mappingId, ProfileMappingRequest profileMapping) throws ApiException
      Update a profile mapping Updates an existing profile mapping by adding, updating, or removing one or many property mappings
      Parameters:
      mappingId - `id` of the Mapping (required)
      profileMapping - (required)
      Returns:
      ProfileMapping
      Throws:
      ApiException - if fails to make API call
    • updateProfileMapping

      public ProfileMapping updateProfileMapping(String mappingId, ProfileMappingRequest profileMapping, Map<String,String> additionalHeaders) throws ApiException
      Update a profile mapping Updates an existing profile mapping by adding, updating, or removing one or many property mappings
      Parameters:
      mappingId - `id` of the Mapping (required)
      profileMapping - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      ProfileMapping
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()