Skip to content
Back

Not allowed permission to upsert a presence.

  • 0
  • Web
  • Realtime
  • Cloud
Remi
6 Jun, 2026, 08:46
TypeScript
const presenceID = ID.unique();
    setPID(presenceID);
    const presence = await presences.upsert({
      presenceId: presenceID,
      status: "online",
    });

returns this in network

TypeScript
code: 401
message: "The current user is not authorized to perform the requested action."
type: "user_unauthorized"
version: "1.9.5"
TL;DR
Developers are getting a 401 error when attempting to upsert a presence due to unauthorized user action. Need to ensure proper user permissions are set up to allow the action.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more