# Attribute sync on custom connector

**URL:** <https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745>\
**Category:** SHF Discussion and Questions\
**Tags:** saas-connector\
**Created:** [January 26, 2023, 6:39pm UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745 "2023-01-26T18:39:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![clstromgren](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/clstromgren/32/2284_2.png) [@clstromgren](https://developer.sailpoint.com/discuss/u/clstromgren)\
**Post date:** [January 26, 2023, 6:39pm UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745/1 "2023-01-26T18:39:35Z")

</div>

We are working on setting up a custom saas connector for aws and are in the process of configuring attribute sync. There seems to be some sort of mismatch (or maybe bug) on the configuration that we are having trouble working through. Here are the details, any help is appreciated.

The attributes are visible in the UI when we go to that page, but when selecting them we get an error on save:

 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/c/c9aed7a8bb01f773fe0c8555979192eddc4dfa26.png)

A GET on /beta/sources/2c918086814e69cd01816da8ab716d8a/attribute-sync-config returns

```json
{
    "attributes": [],
    "source": {
        "name": null,
        "id": "2c918086814e69cd01816da8ab716d8a",
        "type": "SOURCE"
    }
}

```

and doing a PUT with

```json
{
  "source": [
    {
      "type": "SOURCE",
      "id": "2c918086814e69cd01816da8ab716d8a",
      "name": "AWS IAM Identity Center"
    }
  ],
  "attributes": [
    {
      "name": "lastname",
      "displayName": "Last Name",
      "enabled": true,
      "target": "FamilyName"
    }
  ]
}

```

returns the below, even with the FamilyName being present in account schema

```json
{
    "messages": [
        {
            "locale": "en-US",
            "text": "A target account attribute \"FamilyName\" is missing from the sources account schema.",
            "localeOrigin": "REQUEST"
        },
        {
            "locale": "en-US",
            "text": "A target account attribute \"FamilyName\" is missing from the sources account schema.",
            "localeOrigin": "DEFAULT"
        }
    ],
    "detailCode": "400.1 Bad request content",
    "trackingId": "96db07fc294649a0b4ce43570087bf84"
}

```

The schema is here

```json
{
	"name": "AWS IAM Identity Center (new)",
	"commands": [
		"std:account:list",
		"std:account:read",
		"std:account:update",
		"std:test-connection",
		"std:entitlement:list"
	],
	"sourceConfig": [
		{
			"type": "menu",
			"label": "Configuration",
			"items": [
				{
					"type": "section",
					"sectionTitle": "Authentication",
					"sectionHelpMessage": "An AWS IAM User is needed to connect to your target Identity Store.",
					"items": [
						{
							"key": "accessKeyId",
							"label": "Access Key ID",
							"type": "text"
						},
						{
							"key": "secretAccessKey",
							"label": "Secret Access Key",
							"type": "secret"
						}
					]
				},
				{
					"type": "section",
					"sectionTitle": "Identity Store Config",
					"sectionHelpMessage": "Information about the Identity Store you are going to be managing.",
					"items": [
						{
							"key": "identityStoreId",
							"label": "Identity Store ID",
							"type": "text"
						},
						{
							"key": "region",
							"label": "AWS Region",
							"type": "text"
						}
					]
				}
			]
		}
	],
	"accountSchema":{
		"displayAttribute": "UserName",
		"identityAttribute": "UserName",
		"attributes":[
			{
				"name": "UserName",
				"type": "string",
				"description": "User Name (upn)"
			},
			{
				"name": "UserId",
				"type": "string",
				"description": "Unique Identifier (guid)"
			},
			{
				"name": "Formatted",
				"type": "string",
				"description": "Friendly Formatted Account Name"
			},
			{
				"name": "FamilyName",
				"type": "string",
				"description": "Last Name"
			},
			{
				"name": "GivenName",
				"type": "string",
				"description": "First Name"
			},
			{
				"name": "MiddleName",
				"type": "string",
				"description": "Middle Name"
			},
			{
				"name": "DisplayName",
				"type": "string",
				"description": "Display Name"
			},
			{
				"name": "NickName",
				"type": "string",
				"description": "First Name"
			},
			{
				"name": "Email",
				"type": "string",
				"description": "Primary Email Address"
			},
			{
				"name": "PreferredLanguage",
				"type": "string",
				"description": "Preferred Language"
			},
			{
				"name": "Locale",
				"type": "string",
				"description": "Country Code"
			},
			{
				"name": "entitlements",
				"type": "string",
				"entitlement": true,
				"managed": true,
				"multi": true,
				"description": "The AWS IAM Identity Center SSO groups that the account belongs to"
			}
		]
	},
	"entitlementSchemas": [
		{
			"type": "group",
			"displayAttribute": "DisplayName",
			"identityAttribute": "GroupId",
			"attributes": [
				{
					"name": "GroupId",
					"type": "string",
					"description": "Unique Identifier (guid)"
				},
				{
					"name": "displayName",
					"type": "string",
					"description": "Display Name"
				},
				{
					"name": "description",
					"type": "string",
					"description": "Description"
				}
			]
		}
	],
	"accountCreateTemplate": {
		"fields": [
			{
				"key": "UserName",
				"label": "UserName",
				"type": "string",
				"required": true,
				"initialValue": {
					"type": "identityAttribute",
					"attributes": {
						"name": "email"
					}
				}
			},
			{
				"key": "FamilyName",
				"label": "FamilyName",
				"type": "string",
				"required": false,
				"initialValue": {
					"type": "identityAttribute",
					"attributes": {
						"name": "lastname"
					}
				}
			},
			{
				"key": "GivenName",
				"label": "GivenName",
				"type": "string",
				"required": true,
				"initialValue": {
					"type": "identityAttribute",
					"attributes": {
						"name": "firstname"
					}
				}
			},
			{
				"key": "DisplayName",
				"label": "DisplayName",
				"type": "string",
				"required": false,
				"initialValue": {
					"type": "identityAttribute",
					"attributes": {
						"name": "displayName"
					}
				}
			},
			{
				"key": "Email",
				"label": "Email",
				"type": "string",
				"required": true,
				"initialValue": {
					"type": "identityAttribute",
					"attributes": {
						"name": "email"
					}
				}
			},
			{
				"key": "PreferredLanguage",
				"label": "PreferredLanguage",
				"type": "string",
				"required": false,
				"initialValue": {
					"type": "identityAttribute",
					"attributes": {
						"name": ""
					}
				}
			},
			{
				"key": "Locale",
				"label": "Locale",
				"type": "string",
				"required": false,
				"initialValue": {
					"type": "static",
					"attributes": {
						"value": "en-US"
					}
				}
			}
		]
	}
}

```

---

<div class="post-metadata">

**Author:** ![clstromgren](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/clstromgren/32/2284_2.png) [@clstromgren](https://developer.sailpoint.com/discuss/u/clstromgren)\
**Post date:** [January 26, 2023, 6:41pm UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745/2 "2023-01-26T18:41:25Z")

</div>

- @matt-lee for notifications

---

<div class="post-metadata">

**Author:** ![clstromgren](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/clstromgren/32/2284_2.png) [@clstromgren](https://developer.sailpoint.com/discuss/u/clstromgren)\
**Post date:** [January 31, 2023, 4:11pm UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745/4 "2023-01-31T16:11:49Z")

</div>

Any feedback on this?

---

<div class="post-metadata">

**Author:** ![M\_rtenH](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/m_rtenh/32/429_2.png) [@M\_rtenH](https://developer.sailpoint.com/discuss/u/M_rtenH)\
**Post date:** [February 1, 2023, 8:44am UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745/5 "2023-02-01T08:44:11Z")

</div>

Any chance you’ve edited either the identity attributes or account attributes after configuring attribute sync? I’ve seen that cause issues before

The account attribute “PreferredLanguage” being visible in attribute sync UI but not being mapped to any identity attribute could also cause issues

---

<div class="post-metadata">

**Author:** ![philip-ellis](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/philip-ellis/32/502_2.png) [@philip-ellis](https://developer.sailpoint.com/discuss/u/philip-ellis)\
**Post date:** [February 1, 2023, 2:06pm UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745/6 "2023-02-01T14:06:40Z")

</div>

Hi Caleb, we are looking into this, and I will let you know if we find anything that can help point you into the right direction.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:24pm UTC](https://developer.sailpoint.com/discuss/t/attribute-sync-on-custom-connector/7745/7 "2023-07-19T14:24:09Z")

</div>


