function main(organizationId = 'YOUR_NUMERIC_ORG_ID') {
  // [START securitycenter_list_assets_with_filter]
  // Imports the Google Cloud client library.
  const {SecurityCenterClient} = require('@google-cloud/security-center');

  // Creates a new client.
  const client = new SecurityCenterClient();
  //  organizationId is the numeric ID of the organization.
  /*
   * TODO(developer): Uncomment the following lines
   */
  // const organizationId = "1234567777";
  const orgName = client.organizationPath(organizationId);

  // Call the API with automatic pagination.
  // You can also list assets in a project/ folder. To do so, modify the parent
  // value and filter condition.
  async function listFilteredAssets() {
    const [response] = await client.listAssets({
      parent: orgName,
      filter:
        'security_center_properties.resource_type="google.cloud.resourcemanager.Project"',
    });
    let count = 0;
    Array.from(response).forEach(result =>
      console.log(
        `${++count} ${result.asset.name} ${
          result.asset.securityCenterProperties.resourceName
        } ${result.stateChange}`
      )
    );
  }

  listFilteredAssets();
  // [END securitycenter_list_assets_with_filter]
}
Prints current project assets for the organization.