issue auto joining new user after creation

24 views
Skip to first unread message

vraj mistry

unread,
Nov 4, 2025, 1:36:24 AM (7 days ago) Nov 4
to Tinode General

Hello everyone,

I’m using the Tinode command line client (tn-cli.py) connected to my local server.
Here’s a snippet from the terminal when creating a new user:

D:\Tinode\tn-cli.py:20: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources Tinode command line client. Version 3.0.0b1/0.22.3; gRPC/1.76.0; Python 3.13.7. Server at 'localhost:16060' Logging in with cookie file <= Connected to server: ver: 0.24; servingAt: http://:6060/; build: postgres:v0.24.6 <= 201 created <= Authenticated as usrA0MTR8N_-P0 <= 200 ok tn> acc --uname new_auto_user --password newuser123 --fn "New Auto User" <= 201 created tn>

When a new user is created from the admin account, the following happens automatically:

  • The new user automatically joins the group that was created by the admin.

  • The admin appears in the new user’s contact list.


What I want to achieve:
  1. Disable auto-joining of admin’s group for newly created users.

  2. Prevent the admin from being automatically added to every new user’s contact list.

  3. Control which topics (groups) new users can see or join by default.

  4. Optionally — customize or disable automatic topic subscriptions at user creation.


⚙️ Setup Details
  • Tinode Server v0.24.6 (Postgres)

  • Tinode CLI v3.0.0b1 / 0.22.3

  • Python 3.13.7

  • Running locally on Windows (localhost:16060)

Gene

unread,
Nov 4, 2025, 1:57:59 AM (7 days ago) Nov 4
to Tinode General
On Tuesday, November 4, 2025 at 9:36:24 AM UTC+3 Tinode User wrote:

Hello everyone,

I’m using the Tinode command line client (tn-cli.py) connected to my local server.
Here’s a snippet from the terminal when creating a new user:

D:\Tinode\tn-cli.py:20: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources Tinode command line client. Version 3.0.0b1/0.22.3; gRPC/1.76.0; Python 3.13.7. Server at 'localhost:16060' Logging in with cookie file <= Connected to server: ver: 0.24; servingAt: http://:6060/; build: postgres:v0.24.6 <= 201 created <= Authenticated as usrA0MTR8N_-P0 <= 200 ok tn> acc --uname new_auto_user --password newuser123 --fn "New Auto User" <= 201 created tn>

When a new user is created from the admin account, the following happens automatically:

  • The new user automatically joins the group that was created by the admin.

  • The admin appears in the new user’s contact list.


None of this happens automatically. It only happens if you make it happen. 

What I want to achieve:
  1. Disable auto-joining of admin’s group for newly created users.

  2. Prevent the admin from being automatically added to every new user’s contact list.


Well, then don't make it happen.
 
  1. Control which topics (groups) new users can see or join by default.

That depends on how thorough you want it to be. The simplest is to change default AUTH permissions to one without the J (join) permission. A more thorough approach would be to use tags. 

  1. Optionally — customize or disable automatic topic subscriptions at user creation.

Well, no such things happens in the stock code. 
Reply all
Reply to author
Forward
0 new messages