# Mapping

Before you can use the **Login with** your identity provider button, you need to map the identity provider data fields to your Shopware fields.

This is important for Shopware, because it has some required fields that are necessary for creating a customer and do a login. There are required fields like like e-mail, firstname, lastname and address data. Depending on teh identity provider and only some of those fields are available.

If you choose one of our drafts for you SSO login button entry, the mapping is already pre-defined.

For expert users: You can change the mapping and add additional fields by clicking the **Add** button.

<figure><img src="/files/TEOOZd0m198rQDbqs8qg" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you are not sure if there is a required value available use the **Default value** setting. In that case the value is filled by this default value as a fallback.

If a variable doesn't exist at identity provider site, you can also leave the **SSO Field** empty.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.premsoft.de/en/plugins/single-sign-on-sso/admin-dashboard/mapping.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
