Verify user access to a record #inSalesforce

Verify user access to a record :


SELECT RecordId, MaxAccessLevel, HasAllAccess, HasDeleteAccess,HasEditAccess, HasTransferAccess, HasReadAccess FROM UserRecordAccess WHERE UserId = '0055g00000AYXXXXXX' AND RecordId = '0065g00000LmXXXXXX'

Comments