The query to the UserRecordAccess table is like this: SELECT RecordId, MaxAccessLevel, HasAllAccess, HasDeleteAccess, HasEditAccess, HasReadAccess, HasTransferAccess FROM UserRecordAccess where UserId = 'XXX' and RecordId = 'YYY'
We cannot query UserRecordAccess by its Id, we can only query it by current user Id and the target object's recordId.
I wonder if I need to query UserRecordAccess table in my LWC component, is there a way I can use wire service to get the UserRecordAccess data, I have the user Id and target object's recordId.
Seeing from here: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm
UserRecordAccess is not in the supported object list which could be accessed by uiApi
Does it mean I have to write an apex class to get the data I want and then access it in my LWC?