<?xml version="1.0" encoding="UTF-8"?>
<changelog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://www.liquigraph.org/schema/1.0/liquigraph.xsd">
  
    <changeset id="NR-822_add_content_profile_kollectivenr:1" author="npatel">
        <query>
            MATCH (identity:Identity )
            WHERE identity.email in [
                'chris.wilkins@kollectivenr.com',
                'jackie.eden@kollectivenr.com',
                'jake.harding@kollectivenr.com',
                'sandra.jones@kollectivenr.com',
                'sherwyn.appadu@kollectivenr.com',
                'adam.udell@kollectivenr.com',
                'aurora.drummond@kollectivenr.com',
                'bessie.norman@kollectivenr.com',
                'blanka.stachelek@kollectivenr.com',
                'darcie.molina@kollectivenr.com',
                'dave.akomiah@kollectivenr.com',
                'debbieanne.odonovan@kollectivenr.com',
                'harry.stanhope@kollectivenr.com',
                'heide.avent@kollectivenr.com',
                'henry.riggs@kollectivenr.com',
                'holly.forth@kollectivenr.com',
                'jake.kellam@kollectivenr.com',
                'joana.pereira@kollectivenr.com',
                'joshua.cunningham@kollectivenr.com',
                'lewis.white@kollectivenr.com',
                'luke.cowie@kollectivenr.com',
                'marta.rybak@kollectivenr.com',
                'micheal.stinton@kollectivenr.com',
                'nadine.ruzicka@kollectivenr.com',
                'natalie.parsons@kollectivenr.com',
                'nicola.hedden@kollectivenr.com',
                'paula.adams@kollectivenr.com',
                'sam.birkwood@kollectivenr.com',
                'sarah.bunker@kollectivenr.com',
                'seem.samuel@kollectivenr.com',
                'sunny.winter@kollectivenr.com',
                'tom.doherty@kollectivenr.com',
                'kyle.lee@kollectivenr.com',
                'ann.tausis@kollectivenr.com'
            ]
            MATCH (increment:IncrementId {nodeName: 'Profile'})
                SET increment.id = increment.id + 1
            CREATE (profile:Profile {
                profileId: (increment.id-1),
                profileType: 'ContentProfile',
                profileName: 'Content Profile',
                uuid: apoc.create.uuid(),
                roles: ['manage_nr_repertoire'],
                fullCatalogAccess: true
            })
            MERGE (identity)-[:HAS_PROFILE]->(profile)
            WITH profile
            MATCH (v:Vendor {id: '*'})
            MERGE (profile)-[:HAS_ACCESS_TO]->(v)
        </query>
    </changeset>
  
</changelog>
