Tag: UserRecordAccess

[Salesforce / Apex] Can I find out if the current user has access to a record?

Yes you can! And this is quite simple! Query the UserRecordAccess object to have instant access to the following informations about a record and an user: HasDeleteAccess: user has delete access on the record HasEditAccess: user has edit access on the record HasTransferAccess: user has transfer access on the record HasReadAccess: user has read access […]