Users - shmolyneaux/SquareJam GitHub Wiki

By default all users are stored in the Server.Users Dict. Each user is stored as an Object: each object contains a List of Roles. Each role is a string identifying a user as part of group. As part of a group, users can be granted permissions to perform actions on the database. Information about Permissions can be found on the relevant wiki page. All users are part of the guest group, even if it is not in their list of roles. When a client is interacting with the server before logging in, their username is nobody. The root user can perform any action on the database.

To get a user's name within a script use:

self.__connection__.__username__;

New users cannot be currently created. This is a known issue outside of the ability of the current developer. The transition from python 2 to 3 was done incorrectly, and caused the encryption of passwords to fail most of the time. NewUser.py in the same directory as SnakeCharmer.py is for python 2.