> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Dayforce with Basic Authentication – StackOne Hub

> Link a Dayforce account in the StackOne Hub using Basic Authentication. End-user guide to authorize the integration and start using Dayforce actions.

> [!WARNING]
>
> Production setup requires System Administrator access to your Dayforce tenant to create a Web Services role and user. To test the integration without a live tenant, you can use shared sample credentials instead — see the last (Optional: Get Sample credentials for testing) step.

## Sign in to Dayforce

The connector needs four values — **Host**, **Client Namespace**, **Username**, and **Password**. Your **Username** and **Password** come from a dedicated Web Services user you create; **Host** and **Client Namespace** identify your tenant. All steps below are performed by a System Administrator using your existing Dayforce sign-in, provided by your organization — not the Web Services account you create below.

**1. Open the Dayforce login page**

Go to \[[https://www.dayforcehcm.com/mydayforce/login.aspx](https://www.dayforcehcm.com/mydayforce/login.aspx)]\([https://www.dayforcehcm.com/mydayforce/login.aspx](https://www.dayforcehcm.com/mydayforce/login.aspx)).

![Dayforce sign-in page at mydayforce/login.aspx](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-sign-in.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=97cf35d6bcbe5f5f9bcf8378c6e36e72)

**2. Enter your Company ID**

Enter your **Company ID**, then click **Continue to username**.

<ul>
  <li>Your Company ID is your Dayforce tenant identifier — the same value as the **Client Namespace** you collect later (found in **Company** > **Settings** > **General**).</li>
  <li>It is assigned when your organization is provisioned; if you do not know it, your organization's Dayforce administrator can provide it.</li>
</ul>

**3. Enter your username and password**

Enter your Dayforce username and password to sign in.

<ul>
  <li>These are your own existing Dayforce account credentials, not the Web Services account you create below.</li>
  <li>If you do not have a Dayforce login or System Administrator access, request it from your organization's Dayforce administrator.</li>
</ul>

## Get your Username and Password

Your **Username** and **Password** are a dedicated Web Services user account. Create a role scoped to the actions you use, then create the user and assign that role. Enable only what is required — granting more access than necessary is a security risk; never reuse an employee or admin account.

**1. Name the role**

Go to **System Admin** > **Roles** and create a new role. On the **General** tab, give it a unique **Name** and **Reference Code** (avoid spaces and special characters), and attach your Web Services **Password Policy**.

<ul>
  <li>Do not rename the role once it is used by the integration — this can break the connection.</li>
</ul>

**2. Enable features**

On the **Features** tab, expand **HCM Anywhere** > **Web Services** and enable only the sub-features this connector's actions need.

<ul>
  <li>**read/get** (Read Data) — required for all read actions.</li>
  <li>**post/insert** and **patch/update** — required to create and update: employees, addresses, contacts, emergency contacts, employment statuses, work assignments, departments, org units, positions, jobs, punches, time off, and schedules.</li>
  <li>**delete** — required only for deleting punches.</li>
</ul>

**3. Grant data authorizations**

On the **Authorizations** tab, select only the authorizations the integration needs. Each entity offers four rights — always include **Can Read** alongside any write right.

<ul>
  <li>**Can Read** — read the entities below.</li>
  <li>**Can Create** / **Can Update** / **Can Delete** — add for the entities you write to.</li>
  <li>Entities: Employee Contact Information (Business + Personal), Employee Key Information, Employee Personal Information, Employee Financial / Pay Information, Employee Status Information, Employee Work Assignment (Primary + Secondary), Employee Properties (custom fields), and User Information.</li>
</ul>

**4. Set Web Services field-level access**

On the **Web Services Field-Level Access** tab, configure which fields are returned for read calls. Expand **RESTful Services** > **Human Resources** > **Employee**. Enable only the fields the integration needs — enabling every field is a security risk. To select a group, click the entity **name** (not its checkbox), then **Select All**.

<ul>
  <li>Enable **XRefCode** (required to return the employee identifier).</li>
  <li>Select the field groups this connector uses: Employee managers, Employment Statuses, EmployeeWorkAssignment, EmployeeCompensation, Contacts, Addresses, EmergencyContacts, Locations, and OrgUnitInfos — including their **EffectiveStart** and **EffectiveEnd** fields.</li>
  <li>Enable **Configuration** > **Location** (used by Departments, OrgUnits, Positions, and Jobs).</li>
  <li>Enable **Workforce Management** > **EmployeeTimeAwayFromWork** (Time Off), **EmployeePunches**, and **EmployeeSchedules**.</li>
  <li>Enable **EmployeePropertyValue** (custom fields).</li>
</ul>

**5. Create the user and assign the role**

Go to **System Admin** > **User** and create a new account. On the **Properties** tab, create and enable the account, then attach the role you built.

<ul>
  <li>**User Name**: a unique name (avoid spaces and special characters) — enter the same value in the connector **Username** field.</li>
  <li>Ensure the account is active/enabled.</li>
  <li>Set a **Password** that conforms to the role's password policy, then enter it in the connector **Password** field and store it securely.</li>
  <li>Assign the Web Services **role** and make it the user's default role — Dayforce evaluates features, authorizations, and field-level access against the default role.</li>
</ul>

**6. Grant location access**

On the user's **Location Access** tab, give access to only the locations (employee population) the integration needs. Avoid granting whole-organization access when a subset is enough.

<ul>
  <li>Add the location(s) covering the employees the integration must access, and check **Primary**.</li>
  <li>Set a **Start Date** (Dayforce recommends `1/1/1950`).</li>
</ul>

## Get your Host and Client Namespace

These two values identify your Dayforce tenant. A Dayforce API URL is built as `<scheme>://<host>/<service>/<namespace>/<version>/<resource>` — for example `https://test.dayforcehcm.com/Api/CompanyName/V1/Employees`.

**1. Find your Client Namespace**

The Client Namespace (your CompanyId) identifies your Dayforce tenant.

<ul>
  <li>Go to **Company** > **Settings** > **General** and copy the **Client Namespace** value.</li>
  <li>It also appears in your API URL — example: in `https://usconfig261.dayforcehcm.com/Api/acmecorp/V1/...` the namespace is `acmecorp`.</li>
</ul>

**2. Find your Host**

Your host is the subdomain only — the connector appends `.dayforcehcm.com` automatically, so do not include it. Because Dayforce assigns each tenant to a specific data center, confirm the exact host rather than guessing.

<ul>
  <li>Open `https://www.dayforcehcm.com/Api/{clientNamespace}/V1/ClientMetadata` in a browser (replace `{clientNamespace}` with your namespace). The returned `ServiceUri` contains your tenant's real base URL.</li>
  <li>Take the subdomain before `.dayforcehcm.com` from that `ServiceUri`.</li>
  <li>Example: if your `ServiceUri` is `https://ustest261-services.dayforcehcm.com/...`, your host is `ustest261-services`.</li>
</ul>

## Optional: Get Sample credentials for testing

To try the connector without a live tenant, use the shared Sample credentials from the Dayforce Developer Portal instead of your own tenant. Only the **Sample** environment provides shared credentials — every other environment requires the Web Services user above.

**1. Open Edit Your Profile**

Sign in to the [Dayforce Developer Network](https://developers.dayforce.com), then select your account name in the top-right corner and choose **Edit Your Profile**.

![Developer Network Home page with the account menu open showing Edit Your Profile](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-home-page.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=0ca875a0a0a723e61e37c8a49fd2fa23)

**2. Set the environment to Sample**

On the **Edit Your Profile** page, ensure the environment is set to Sample.

<ul>
  <li>If the **Environment** is already set to **Sample**, no changes are needed — skip to the next step.</li>
  <li>Otherwise, open the **Environment** dropdown, choose **Sample**, and click **Save**.</li>
</ul>

![Developer Portal Environment dropdown with Sample selected](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-developer-portal-environment.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=ba4cf0fa09ac69f991a3bc1e416826f8)

**3. Open the GET Employees request page**

In the left-hand navigation, expand **API Explorer** > **Employee** and open **GET Employees**.

![API Explorer side navigation expanded to API Explorer > Employee > GET Employees](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-side-navigation.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=c07df47f1ae56ff2dec2702fc061dc9a)

**4. Copy the sample Username and Password**

On the **GET Employees** page, find the **Sample environment call parameters** box, which lists the shared Web Services credentials. These are both your connector **Username** and **Password** and the credentials you enter in the next steps.

<ul>
  <li>Copy the **Username** and **Password** listed in the box (they work only in the Sample environment).</li>
  <li>You will enter these in StackOne Hub's **Username** and **Password** fields when linking your Dayforce account.</li>
</ul>

![API Explorer showing the sample Web Services username and password](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-sample-credentials.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=2d68237ab05fe892a4059d2033d622f5)

**5. Click Try it out**

Expand the **GET** method, then click **Try it out** to enable the request form.

![GET Employees request with the Try it out button highlighted](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-try-request.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=71c2a2d893b5d031362028cc919c2bd5)

**6. Execute the request**

Click **Execute** to send the request.

![GET Employees request with the Execute button and Responses](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-execute-request.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=0dca2b36aaad17021cccd6e68c712407)

**7. Sign in when prompted**

The first time you execute a request — if you are not already authenticated — your browser shows a **Sign in** popup. Enter the sample **Username** and **Password** from the call parameters box and click **Sign in**.

![Browser Basic authentication popup asking for the Dayforce username and password](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-username-pwd-popup.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=26ae34671282541be6ff3d127ee5879e)

**8. Find the Host and Client Namespace**

After the request runs, read the Sample **Host** and **Client Namespace** from the **Request URL** under Responses (they are also shown on the Developer Network [**Home** page](https://developers.dayforce.com/Build/Home.aspx)). Dayforce API URLs follow the format `https://host/Api/<clientNamespace>/V1/...`, so both values can be read directly from the Request URL.

<ul>
  <li>**Host**: the subdomain before `.dayforcehcm.com` in the URL (e.g. `ustest261-services`). The subdomain rotates, so read it from the URL rather than hardcoding it.</li>
  <li>**Client Namespace**: the path segment after `/Api/` (`ddn` for Sample).</li>
  <li>You will enter these in StackOne Hub's **Host** and **Client Namespace** fields when linking your Dayforce account.</li>
</ul>

![API Explorer request URL showing the sample host and ddn client namespace](https://mintcdn.com/stackone-60/W1J7Gt8yrPa9cNRK/connectors/dayforce/images/custom-config-sample-api-request.png?fit=max\&auto=format\&n=W1J7Gt8yrPa9cNRK\&q=85\&s=69ff4e00c0cebb92074864200a2b2d01)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.