ramp_database.tools.user.get_user_by_name

ramp_database.tools.user.get_user_by_name(session, name)

Get a user by his/her name.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

namestr or None

The name of the user. If None, all users will be queried.

Returns
userramp_database.model.User or list of ramp_database.model.User

The queried user.