Skip to main content

Capabilities

ResourceSyncProvision
Users
Service accounts
User groups
Roles
Resource groups

Gather Harness credentials

Use a Harness service account API key token with account-scope read access to the RBAC surface. A personal API key token also works, but C1 recommends a dedicated service account for connector sync.
1
In Harness, create or select the service account that C1 will use.
2
Assign role bindings and resource groups that grant core_user_view, core_usergroup_view, core_serviceaccount_view, core_role_view, core_resourcegroup_view, and core_authsetting_view.
3
Create an API key and token for that service account.
4
Copy the token. Harness shows token values only at creation time.
5
Copy the Harness account identifier from the Harness UI URL.
6
Copy the Harness API base URL if you do not use Harness SaaS.

Configuration fields

FieldRequiredDescription
base-urlNoHarness NextGen API base URL. Defaults to https://app.harness.io for SaaS.
api-keyYesHarness API key token sent as x-api-key on each request.
account-idYesHarness account identifier sent as accountIdentifier on API calls.

Synced resource types

  • Users: Harness account users.
  • Service accounts: Harness service accounts.
  • User groups: user groups and group membership grants.
  • Roles: Harness roles and role assignment grants.
  • Resource groups: Harness resource groups used by role assignments.

Special notes

  • The connector targets the Harness NextGen platform API.
  • Harness SaaS uses https://app.harness.io. The connector authenticates with the Harness NextGen x-api-key header.
  • Role assignment grants can point to users, service accounts, or user groups.
  • Disabled role assignments are not emitted as grants.

Configure the Harness connector

Follow these instructions to use a built-in, no-code connector hosted by C1.
1
In C1, navigate to Integrations > Connectors and click Add connector.
2
Search for Harness and click Add.
3
Choose how to set up the new Harness connector.
4
Set the owner for this connector.
5
Click Next.
6
Find the Settings area of the page and click Edit.
7
Paste the Harness settings into the relevant fields:
  • Base URL: Optional Harness API base URL.
  • API key: Harness API key.
  • Account identifier: Harness account identifier.
8
Click Save.
9
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.
Done. Your Harness connector is now pulling access data into C1.