Team Management Flow
1
Initialize SDK
Set up the Rise SDK with authentication
2
Get User Teams
Retrieve teams associated with the current user
3
Update Team Settings
Modify team information and settings
4
Manage Team Members
Send invitations and manage team membership
SDK Installation
First, install the Rise SDK:Getting Started
Initialize the SDK
Team Management Operations
Get User’s Teams
Retrieve all teams associated with the current user:Update Team Information
Update team settings and information:Team Invitations
The SDK provides different approaches for sending team invitations depending on the role:Regular Team Invitations
For regular team members (employees, viewers), no signing is required:- Validates invitation data and permissions
- Sends invitations to the specified email addresses
- Handles authentication and JWT token management
- Provides error handling and validation
Manager Invitations (Requires Signing)
For manager-level invitations (team_admin, finance_admin), signing is required. The SDK must be initialized with a private key for automatic signing:- Generates typed data for EIP-712 signing
- Signs the typed data using your private key
- Submits the signed invitation to the Rise API
- Handles authentication and JWT token management
- Provides error handling and retry logic
Manual Manager Invitations
For more control over manager invitation signing, you can handle the signing manually:- Custom signing logic - You control when and how to sign
- Typed data inspection - You can examine the data before signing
- Signature verification - You can verify the signature before submission
- Error handling control - Custom error handling for each step
- Integration flexibility - Easier integration with existing signing workflows
Complete Team Management Example
Here’s a complete example using the Rise SDK:Team Roles and Permissions
Role | Permissions | Description |
---|---|---|
Team Admin | pay , view , manage , invite | Full control over team settings and members |
Finance Admin | pay , view , finance | Financial management capabilities |
Team Employee | pay , view | Standard team member with payment capabilities |
Team Viewer | view | Read-only access to team information |
Error Handling
The SDK provides comprehensive error handling:Error Message | Description | Solution |
---|---|---|
401 | Authentication failed | Check your credentials and JWT token |
403 | Insufficient permissions | Verify user has required role and permissions |
404 | Team not found | Check team nanoid is correct |
invalid team data | Invalid team information | Verify team data format and requirements |
invitation failed | Failed to send invitation | Check email format and team permissions |
Best Practices
Always maintain at least one team admin to prevent losing access to team management capabilities.
Team Management Best Practices
- Role Hierarchy: Use the principle of least privilege when assigning roles
- Regular Audits: Periodically review team members and their permissions
- Documentation: Keep records of team structure and permission changes
- Backup Admins: Always have multiple admins for critical teams
- Permission Reviews: Regularly review and update member permissions
SDK Best Practices
- Error Handling: Implement proper error handling for all team operations
- Authentication: Use Rise ID authentication for automatic JWT management
- Environment: Use staging environment for testing team operations
- Logging: Log team management operations for audit purposes
Testing Team Management
For testing, use the staging environment:Next Steps
Authentication Guide
Learn how to authenticate with Rise using the SDK
Payment Integration
Process payments for team members
Web3 Integration
Advanced blockchain integration features
Error Handling
Comprehensive error handling and troubleshooting
Need help? See the Teams page for detailed team management concepts or contact support at Hello@Riseworks.io