How to find the company ID or portal instance ID for a Liferay Portal environment

Overview

Liferay Portal uses many internal (Spring) services and equivalent web services (SOAP, Rest/JSON) to implement many functions.

Many of these services require passing a company ID or portal instance ID parameter during the local or remote method invokation.

A common questions is ... where do I find the company ID or portal instance ID ?

The follow steps may be of assistance.

Steps

The company ID is synonymous with the portal instance ID. The terminology is historical.

To find the company ID (aka. portal instance ID), follow these steps:

1/ Sign into portal as admin user

2/ Navigation the Portal Instances admin page

Navigation Path is "Docklbar > Admin > Control Panel > (Configuration) Portal Instances

3/ Review first column  "Instance ID"

The instance ID is the company ID.