Can be If Owner & User Permissions used together?

Task Module has been set as If Owner.
So the users can view only tasks created by them.
But if manager creates a task & assign it to a user. It shows error msg ‘Not Permitted’.
So i applied user permission for that particular document for that user.
Still not working :frowning:

You might have to write a special permission method, like:

Or — maybe share automatically with assign?

Thanks rushab, i have set the assigned user as the owner so the document is accessible.
But i just have 1 question, can i set 2 users as the owner of a document because task can be assigned to multiple users.