Description
[lightning/uiGraphQLApi] : When querying a CustomSettings, error when CustomSetting Access is on a permissionSet in a permissionSetGroup.
Steps to Reproduce
- Create a CustomSetting : TestCSErrorInLWC__c
- Give access to this customsetting in a permissionSet.
- Put this permissionSet into a PermissionSetGroup.
- Give a User access to the permissionSetGroup.
Expected Results
When you launch the query in the lwc component you should have access to the data of the custom setting.
Actual Results
Error is thrown : Validation error (FieldUndefined@[uiapi/query/TestCSErrorInLWC__c]) : Field 'TestCSErrorInLWC__c' in type 'RecordQuery' is undefined
Browsers Affected
Chrome
Possible Solution
As a workaround, we can add the permissionSet directly to the user (without the permissionSetGroup), or add the customsetting access directly to the profile.
Code snippet
Error
