I have tried defining fields for user connections to no avail. Lets say I have a CPT of "Jobs" and I want to connect a user to it and define how they are connected, like "Manager" or "Designer". Each job would also have a CPT of Tasks connected to it.
Each User may have different connections for every job, so the standard WP Roles functionality doesn't work. User A may be a Manager on Job 1, and a Designer on Job 2, etc.
Ideally I would like to be able to build a conditional statement based on their connection. Check if User A is a Manager for Job 1, then they can edit any (edit_others_posts) of the connected Tasks. If they are connected as a Designer they can only edit their own.
It may be enough to simply verify the connection role a vary the output as I don't think there is a way to temporarily grant a capability.
Of course this initially relies on the ability to define the connection relationship for the post to user connection. Is that possible?