---
schema_version: "1"
id: e99393954ec97ecc5c7e7c23621bb44df22c1447c6e1c3a5ca9e345b7b97379d
title: InternalOrganizationUnit
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/sforce-api-objects-internalorganizationunit.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/sforce-api-objects-internalorganizationunit.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e8406ccf1b379d44c74a4d670a759d6febb0c11df0a141e256e3119bae0018f3
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# InternalOrganizationUnit

Represents an organization that an Employee belongs to. This object is available in API version 48.0 and later. In API version 49.0 and later, this object supports reports, criteria-based sharing rules, and history tracking, plus you can exclude individual fields from custom page layouts.

## Supported Calls

`create()`, `delete()`, `describeLayout()`, `describeSObjects()`, `getDeleted()`, `getUpdated()`, `query()`, `retrieve()`, `undelete()`, `update()`, `upsert()`

## Special Access Rules

To access this object, you have either a Workplace Command Center permission set license and the Provides access to Workplace Command Center features system permission, or the Employee Management and Employee User add-on licenses. This object is also available with the Referral Marketing license.

## Fields

|Field|Type|Properties|Description|
|-----|----|----------|-----------|
|Description|string|Create, Filter, Group, Nillable, Sort, Update|A description of the organization the Employee is working in.|
|LastReferencedDate|dateTime|Filter, Nillable, Sort|The timestamp for when the current user last viewed a record related to this record.|
|LastViewedDate|dateTime|Filter, Nillable, Sort|The timestamp for when the current user last viewed this record. If this value is null, this record might only have been referenced (LastReferencedDate) and not viewed.|
|OrganizationCode|string|Create, Filter, Group, idLookup, Sort, Update|Required. The code of the organization the Employee is working in.|
|OrganizationName|string|Create, Filter, Group, Nillable, Sort, Update|The name of the organization the Employee is working in.|
|OwnerId|reference|Create, Defaulted on create, Filter, Group, Sort, Update|The ID of the user who currently owns this record. Default value is the user logged in to the API to perform the create operation.|
|ParentOrganizationId|reference|Create, Filter, Group, Nillable, Sort, Update|A reference to the parent organization.|
|Type|picklist|Create, Filter, Group, Nillable, Restricted picklist, Sort, Update|Specifies whether the record is for an internal or an external organization. This field is available in API version 60.0 and later. Possible values are: <ul><li>`EXTERNAL_BUSINESS_UNIT`</li><li>`INTERNAL_ORGANIZATION`</li></ul>|

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

- InternalOrganizationUnitHistory (API version 49.0)

    - : History is available for tracked fields of the object.

 - InternalOrganizationUnitOwnerSharingRule

    - : Sharing rules are available for the object.

 - InternalOrganizationUnitShare (API version 49.0)

    - : Sharing is available for the object.



