> For the complete documentation index, see [llms.txt](https://docs.itsaffinity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.itsaffinity.com/product-guides/authenticating/okta-integration/custom-okta-fields.md).

# 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="/files/mT20JboeKfZTr8MwmpAu" 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="/files/9Iww52kjIJXVfRJYgAj2" 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.itsaffinity.com/product-guides/authenticating/okta-integration/custom-okta-fields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
