Skip to content

Instantly share code, notes, and snippets.

@sebastianseilund
Forked from akujaakko/group.md
Last active January 26, 2021 22:43
Show Gist options
  • Save sebastianseilund/b8ba6e189794570706af31efed1d90ff to your computer and use it in GitHub Desktop.
Save sebastianseilund/b8ba6e189794570706af31efed1d90ff 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: {
      Userflow: {
        membership: {
          user_role: 'owner',
          user_access: 'member',
          marketing_emails: TRUE
        }
      },
      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