"customer" attribute not getting saved from admin magento 2 code example
Example: "customer" attribute not getting saved from admin magento 2
$customAttribute->addData([
'attribute_set_id' => $attributeSetId,
'attribute_group_id' => $attributeGroupId,
'used_in_forms' => ['adminhtml_customer', 'customer_account_edit']
]);