Skip to content

[lightning/uiGraphQLApi] : When querying a CustomSettings, error when CustomSetting Access is on a permissionSet in a permissionSetGroup. #5541

@elliot41

Description

@elliot41

Description

[lightning/uiGraphQLApi] : When querying a CustomSettings, error when CustomSetting Access is on a permissionSet in a permissionSetGroup.

Steps to Reproduce

  1. Create a CustomSetting : TestCSErrorInLWC__c
  2. Give access to this customsetting in a permissionSet.
  3. Put this permissionSet into a PermissionSetGroup.
  4. 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

Image

Error

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions