---
title: Configuring policy contract attribute sources and user lookup
description: You can optionally set up datastore queries to supplement values returned from the policy contract attribute source.
component: pingfederate
version: 13.1
page_id: pingfederate:administrators_reference_guide:help_oauthapc2targetmappingtasklet_oauthsource2targetattributesourcesstate
canonical_url: https://docs.pingidentity.com/pingfederate/13.1/administrators_reference_guide/help_oauthapc2targetmappingtasklet_oauthsource2targetattributesourcesstate.html
llms_txt: https://docs.pingidentity.com/pingfederate/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: July 5, 2022
section_ids:
  steps: Steps
  choose-from: Choose from:
---

# Configuring policy contract attribute sources and user lookup

You can optionally set up datastore queries to supplement values returned from the policy contract attribute source.

## Steps

1. Go to **Authentication > OAuth > Authentication Policy Grant Mapping** and select your mapping, or click **Add Mapping**.

2. On the **Attribute Sources & User Lookup** tab, perform one of the following actions.

   ### Choose from:

   * To set up datastore queries, click **Add Attribute Source** and follow the steps to complete the setup. For configuration steps, see [Datastore query configuration](pf_datastore_query_config.html).

   * To skip this configuration, click **Next**.
