<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./schema.xsd">
  <changeset id="SR-90_grant_Roles:1" author="pdumoulin" run-always="true">
    <cypherquery>
      <![CDATA[
        MATCH(i:Identity)-[x:HAS_PROFILE]->(p:Profile)
        WHERE i.email IN [
            'ubandy@theorchard.com',
            'pdumoulin@theorchard.com',
            'ssavva@theorchard.com',
            'jmarais@theorchard.com',
            'rshield@theorchard.com',
            'ratoui@theorchard.com',
            'npatel@theorchard.com',
            'tdenkinger@theorchard.com',
            'rvstiphout@theorchard.com',
            'mmachado@theorchard.com',
            'amoon@theorchard.com',
            'asukhorada@theorchard.com'
        ]
        AND p.profileType = 'ContentProfile'
        AND NOT 'view_orchard_sound_recording' IN p.roles
        SET p.roles = p.roles + 'view_orchard_sound_recording'
        RETURN p
      ]]>
    </cypherquery>
  </changeset>
</changelog>
