ramp_database.tools.user.set_user_access_level¶
- 
ramp_database.tools.user.set_user_access_level(session, name, access_level='user')¶
- Change the access level of a user. - In addition, it will also set the user as authenticated. - Parameters
- sessionsqlalchemy.orm.Session
- The session to directly perform the operation on the database. 
- namestr
- The name of the user. 
- access_level{“asked”, “user”, admin}, default=”user”
- User’s access level 
 
- session