Skip to main content
Solved

Tracking users who belong to multiple workspaces


  • New Member
  • 2 replies

We’re building a B2B SaaS product. Our product is similar to Notion where a user can be part of multiple workspaces and has different permission levels in each of those workspaces.

 

Question

When a user performs an event in our product, we want to be able to track the workspace and the permission level of the user for that specific workspace. How should we set up our user / event properties to track this properly?

FYI Accounts add-on is currently not a viable option for us due to our budget.

Best answer by belinda.chiu

Hi @jiho ! Welcome to the Amplitude Community 👋 

I was going to suggest the Accounts add-on but I saw your note regarding it - thank you for sharing that!

If you simply want to track the workspace and permission level as a value to segment and group by, then setting this up as an event property or a user property would work! I would recommend setting it up as a user property since you can then use this property on both the Events module and the User Segment module for segmenting and grouping by. The only thing with setting up as user property is to be careful of when the values apply to events: https://help.amplitude.com/hc/en-us/articles/115002380567#applying-user-properties-to-events to make sure the right value is attached to the right event. 

 

You could change the user ID but you wouldn’t be able to look at that user’s entire flow across workspaces. 

View original
Did this topic help you find an answer to your question?

3 replies

  • Author
  • New Member
  • 2 replies
  • January 4, 2023

Or is there a better way to set up our user id? We’re currently using userId:workspaceId(e.g. 10001:1) format but it’s hard to track a user across multiple workspaces with this structure.


belinda.chiu
Team Member
Forum|alt.badge.img+8
  • Amplitude Support
  • 189 replies
  • Answer
  • January 5, 2023

Hi @jiho ! Welcome to the Amplitude Community 👋 

I was going to suggest the Accounts add-on but I saw your note regarding it - thank you for sharing that!

If you simply want to track the workspace and permission level as a value to segment and group by, then setting this up as an event property or a user property would work! I would recommend setting it up as a user property since you can then use this property on both the Events module and the User Segment module for segmenting and grouping by. The only thing with setting up as user property is to be careful of when the values apply to events: https://help.amplitude.com/hc/en-us/articles/115002380567#applying-user-properties-to-events to make sure the right value is attached to the right event. 

 

You could change the user ID but you wouldn’t be able to look at that user’s entire flow across workspaces. 


  • Author
  • New Member
  • 2 replies
  • January 6, 2023

Hi Belinda, thanks for the answer. I think we’ll set it up as user properties and update them either when the workspace changes or for every event.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings