Skip to main content
All CollectionsCompare and deploy metadataGuides on comparing and deploying specific metadata
How to deploy Custom metadata type access and custom settings access
How to deploy Custom metadata type access and custom settings access

How to retrieve and compare profile and permission set access for custom metadata types and custom setting definitions

Valerio Chang avatar
Written by Valerio Chang
Updated over 4 months ago

In Salesforce, you can grant read access to Custom metadata types and custom settings via profiles and/or permission sets.

You can read Salesforce's instructions on how to do this for Custom metadata types in Control Read Access to Custom Metadata Types.
โ€‹
And for custom settings check Grant Permissions on Custom Settings.

Example for a Profile:

The same principle follows for Permission Sets:

How to retrieve Custom metadata via 'Compare and deploy'

To retrieve Custom metadata types access, or custom setting definitions access for a profile, you need to include Profile and Custom object in your metadata filter before the comparison.

To retrieve custom metadata types access or custom setting definitions access for a permission set, you need to include Permission set in your metadata filter.

You could use Gearset's Default comparison filter for either of the above, as this pre-defined filter includes all these metadata types.

Where to find this metadata in the comparison results

You will find both the custom metadata type access and the custom setting access in the comparison results as part of the Profile or Permission set itself, rather than being separate line items.

They will be listed as <customMetadataTypeAccesses> and <customSettingAccesses> in the XML in the diff viewer in the bottom half of the screen.

In our Profile example:

In our Permission set example:

Note: The Profile or Permission set may appear twice in your Gearset comparison results, so make sure you find/select the one that has this access included.

Did this answer your question?