# Custom Okta Fields

In order to have your Okta account send `startDate`and `anniversaryDate`details to affinity, you will need to create a custom field in Okta. This is an optional additional setting. If you do not set this up, the start date and anniversary date will default to the date that the learner is first imported into Affinity from Okta.

### 1. Go to Profile Editor in Okta ⇒ Directory

<figure><img src="https://4002322345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPBRTajgfHQ6Xtnedn3oe%2Fuploads%2FlVR8vWxwUuUVXRKaDwV5%2FScreenshot%202025-01-29%20at%203.47.21%E2%80%AFPM.png?alt=media&#x26;token=6adfbde9-e0d2-4c4b-8d54-504cd506051d" alt=""><figcaption></figcaption></figure>

### 2. Click on "Add Attribute"

Enter the information as follows:

* Display name: anniversaryDate
* Variable name: anniversaryDate
* External name: anniversaryDate
* External namespace: urn:ietf:params:scim:schemas:extension:enterprise:2.0:User
* Attribute Required: Yes
* Attribute Type: Personal
* Description: Anniversary Date

Leave other settings the same.

<figure><img src="https://4002322345-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPBRTajgfHQ6Xtnedn3oe%2Fuploads%2FyVWl3pqeOLyx6fgZT2kC%2FScreenshot%202025-01-29%20at%203.50.11%E2%80%AFPM.png?alt=media&#x26;token=f4456437-f8fe-4c30-a664-34ba1511bd21" alt=""><figcaption></figcaption></figure>

Click save to finish. Then you can do the exact same for \`startDate\`.

### 3. Edit your users to have the right data in these fields

The format you should use is either MM/DD/YYYY or YYYY-MM-DD to reflect appropriate start and anniversary dates.

You can edit the users profile or the application specific profile and force a sync to have these updated.
