フィールドセキュリティーのまとめ

[まとめページに戻る](https://qiita.com/Keiji_otsubo/items/60afc2a8d211b6f7d89f)
[まとめA～M](https://qiita.com/Keiji_otsubo/items/f3ddedee6793bf1576f8)


# ヘルプ
+ [Field Level Security in salesforce](https://www.salesforcetutorial.com/field-level-security-salesforce-2/)
+ [Set Field-Level Security for a Field on All Profiles](https://help.salesforce.com/s/articleView?id=sf.users_fields_fls.htm&type=5)

+ [データローダーを使用した Salesforce フィールドレベルのセキュリティとオブジェクト アクセスのエクスポート](https://www.machinereadablepeople.net/home/2020/4/4/exporting-salesforce-field-level-security-and-object-access-with-the-data-loader)

# アカウント オブジェクトのカスタム フィールド Confidential_Info__c にフィールド レベルのセキュリティを設定しようとしていますが、Sales プロファイルに対して「読み取り専用」に設定した後でも、そのプロファイルのユーザーは編集できます。原因は何でしょうか。

+ [I'm trying to set field-level security on a custom field Confidential_Info__c in the Account object](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007cmA3x)

:::note
Check if there are any permission sets assigned to those users that grant "Edit" access to the Confidential_Info__c field. Also, verify if those users have "Modify All Data" or "View All Data" permissions, which can override field-level security settings 

Confidential_Info__c フィールドへの「編集」アクセスを許可する権限セットがユーザーに付与されているかどうかを確認します。また、これらのユーザーに「すべてのデータの編集」または「すべてのデータの表示」権限があるかどうかを確認します。これらの権限は、フィールドレベルのセキュリティ設定を上書きする可能性があります。 
:::

# Field level security is not displaying Profiles

+ [Field level security is not displaying Profiles](https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000O60MUSAZ)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c7c61138-b4f1-4511-b604-75fe43ec8321.png)

:::note
2. Now when you create a field, list of permission sets will appear instead of profiles.

#1MinuteTip #SalesforceWinter23 You can now set Field Level Security (FLS) on Permission Sets when creating a field. This feature is also available when you set field-level security on a field or change the field type on a field.

1. Navigate to Setup -> Users -> User Management Settings & Enable “Field-Level Security for Permission Sets during Field Creation (Beta)”

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/c711e968-7aa5-7247-2c4b-c941508645f8.png)

2. Now when you create a field, list of permission sets will appear instead of profiles.

SalesforceWinter23 – Set Field-Level Security (FLS) on Permission Sets
https://www.asagarwal.com/salesforcewinter23-set-field-level-security-fls-on-permission-sets/
:::


+ [Field-Level Security Issue](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007FVFVW)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/cb746c8e-0449-0068-0591-16c64628c95c.png)

:::note
Turn off the following settings

SETUP --> User Management Settings --> Field-Level Security for Permission Sets during Field Creation
:::

# 設定できない

+ [I have System admin profile and Iam not able to set field level security.](https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007ZB1jp)

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/a083adb3-d1e1-5709-99f9-09a7fbc51689.png)


:::note
If Required is checked, I don't think you can edit field level security.

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/4dd7c0cd-600f-735c-0a8e-aee6cb819ff7.png)
:::