You need to sign in to do that
Don't have an account?
Lakshya Kanchan
Scenario to check if org has Shield Encryption enabled
Hi
I have a business requirement wherein I need to check whether the org has Shield Encryption enabled or, not.
I need to have some apex code, SOQL query or, SFDX CLI command to check if the feature is being used in the org or, not.
Regards,
Lakshya
I have a business requirement wherein I need to check whether the org has Shield Encryption enabled or, not.
I need to have some apex code, SOQL query or, SFDX CLI command to check if the feature is being used in the org or, not.
Regards,
Lakshya
This question was posted earlier https://salesforce.stackexchange.com/questions/118215/how-to-check-for-platform-encryption
Try
If this information helps, please mark the answer as best. Thank you
Thanks for the response.
But the issue is that we want to have it checked as a general way.
With the approach you are suggesting, we need to check it for all fields of all the objects, which will make it lenghty.
Do we have any optimal approach for it?
Regards,
Lakshya
>>In non-Dev edition orgs wherein you have purchased license, you can check the Setup menu and see encryption options available (Encryption Policy , Advanced settings ).These are enabled in dev editions orgs by default.
>> You could query the TenantUsageEntitlement object or the TenantSecret object. These have an entry when the shield is enabled in your org.
>> You can reach out to your account executive for confirmation on enablement.
If this information helps, please mark the answer as best. Thank you
Thanks for the update.
The code for checking encryption in every field of every object seems time consuming, so isnt looking suitable.
The query you did on TenantUsageEntitlement is also giving result even if the client is using some other feature of Shield Encryption like Event API Monitoring and not the Field Encryption feature.
Are there any other options available to check this?
Awaiting your response.
Regards,
Lakshya