UserFieldAccess
Represents the field-level security (FLS) for a specific user on a specific field, such as whether the user can read, create, or update the field.
ビュー固有の情報
このビューからデータを取得するには、DurableId の値が必要です。この値を取得するには:- オブジェクト名またはフィールド名でフィルタリングして FieldDefinition ビューをクエリし、関連する DurableId キーを取得します。以下の例では、Account のすべてのフィールドを一覧表示します:
SELECT DeveloperName, DurableId FROM FieldDefinition WHERE EntityDefinitionId = 'Account'
- 監査対象ユーザーの Id を取得するために、標準の User オブジェクトをクエリします:
SELECT Id FROM User
- FieldDefinition の DurableId と User の Id をピリオドで連結して(例:FieldDefinition.DurableId + . + User.Id)、UserFieldAccess をクエリします。
例えば、FieldDefinition の DurableId が 'MyAccount'、User の Id が '0055Y00000AbCdEFG' の場合、クエリのフィルタは次のとおりです:
SELECT * FROM UserFieldAccess WHERE DurableId = 'MyAccount.0055Y00000AbCdEFG'
Columns
| Name | Type | References | Description |
| Id | String | Unique identifier for the record. | |
| DurableId | String | A composite key combining the field's DurableId (from FieldDefinition) and the User Id (for example, MyAccount.0055Y00000AbCdEF). | |
| UserId | String |
User.Id | Id of the User associated with this record. |
| IsUpdatable | Bool | Indicates whether the record has the Updatable characteristic. | |
| IsCreatable | Bool | Indicates whether the record has the Creatable characteristic. | |
| IsAccessible | Bool | Indicates whether the record has the Accessible characteristic. | |
| EntityDefinitionId | String | Id of the EntityDefinition associated with this record. | |
| FieldDefinitionId | String | Id of the FieldDefinition associated with this record. |
Pseudocolumns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるデータを詳細に制御することができます。
| Name | Type | Description | |
| SOQL | String | Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. |