Is there a way to set up a sharing rule that shares a record with a user who is specified in a user field on the record being shared?

1 Answer 1



You can consider using Apex Sharing for your use case.

When a record is created or updated with a value in the user field, then using a trigger on your object, you can create the sharing with the user being populated on the record.

the reference link has some sample code as well.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .