Skip to content

Users

Get user info

get_user_info

Returns the name of the user and their ID. The username you have to provide is a unique identifier ending with @auth.local. This is neither the email address of the user nor their name.

base.get_user_info(username)

Output Dict containing id_in_org and name keys

Example

from seatable_api import Base, context

base = Base(context.api_token, context.server_url)
base.auth()
user_info = base.get_user_info("aea9e807bcfd4f3481d60294df74f6ee@auth.local")
print(user_info)

get_related_users

Get a list of users related to the current base (collaborators who have access).

base.get_related_users()

Output List of user dicts

Example

from seatable_api import Base, context

base = Base(context.api_token, context.server_url)
base.auth()
users = base.get_related_users()
for user in users:
    print(user)