Suppose i create a new object called "XXXX". Now profile called "AAAA" doesn't have read, create, edit permission on it.
Q1: What would happen if I create a record of object "XXX" and share it with user which has profile "AAAA" and give him "Edit" permission on the record? Would user be able to see the record or edit the record? please qualify your answer.
Q2: Can anybody explain in what order access on record or object is granted in terms of OWD, Sharing rule, Role and profile?
Q3: If i set OWD setting as Public Read/Edit on Object "XXXX" but profile "AAAA" don't have read, create and edit permission on Object "XXXX" then the user who owns profile "AAAA" would be able to see and edit the records of object "XXXX"?
Q4: What would happen if profile "AAAA" has only Read permission on Object "XXXX" then user who owns profile "AAAA" would be able to see and edit ALL the records of object "XXXX"?
Q5: In order to work out OWD setting, at least profile must have Read permission on that particular object?
Q6: The user who is higher role in hierarchy would get owner permission on the records created by user who are lower in the roles means he can edit and delete the record as well. Is that correct?