# Computed Type list showing change when not setting

**URL:** <https://discuss.hashicorp.com/t/computed-type-list-showing-change-when-not-setting/63863>\
**Category:** Plugin Development\
**Created:** [March 20, 2024, 6:24pm UTC](https://discuss.hashicorp.com/t/computed-type-list-showing-change-when-not-setting/63863 "2024-03-20T18:24:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramuklawjju](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@ramuklawjju](https://discuss.hashicorp.com/u/ramuklawjju)\
**Post date:** [March 20, 2024, 6:24pm UTC](https://discuss.hashicorp.com/t/computed-type-list-showing-change-when-not-setting/63863/1 "2024-03-20T18:24:41Z")

</div>

I have a schema like this

```auto
			"groups": {
				Type: schema.TypeList,
				Computed: true,
				Description: "The group details",
				Elem: &schema.Resource{
					Schema: map[string]*schema.Schema{
						"name": {
							Type: schema.TypeString,
							Computed: true,
							Description: "The name of the group",
						},

						"url": {
							Type: schema.TypeString,
							Computed: true,
							Description: "The url of the group",
						},
					},
				},
			},

```

And in the read method

```auto
			if res.groups != nil {
				groupList := make([]map[string]interface{}, 0)
				for _, group := range res.groups {
					currentgrp := map[string]interface{}{}
					currentgrp["name"] = *group.Name
					currentgrp["url"] = *group.Url
					groupList = append(groupList, currentgrp)
				}
				d.Set("groups", groupList)
			}

```

when the field is empty,

I am getting a change on terraform plan

```auto
      + groups = (known after apply)
        # (19 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

```

---

<div class="post-metadata">

**Author:** ![ramuklawjju](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@ramuklawjju](https://discuss.hashicorp.com/u/ramuklawjju)\
**Post date:** [April 3, 2024, 4:09am UTC](https://discuss.hashicorp.com/t/computed-type-list-showing-change-when-not-setting/63863/2 "2024-04-03T04:09:29Z")

</div>

@jbardin @apparentlymart

---

<div class="post-metadata">

**Author:** ![jbardin](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jbardin/32/3325_2.png) [@jbardin](https://discuss.hashicorp.com/u/jbardin)\
**Post date:** [April 5, 2024, 1:40pm UTC](https://discuss.hashicorp.com/t/computed-type-list-showing-change-when-not-setting/63863/3 "2024-04-05T13:40:24Z")

</div>

Hi @ramuklawjju,

The status of `known after apply` would not directly be because of the `Read` method, an attribute being marked as unknown is only something that can be done during the plan after the resource has been refreshed.

This looks like an SDK derived schema, are you adding any other `CustomizeDiff` options? Someone who works more closely with providers may have a guess, but I would need a more complete example to be able to tell what’s going on.
