How can I select specific attributes returned from a data block

In my config I query the object_id attribute for azuread_user, on average this data block returns ~55 lines of attributes that are not needed per user. This is a lot of unnecessary content in my state file.

I am curious, is there a way to specify the attributes you would like returned?

(Terraform Registry)

No, there’s no way to do that, sadly.

It’s quite irritating that Terraform doesn’t provide a way to omit data sources from the state file, as the ability to re-use data source data from the state was removed in Terraform 0.13, so now they serve no purpose other than enabling debugging.