Skip to content

External Team Role

Description

An ExternalTeamRole node is a categorical variable that describes possible non-UTA ("external") professional relationships to a client.

External team roles include:

RoleNotes
Personal ManagerThe client's personal manager
Business ManagerThe client's business manager
AttorneyThe client's attorney (can be individual or firm, or both)
PublicistThe client's publicist
Notices ContactThe person that should recieve official legal notices from UTA

Assume we first define the allowed external team roles -- these should be created when the database is seeded for first use:

Label

:ExternalTeamRole

Properties

PropertyDescriptionType
idA unique identifier for this JobRole nodestring (uuid)
nameThe name of the external team rolestring
createdBythe person or process that created the nodestring
createdDatedateTime
modifiedBythe person or process who last modified the nodestring
modifiedDatedateTime

Key

id

Relationships

The ALLOWED_EXTERNAL_TEAM_ROLE relationship connects the :Role to the :ExternalTeamRole nodes.

Examples

cypher
MATCH       (clientRole:Role {name: 'Client'})
        -   [:ALLOWED_EXTERNAL_TEAM_ROLE { active: true }]
        ->  (extRole:ExternalTeamRole)
RETURN      extRole.id AS id, 
            extRole.name AS roleName
ORDER BY    extRole.name
cypher
MATCH      (client:Party {id: $clientId})
        -  [:HAS_EXTERNAL_ASSIGNMENT]
        -> (assignment:ClientExternalAssignment)
MATCH      (assignment)-[:ASSIGNED_TO]->(contact:Party)
MATCH      (assignment)
        -  [:HAS_EXTERNAL_TEAM_ROLE]
        -> (extRole:ExternalTeamRole)
RETURN     contact.name AS ContactName, 
           collect(extRole.name) AS ExternalTeamRoles
cypher
MATCH      (client:Party)
        -  [:HAS_EXTERNAL_ASSIGNMENT]
        -> (assignment:ClientExternalAssignment)
        -  [:ASSIGNED_TO]
        -> (contact:Party {id: $contactId})
MATCH      (assignment)
        -  [:HAS_EXTERNAL_TEAM_ROLE]
        -> (role:ExternalTeamRole)
RETURN     client.id AS partyId, 
           client.name AS displayName, 
           collect(role.name) AS ExternalTeamRoles
ORDER BY   client.name

Confidential. For internal use only.