Understanding User Groups
A user group can contain multiple users (wallet addresses) and syncs all user
metadata, including social handles, across all connected wallets.
Why User Groups?
- Multiple Wallets: Users often have wallets on different chains (Ethereum, Polygon, Solana, etc.)
- Shared Identity: All wallets in a group share the same social accounts and metadata
- Unified Loyalty: Points, badges, and rewards are tracked across all wallets in the group
- Seamless Experience: Users don’t need to reconnect social accounts for each wallet
Creating and Managing User Groups
Connecting a User to a Group
Use thePOST /api/users/connect
endpoint to add a wallet address to a user group:
Using the Snag SDK
Disconnecting a User from a Group
To remove a wallet address from a user group, use thePOST /api/users/disconnect
endpoint:
Supported Wallet Types
When connecting users to groups, specify the wallet type:evm
- Ethereum and EVM-compatible chainssvm
- Solana Virtual Machineton
- The Open Networksui
- Sui blockchaincosmos
- Cosmos ecosystem chains
Metadata Synchronization
When a user/wallet address is connected to a group, all user metadata including social handles gets synced across all users in that group:User Group Workflow
1
Create users
First, create individual users for each wallet address using the metadata endpoint.
2
Connect to groups
Connect each wallet to the appropriate user group.
3
Verify synchronization
Check that metadata is synced across all wallets in the group.
Best Practices
Group Management: Create user groups based on your application’s needs -
typically one group per user identity.
Wallet Types: Always specify the correct wallet type when connecting users
to ensure proper chain support.
Metadata Updates: When updating user metadata, the changes will
automatically sync across all wallets in the group.
Disconnection Impact: When disconnecting a wallet from a group, the wallet
becomes a standalone user and loses access to shared metadata and loyalty
benefits.
Integration with Loyalty System
User groups work seamlessly with Snag’s loyalty system:- Points Tracking: Loyalty points are tracked across all wallets in a group
- Rule Completion: Social account connections and other rule completions apply to all wallets
- Rewards: Badges and rewards are shared across the entire group
- Leaderboards: Users appear as a single entity regardless of which wallet they use
For more details on how user groups work with the loyalty system, see our
Multi Wallet Support guide.
Next Steps
Now that you understand user groups, learn how to:Connect Social Accounts
Integrate social media platforms with your users for enhanced loyalty
features.