---
schema_version: "1"
id: bebe29287ce76773a8f2420736a94b87fd1c7d2a95808e408bf5df48d11cf221
title: Interface Org
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforce-functions/functions/guide/javasdk/interfaces/java-org.md
canonical_url: https://developer.salesforce.com/docs/platform/functions/guide/java-org.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: db26ca56663f6d33ce756173a0a4031108032c711d1318eb6a024eb1bc4ff61b
products:
  - Salesforce Functions
---
# Interface Org

------------------------------------------------------------------------

public interface Org

Holds information about the invoking Salesforce organization and user.

## Method Summary

| Modifier and Type  | Method            | Description                                                                       |
| ------------------ | ----------------- | --------------------------------------------------------------------------------- |
| `java.lang.String` | `getApiVersion()` | Returns the API version the Salesforce organization is currently using.           |
| `java.net.URI`     | `getBaseUrl()`    | Returns the base URL of the Salesforce organization.                              |
| `DataApi`          | `getDataApi()`    | Returns an initialized data API client instance to interact with data in the org. |
| `java.net.URI`     | `getDomainUrl()`  | Returns the domain URL of the Salesforce organization.                            |
| `java.lang.String` | `getId()`         | Returns the Salesforce organization ID.                                           |
| `User`             | `getUser()`       | Returns the currently logged in user.                                             |

## Method Details

### getId

\@Nonnull java.lang.String getId()

Returns the Salesforce organization ID.

Returns: The Salesforce organization ID.

### getBaseUrl

\@Nonnull java.net.URI getBaseUrl()

Returns the base URL of the Salesforce organization.

Returns: The base URL of the Salesforce organization.

### getDomainUrl

\@Nonnull java.net.URI getDomainUrl()

Returns the domain URL of the Salesforce organization.

Returns: The domain URL of the Salesforce organization.

### getApiVersion

\@Nonnull java.lang.String getApiVersion()

Returns the API version the Salesforce organization is currently using.

Returns: The API version the Salesforce organization is currently using.

### getDataApi

\@Nonnull DataApi getDataApi()

Returns an initialized data API client instance to interact with data in
the org.

Returns: An initialized data API client instance.

### getUser

\@Nonnull User getUser()

Returns the currently logged in user.

Returns: The currently logged in user.
