Users with non-Google Sanity accounts not visible in real-time presence

15 replies
Last updated: Oct 11, 2022
Hi all, another question please. We've been adding users to help with our project and got this feedback. Any thoughts?

I was doing a demo of Sanity for the team and oddly 2 out of the 6 of us were not visible to others. I was able to see 3 of 5 other users in Sanity at the same time. To test I had everyone go to the same entry/field and 2 people were not visible to others. And they were unable to see the others while logged in. I tried looking on the Sanity site to see why this might be happening but didn't find anything. Would you know?

One thing the two users had in common that's different from others is that they didn't use their Google accounts to access Sanity. Instead they created Sanity accounts. Any ideas how to resolve this? They do project periods in which multiple users will be in there working at the same time so this will be great to have resolved.
AI Update

This is an interesting issue with presence indicators (the feature that shows which users are actively editing in Sanity Studio). While Sanity Studio does have built-in real-time presence awareness that shows who's working on content, there are a few things that could cause some users to not be visible to others.

First, check your Studio version

The most common cause of presence issues is running an outdated version of Sanity Studio. Presence features have been improved over time, so I'd recommend upgrading to the latest version:

npm install sanity@latest

After upgrading, restart your dev server and have everyone refresh their browsers. The current version is Sanity Studio v4, which requires Node.js 20+.

Verify everyone is in the same project

This might sound obvious, but double-check that all team members are actually logged into the same Sanity project. You can verify this by having everyone check the project ID in their Studio URL or in the sanity.config.ts file.

Check browser compatibility and caching

Presence features rely on real-time WebSocket connections. Have the two users who aren't visible try:

  • Clearing their browser cache completely
  • Using a different browser (Chrome/Edge/Firefox)
  • Disabling browser extensions that might interfere with WebSocket connections
  • Checking if they're behind a corporate firewall or VPN that might block WebSocket connections

Authentication method shouldn't matter

The fact that the two invisible users signed up with Sanity accounts (rather than Google SSO) is likely coincidental. Sanity's presence system works the same regardless of authentication method - once you're authenticated and have project access, the presence features should work identically.

Test in production Studio

If you're running sanity dev locally, try having everyone access your deployed production Studio instead (if you have one). Sometimes local development environments can have network quirks that don't affect production.

Network connectivity issues

Since presence requires persistent connections, check if those two users have:

  • Stable internet connections
  • Network restrictions that might block WebSocket connections
  • Corporate proxies that interfere with real-time features

If none of these steps resolve the issue, I'd recommend reaching out to Sanity support with details about your Studio version, browser types, and any console errors the affected users might be seeing. They can investigate whether there's something specific about those user accounts or your project configuration causing the problem.

Show original thread
15 replies
To clarify, this is happening when there are multiple users focusing on a single field in a document within the Studio, correct? Is this a particular field or all fields?
Checking, brb.
All fields. We also can't see those two individuals' avatars in the top right of the header where all active users are presented.
That was the response.
Thanks! I'll look into this.
Cool, thanks much
user M
!
Alright, I have some insight here:
This might happen if some editors are using a browser that doesn't support the cookie we set on login, therefore reverting to stamped tokens instead.

There was also an issue with Presence that was really similar to this a while back. Are you on the latest version of the Studio?
Thanks much for getting back to me! Let me check the Studio version.
v2.30.1
I'd try upgrading your Studio to see if the issue persists!
Ok, sounds good. I'll plan in an upgrade. I'll let you know how it goes. Thanks much again!
Let us know how it goes 🤞!
Quick update. We migrated to the latest v2.34.0 and have notified users. We'll see what feedback we get. Will update again once I hear from folks.
Latest update. Users have confirmed they can see each other now. Thanks much for the assist
user M
!
Fantastic!

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?