I'm trying to use the WireService to get fields for the current logged in user on a community/experience-site however the values for the fields I require are returning null. As you can see from the JSON contents returned from the WireService the fields do contain Email, Username, and Name (the fields I require) however no values are being returned. Do you know why the System fields are rendering values while specified fields are returning as blank? I wondered could it FLS on the User object but no FLS is available for the profile on standard fields.
Any tips on this would be appreciated. Thanks for your help.
{
"apiName": "User",
"childRelationships": {},
"fields": {
"Email": {
"displayValue": null,
"value": null
},
"Name": {
"displayValue": null,
"value": "Read Only"
},
"Username": {
"displayValue": null,
"value": null
}
},
"id": "0051700000AlCjRAAV",
"lastModifiedById": "0051700000Al0gdAAB",
"lastModifiedDate": "2021-10-20T10:56:23.000Z",
"recordTypeId": null,
"recordTypeInfo": null,
"systemModstamp": "2021-10-20T10:56:36.000Z"
}