Skip to content

Instantly share code, notes, and snippets.

@akujaakko
Last active January 26, 2021 22:42
Show Gist options
  • Save akujaakko/9f4491d651af11a9f8c2a0a48db32e81 to your computer and use it in GitHub Desktop.
Save akujaakko/9f4491d651af11a9f8c2a0a48db32e81 to your computer and use it in GitHub Desktop.

Userflow direct integration Group call

userflow.group(
  '123id',
  {
    name: 'Acme Inc.',
    plan: 'enterprise',
    // ... other group-level attributes
  },
  {
    membership: {
      user_role: 'owner',
      user_access: 'member',
      marketing_emails: TRUE
    },
  }
)

Segment, RudderStack supported Group call

rudderanalytics.group(  
'123id',
  { 
    name: 'Acme Inc.',
    plan: 'enterprise',
    // ... other group-level attributes
  },
  {
    integrations: {
      Userlist: {
        extensions: {
          relationship: {
            properties: {
              user_role: 'owner',
              user_access: 'member',
              marketing_emails: TRUE
            }
          }
        }
      }
    
    }
  }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment